blob: cbbfb1f82a4fbafb37ac1ab8e06672ed782b7096 [file] [log] [blame]
yoshi-code-botf4773f62021-10-19 00:22:31 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1.html">Container Analysis API</a> . <a href="containeranalysis_v1.projects.html">projects</a> . <a href="containeranalysis_v1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
79<p class="firstline">Creates new occurrences in batch.</p>
80<p class="toc_element">
81 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
84 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
85<p class="firstline">Creates a new occurrence.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.</p>
89<p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the specified occurrence.</p>
92<p class="toc_element">
93 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
94<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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
95<p class="toc_element">
96 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
97<p class="firstline">Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.</p>
98<p class="toc_element">
99 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
100<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
101<p class="toc_element">
102 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
103<p class="firstline">Lists occurrences for the specified project.</p>
104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
109<p class="firstline">Updates the specified occurrence.</p>
110<p class="toc_element">
111 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
112<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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
113<p class="toc_element">
114 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
115<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
116<h3>Method Details</h3>
117<div class="method">
118 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
119 <pre>Creates new occurrences in batch.
120
121Args:
122 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. (required)
123 body: object, The request body.
124 The object takes the form of:
125
126{ # Request to create occurrences in batch.
127 &quot;occurrences&quot;: [ # Required. The occurrences to create. Max allowed length is 1000.
128 { # An instance of an analysis type that has been found on a resource.
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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
130 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
131 {
132 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
133 },
134 ],
135 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
136 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
137 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
138 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
139 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
140 },
141 ],
142 },
143 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
144 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
145 &quot;builderConfig&quot;: { # required
146 &quot;id&quot;: &quot;A String&quot;,
147 },
148 &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.
149 &quot;A String&quot;,
150 ],
151 &quot;metadata&quot;: { # Other properties of the build.
152 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
153 &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.
154 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
155 &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.
156 &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.
157 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
158 &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;.
159 },
160 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
161 },
162 &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
163 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
164 {
165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
166 },
167 ],
168 &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.
169 &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.
170 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
171 {
172 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
173 },
174 ],
175 &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.
176 },
177 },
178 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
179 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
180 &quot;a_key&quot;: &quot;A String&quot;,
181 },
182 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
183 &quot;builtArtifacts&quot;: [ # Output of the build.
184 { # Artifact describes a build product.
185 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
186 &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`.
187 &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.
188 &quot;A String&quot;,
189 ],
190 },
191 ],
192 &quot;commands&quot;: [ # Commands requested by the build.
193 { # Command describes a step performed as part of the build pipeline.
194 &quot;args&quot;: [ # Command-line arguments used when executing this command.
195 &quot;A String&quot;,
196 ],
197 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
198 &quot;env&quot;: [ # Environment variables set before running this command.
199 &quot;A String&quot;,
200 ],
201 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
202 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
203 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
204 &quot;A String&quot;,
205 ],
206 },
207 ],
208 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
209 &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.
210 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
211 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
212 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
213 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
214 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
215 &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.
216 { # 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.
217 &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.
218 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
219 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
220 &quot;name&quot;: &quot;A String&quot;, # The alias name.
221 },
222 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
223 &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.
224 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
225 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
226 },
227 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
228 },
229 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
230 },
231 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
232 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
233 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
234 &quot;name&quot;: &quot;A String&quot;, # The alias name.
235 },
236 &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.
237 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
238 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
239 },
240 &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).
241 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
242 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
243 },
244 &quot;labels&quot;: { # Labels with user defined metadata.
245 &quot;a_key&quot;: &quot;A String&quot;,
246 },
247 },
248 ],
249 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
250 &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.
251 &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.
252 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
253 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
254 &quot;name&quot;: &quot;A String&quot;, # The alias name.
255 },
256 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
257 &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.
258 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
259 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
260 },
261 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
262 },
263 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
264 },
265 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
266 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
267 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
268 &quot;name&quot;: &quot;A String&quot;, # The alias name.
269 },
270 &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.
271 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
272 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
273 },
274 &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).
275 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
276 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
277 },
278 &quot;labels&quot;: { # Labels with user defined metadata.
279 &quot;a_key&quot;: &quot;A String&quot;,
280 },
281 },
282 &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.
283 &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.
284 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
285 { # Container message for hash values.
286 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
287 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
288 },
289 ],
290 },
291 },
292 },
293 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
294 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
295 },
296 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
297 },
298 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
299 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
300 &quot;nonCompliantFiles&quot;: [
301 { # Details about files that caused a compliance check to fail.
302 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
303 &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.
304 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
305 },
306 ],
307 },
308 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
309 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
310 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
311 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
312 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
313 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
314 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
315 &quot;A String&quot;,
316 ],
317 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
318 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
319 },
320 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
321 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
322 &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 is output only and populated by the API.
323 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
324 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
325 {
326 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
327 },
328 ],
329 &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.
330 },
331 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
332 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
333 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
334 },
335 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
336 &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.
337 &quot;payload&quot;: &quot;A String&quot;,
338 &quot;payloadType&quot;: &quot;A String&quot;,
339 &quot;signatures&quot;: [
340 {
341 &quot;keyid&quot;: &quot;A String&quot;,
342 &quot;sig&quot;: &quot;A String&quot;,
343 },
344 ],
345 },
346 &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;.
347 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
348 &quot;provenance&quot;: {
349 &quot;builderConfig&quot;: { # required
350 &quot;id&quot;: &quot;A String&quot;,
351 },
352 &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.
353 &quot;A String&quot;,
354 ],
355 &quot;metadata&quot;: { # Other properties of the build.
356 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
357 &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.
358 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
359 &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.
360 &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.
361 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
362 &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;.
363 },
364 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
365 },
366 &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
367 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
368 {
369 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
370 },
371 ],
372 &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.
373 &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.
374 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
375 {
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
377 },
378 ],
379 &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.
380 },
381 },
382 &quot;subject&quot;: [
383 {
384 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
385 &quot;a_key&quot;: &quot;A String&quot;,
386 },
387 &quot;name&quot;: &quot;A String&quot;,
388 },
389 ],
390 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
391 },
392 },
393 &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
394 &quot;payload&quot;: &quot;A String&quot;,
395 &quot;payloadType&quot;: &quot;A String&quot;,
396 &quot;signatures&quot;: [
397 {
398 &quot;keyid&quot;: &quot;A String&quot;,
399 &quot;sig&quot;: &quot;A String&quot;,
400 },
401 ],
402 },
403 &quot;image&quot;: { # Details of the derived image portion 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.
404 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
405 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
406 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
407 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
408 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
409 &quot;A String&quot;,
410 ],
411 &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.
412 },
413 &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.
414 { # Layer holds metadata specific to a layer of a Docker image.
415 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
416 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
417 },
418 ],
419 },
420 &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.
421 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
422 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
423 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
424 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
425 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
426 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
427 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
428 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
429 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
430 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
431 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
432 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
433 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
434 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
435 },
436 },
437 ],
438 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
439 },
440 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
441 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
442 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
443 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
444 &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.
445 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
446 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
447 &quot;cve&quot;: [ # The cve tied to this Upgrade.
448 &quot;A String&quot;,
449 ],
450 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
451 },
452 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
453 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
454 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
455 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
456 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
457 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
458 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
459 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
460 },
461 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
462 &quot;categories&quot;: [ # The list of categories to which the update belongs.
463 { # The category to which the update belongs.
464 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
465 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
466 },
467 ],
468 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
469 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
470 &quot;revision&quot;: 42, # The revision number of the update.
471 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
472 },
473 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
474 &quot;A String&quot;,
475 ],
476 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
477 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
478 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
479 },
480 },
481 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
482 &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.
483 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
484 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
485 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
486 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
487 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
488 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
489 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
490 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
491 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
492 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
493 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
494 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
495 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
496 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
497 },
498 &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 it is not available.
499 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
500 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
501 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
502 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
503 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
504 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
505 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
506 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
507 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
508 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
509 },
510 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
511 },
512 ],
513 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
514 { # Metadata for any related URL information.
515 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
516 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
517 },
518 ],
519 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
520 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
521 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
522 },
523 },
524 ],
525}
526
527 x__xgafv: string, V1 error format.
528 Allowed values
529 1 - v1 error format
530 2 - v2 error format
531
532Returns:
533 An object of the form:
534
535 { # Response for creating occurrences in batch.
536 &quot;occurrences&quot;: [ # The occurrences that were created.
537 { # An instance of an analysis type that has been found on a resource.
538 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
539 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
540 {
541 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
542 },
543 ],
544 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
545 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
546 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
547 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
548 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
549 },
550 ],
551 },
552 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
553 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
554 &quot;builderConfig&quot;: { # required
555 &quot;id&quot;: &quot;A String&quot;,
556 },
557 &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.
558 &quot;A String&quot;,
559 ],
560 &quot;metadata&quot;: { # Other properties of the build.
561 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
562 &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.
563 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
564 &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.
565 &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.
566 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
567 &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;.
568 },
569 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
570 },
571 &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
572 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
573 {
574 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
575 },
576 ],
577 &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.
578 &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.
579 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
580 {
581 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
582 },
583 ],
584 &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.
585 },
586 },
587 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
588 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
589 &quot;a_key&quot;: &quot;A String&quot;,
590 },
591 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
592 &quot;builtArtifacts&quot;: [ # Output of the build.
593 { # Artifact describes a build product.
594 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
595 &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`.
596 &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.
597 &quot;A String&quot;,
598 ],
599 },
600 ],
601 &quot;commands&quot;: [ # Commands requested by the build.
602 { # Command describes a step performed as part of the build pipeline.
603 &quot;args&quot;: [ # Command-line arguments used when executing this command.
604 &quot;A String&quot;,
605 ],
606 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
607 &quot;env&quot;: [ # Environment variables set before running this command.
608 &quot;A String&quot;,
609 ],
610 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
611 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
612 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
613 &quot;A String&quot;,
614 ],
615 },
616 ],
617 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
618 &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.
619 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
620 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
621 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
622 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
623 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
624 &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.
625 { # 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.
626 &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.
627 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
628 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
629 &quot;name&quot;: &quot;A String&quot;, # The alias name.
630 },
631 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
632 &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.
633 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
634 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
635 },
636 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
637 },
638 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
639 },
640 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
641 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
642 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
643 &quot;name&quot;: &quot;A String&quot;, # The alias name.
644 },
645 &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.
646 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
647 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
648 },
649 &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).
650 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
651 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
652 },
653 &quot;labels&quot;: { # Labels with user defined metadata.
654 &quot;a_key&quot;: &quot;A String&quot;,
655 },
656 },
657 ],
658 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
659 &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.
660 &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.
661 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
662 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
663 &quot;name&quot;: &quot;A String&quot;, # The alias name.
664 },
665 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
666 &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.
667 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
668 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
669 },
670 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
671 },
672 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
673 },
674 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
675 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
676 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
677 &quot;name&quot;: &quot;A String&quot;, # The alias name.
678 },
679 &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.
680 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
681 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
682 },
683 &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).
684 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
685 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
686 },
687 &quot;labels&quot;: { # Labels with user defined metadata.
688 &quot;a_key&quot;: &quot;A String&quot;,
689 },
690 },
691 &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.
692 &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.
693 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
694 { # Container message for hash values.
695 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
696 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
697 },
698 ],
699 },
700 },
701 },
702 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
703 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
704 },
705 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
706 },
707 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
708 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
709 &quot;nonCompliantFiles&quot;: [
710 { # Details about files that caused a compliance check to fail.
711 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
712 &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.
713 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
714 },
715 ],
716 },
717 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
718 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
719 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
720 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
721 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
722 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
723 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
724 &quot;A String&quot;,
725 ],
726 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
727 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
728 },
729 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
730 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
731 &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 is output only and populated by the API.
732 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
733 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
734 {
735 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
736 },
737 ],
738 &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.
739 },
740 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
741 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
742 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
743 },
744 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
745 &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.
746 &quot;payload&quot;: &quot;A String&quot;,
747 &quot;payloadType&quot;: &quot;A String&quot;,
748 &quot;signatures&quot;: [
749 {
750 &quot;keyid&quot;: &quot;A String&quot;,
751 &quot;sig&quot;: &quot;A String&quot;,
752 },
753 ],
754 },
755 &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;.
756 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
757 &quot;provenance&quot;: {
758 &quot;builderConfig&quot;: { # required
759 &quot;id&quot;: &quot;A String&quot;,
760 },
761 &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.
762 &quot;A String&quot;,
763 ],
764 &quot;metadata&quot;: { # Other properties of the build.
765 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
766 &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.
767 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
768 &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.
769 &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.
770 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
771 &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;.
772 },
773 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
774 },
775 &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
776 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
777 {
778 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
779 },
780 ],
781 &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.
782 &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.
783 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
784 {
785 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
786 },
787 ],
788 &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.
789 },
790 },
791 &quot;subject&quot;: [
792 {
793 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
794 &quot;a_key&quot;: &quot;A String&quot;,
795 },
796 &quot;name&quot;: &quot;A String&quot;,
797 },
798 ],
799 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
800 },
801 },
802 &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
803 &quot;payload&quot;: &quot;A String&quot;,
804 &quot;payloadType&quot;: &quot;A String&quot;,
805 &quot;signatures&quot;: [
806 {
807 &quot;keyid&quot;: &quot;A String&quot;,
808 &quot;sig&quot;: &quot;A String&quot;,
809 },
810 ],
811 },
812 &quot;image&quot;: { # Details of the derived image portion 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.
813 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
814 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
815 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
816 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
817 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
818 &quot;A String&quot;,
819 ],
820 &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.
821 },
822 &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.
823 { # Layer holds metadata specific to a layer of a Docker image.
824 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
825 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
826 },
827 ],
828 },
829 &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.
830 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
831 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
832 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
833 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
834 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
835 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
836 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
837 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
838 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
839 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
840 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
841 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
842 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
843 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
844 },
845 },
846 ],
847 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
848 },
849 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
850 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
851 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
852 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
853 &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.
854 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
855 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
856 &quot;cve&quot;: [ # The cve tied to this Upgrade.
857 &quot;A String&quot;,
858 ],
859 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
860 },
861 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
862 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
863 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
864 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
865 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
866 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
867 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
868 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
869 },
870 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
871 &quot;categories&quot;: [ # The list of categories to which the update belongs.
872 { # The category to which the update belongs.
873 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
874 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
875 },
876 ],
877 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
878 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
879 &quot;revision&quot;: 42, # The revision number of the update.
880 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
881 },
882 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
883 &quot;A String&quot;,
884 ],
885 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
886 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
887 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
888 },
889 },
890 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
891 &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.
892 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
893 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
894 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
895 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
896 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
897 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
898 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
899 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
900 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
901 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
902 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
903 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
904 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
905 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
906 },
907 &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 it is not available.
908 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
909 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
910 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
911 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
912 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
913 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
914 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
915 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
916 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
917 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
918 },
919 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
920 },
921 ],
922 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
923 { # Metadata for any related URL information.
924 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
925 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
926 },
927 ],
928 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
929 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
930 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
931 },
932 },
933 ],
934}</pre>
935</div>
936
937<div class="method">
938 <code class="details" id="close">close()</code>
939 <pre>Close httplib2 connections.</pre>
940</div>
941
942<div class="method">
943 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
944 <pre>Creates a new occurrence.
945
946Args:
947 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. (required)
948 body: object, The request body.
949 The object takes the form of:
950
951{ # An instance of an analysis type that has been found on a resource.
952 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
953 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
954 {
955 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
956 },
957 ],
958 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
959 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
960 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
961 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
962 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
963 },
964 ],
965 },
966 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
967 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
968 &quot;builderConfig&quot;: { # required
969 &quot;id&quot;: &quot;A String&quot;,
970 },
971 &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.
972 &quot;A String&quot;,
973 ],
974 &quot;metadata&quot;: { # Other properties of the build.
975 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
976 &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.
977 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
978 &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.
979 &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.
980 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
981 &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;.
982 },
983 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
984 },
985 &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
986 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
987 {
988 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
989 },
990 ],
991 &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.
992 &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.
993 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
994 {
995 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
996 },
997 ],
998 &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.
999 },
1000 },
1001 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
1002 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1003 &quot;a_key&quot;: &quot;A String&quot;,
1004 },
1005 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1006 &quot;builtArtifacts&quot;: [ # Output of the build.
1007 { # Artifact describes a build product.
1008 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1009 &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`.
1010 &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.
1011 &quot;A String&quot;,
1012 ],
1013 },
1014 ],
1015 &quot;commands&quot;: [ # Commands requested by the build.
1016 { # Command describes a step performed as part of the build pipeline.
1017 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1018 &quot;A String&quot;,
1019 ],
1020 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1021 &quot;env&quot;: [ # Environment variables set before running this command.
1022 &quot;A String&quot;,
1023 ],
1024 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1025 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
1026 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1027 &quot;A String&quot;,
1028 ],
1029 },
1030 ],
1031 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1032 &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.
1033 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1034 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1035 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1036 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1037 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1038 &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.
1039 { # 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.
1040 &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.
1041 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1042 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1043 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1044 },
1045 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1046 &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.
1047 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1048 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1049 },
1050 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1051 },
1052 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1053 },
1054 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1055 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1056 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1057 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1058 },
1059 &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.
1060 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1061 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1062 },
1063 &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).
1064 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1065 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1066 },
1067 &quot;labels&quot;: { # Labels with user defined metadata.
1068 &quot;a_key&quot;: &quot;A String&quot;,
1069 },
1070 },
1071 ],
1072 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1073 &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.
1074 &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.
1075 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1076 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1077 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1078 },
1079 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1080 &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.
1081 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1082 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1083 },
1084 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1085 },
1086 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1087 },
1088 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1089 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1090 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1091 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1092 },
1093 &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.
1094 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1095 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1096 },
1097 &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).
1098 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1099 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1100 },
1101 &quot;labels&quot;: { # Labels with user defined metadata.
1102 &quot;a_key&quot;: &quot;A String&quot;,
1103 },
1104 },
1105 &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.
1106 &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.
1107 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1108 { # Container message for hash values.
1109 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
1110 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1111 },
1112 ],
1113 },
1114 },
1115 },
1116 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1117 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1118 },
1119 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
1120 },
1121 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
1122 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
1123 &quot;nonCompliantFiles&quot;: [
1124 { # Details about files that caused a compliance check to fail.
1125 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1126 &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.
1127 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1128 },
1129 ],
1130 },
1131 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1132 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1133 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1134 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1135 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1136 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1137 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1138 &quot;A String&quot;,
1139 ],
1140 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1141 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1142 },
1143 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
1144 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1145 &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 is output only and populated by the API.
1146 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1147 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1148 {
1149 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1150 },
1151 ],
1152 &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.
1153 },
1154 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1155 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1156 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
1157 },
1158 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
1159 &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.
1160 &quot;payload&quot;: &quot;A String&quot;,
1161 &quot;payloadType&quot;: &quot;A String&quot;,
1162 &quot;signatures&quot;: [
1163 {
1164 &quot;keyid&quot;: &quot;A String&quot;,
1165 &quot;sig&quot;: &quot;A String&quot;,
1166 },
1167 ],
1168 },
1169 &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;.
1170 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1171 &quot;provenance&quot;: {
1172 &quot;builderConfig&quot;: { # required
1173 &quot;id&quot;: &quot;A String&quot;,
1174 },
1175 &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.
1176 &quot;A String&quot;,
1177 ],
1178 &quot;metadata&quot;: { # Other properties of the build.
1179 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1180 &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.
1181 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1182 &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.
1183 &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.
1184 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1185 &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;.
1186 },
1187 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1188 },
1189 &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
1190 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1191 {
1192 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1193 },
1194 ],
1195 &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.
1196 &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.
1197 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1198 {
1199 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1200 },
1201 ],
1202 &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.
1203 },
1204 },
1205 &quot;subject&quot;: [
1206 {
1207 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1208 &quot;a_key&quot;: &quot;A String&quot;,
1209 },
1210 &quot;name&quot;: &quot;A String&quot;,
1211 },
1212 ],
1213 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1214 },
1215 },
1216 &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
1217 &quot;payload&quot;: &quot;A String&quot;,
1218 &quot;payloadType&quot;: &quot;A String&quot;,
1219 &quot;signatures&quot;: [
1220 {
1221 &quot;keyid&quot;: &quot;A String&quot;,
1222 &quot;sig&quot;: &quot;A String&quot;,
1223 },
1224 ],
1225 },
1226 &quot;image&quot;: { # Details of the derived image portion 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.
1227 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1228 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1229 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1230 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1231 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1232 &quot;A String&quot;,
1233 ],
1234 &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.
1235 },
1236 &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.
1237 { # Layer holds metadata specific to a layer of a Docker image.
1238 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1239 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
1240 },
1241 ],
1242 },
1243 &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.
1244 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1245 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
1246 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
1247 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1248 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1249 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1250 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1251 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1252 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1253 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1254 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1255 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1256 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1257 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1258 },
1259 },
1260 ],
1261 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1262 },
1263 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1264 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
1265 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1266 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
1267 &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.
1268 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
1269 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1270 &quot;cve&quot;: [ # The cve tied to this Upgrade.
1271 &quot;A String&quot;,
1272 ],
1273 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1274 },
1275 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
1276 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
1277 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1278 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1279 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1280 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1281 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1282 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1283 },
1284 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
1285 &quot;categories&quot;: [ # The list of categories to which the update belongs.
1286 { # The category to which the update belongs.
1287 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
1288 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
1289 },
1290 ],
1291 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
1292 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
1293 &quot;revision&quot;: 42, # The revision number of the update.
1294 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
1295 },
1296 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
1297 &quot;A String&quot;,
1298 ],
1299 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
1300 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
1301 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
1302 },
1303 },
1304 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
1305 &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.
1306 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
1307 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
1308 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1309 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1310 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
1311 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
1312 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
1313 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
1314 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1315 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1316 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1317 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1318 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1319 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1320 },
1321 &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 it is not available.
1322 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
1323 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
1324 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
1325 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
1326 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1327 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1328 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1329 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1330 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1331 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1332 },
1333 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1334 },
1335 ],
1336 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1337 { # Metadata for any related URL information.
1338 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1339 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1340 },
1341 ],
1342 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
1343 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1344 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
1345 },
1346}
1347
1348 x__xgafv: string, V1 error format.
1349 Allowed values
1350 1 - v1 error format
1351 2 - v2 error format
1352
1353Returns:
1354 An object of the form:
1355
1356 { # An instance of an analysis type that has been found on a resource.
1357 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
1358 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
1359 {
1360 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
1361 },
1362 ],
1363 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
1364 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
1365 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
1366 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
1367 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1368 },
1369 ],
1370 },
1371 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1372 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1373 &quot;builderConfig&quot;: { # required
1374 &quot;id&quot;: &quot;A String&quot;,
1375 },
1376 &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.
1377 &quot;A String&quot;,
1378 ],
1379 &quot;metadata&quot;: { # Other properties of the build.
1380 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1381 &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.
1382 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1383 &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.
1384 &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.
1385 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1386 &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;.
1387 },
1388 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1389 },
1390 &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
1391 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1392 {
1393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1394 },
1395 ],
1396 &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.
1397 &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.
1398 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1399 {
1400 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1401 },
1402 ],
1403 &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.
1404 },
1405 },
1406 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
1407 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1408 &quot;a_key&quot;: &quot;A String&quot;,
1409 },
1410 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1411 &quot;builtArtifacts&quot;: [ # Output of the build.
1412 { # Artifact describes a build product.
1413 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1414 &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`.
1415 &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.
1416 &quot;A String&quot;,
1417 ],
1418 },
1419 ],
1420 &quot;commands&quot;: [ # Commands requested by the build.
1421 { # Command describes a step performed as part of the build pipeline.
1422 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1423 &quot;A String&quot;,
1424 ],
1425 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1426 &quot;env&quot;: [ # Environment variables set before running this command.
1427 &quot;A String&quot;,
1428 ],
1429 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1430 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
1431 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1432 &quot;A String&quot;,
1433 ],
1434 },
1435 ],
1436 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1437 &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.
1438 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1439 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1440 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1441 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1442 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1443 &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.
1444 { # 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.
1445 &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.
1446 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1447 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1448 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1449 },
1450 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1451 &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.
1452 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1453 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1454 },
1455 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1456 },
1457 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1458 },
1459 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1460 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1461 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1462 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1463 },
1464 &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.
1465 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1466 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1467 },
1468 &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).
1469 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1470 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1471 },
1472 &quot;labels&quot;: { # Labels with user defined metadata.
1473 &quot;a_key&quot;: &quot;A String&quot;,
1474 },
1475 },
1476 ],
1477 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1478 &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.
1479 &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.
1480 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1481 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1482 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1483 },
1484 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1485 &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.
1486 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1487 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1488 },
1489 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1490 },
1491 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1492 },
1493 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1494 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1495 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1496 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1497 },
1498 &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.
1499 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1500 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1501 },
1502 &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).
1503 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1504 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1505 },
1506 &quot;labels&quot;: { # Labels with user defined metadata.
1507 &quot;a_key&quot;: &quot;A String&quot;,
1508 },
1509 },
1510 &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.
1511 &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.
1512 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1513 { # Container message for hash values.
1514 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
1515 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1516 },
1517 ],
1518 },
1519 },
1520 },
1521 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1522 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1523 },
1524 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
1525 },
1526 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
1527 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
1528 &quot;nonCompliantFiles&quot;: [
1529 { # Details about files that caused a compliance check to fail.
1530 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1531 &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.
1532 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1533 },
1534 ],
1535 },
1536 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1537 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1538 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1539 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1540 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1541 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1542 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1543 &quot;A String&quot;,
1544 ],
1545 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1546 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1547 },
1548 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
1549 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1550 &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 is output only and populated by the API.
1551 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1552 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1553 {
1554 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1555 },
1556 ],
1557 &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.
1558 },
1559 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1560 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1561 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
1562 },
1563 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
1564 &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.
1565 &quot;payload&quot;: &quot;A String&quot;,
1566 &quot;payloadType&quot;: &quot;A String&quot;,
1567 &quot;signatures&quot;: [
1568 {
1569 &quot;keyid&quot;: &quot;A String&quot;,
1570 &quot;sig&quot;: &quot;A String&quot;,
1571 },
1572 ],
1573 },
1574 &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;.
1575 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1576 &quot;provenance&quot;: {
1577 &quot;builderConfig&quot;: { # required
1578 &quot;id&quot;: &quot;A String&quot;,
1579 },
1580 &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.
1581 &quot;A String&quot;,
1582 ],
1583 &quot;metadata&quot;: { # Other properties of the build.
1584 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1585 &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.
1586 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1587 &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.
1588 &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.
1589 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1590 &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;.
1591 },
1592 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1593 },
1594 &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
1595 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1596 {
1597 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1598 },
1599 ],
1600 &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.
1601 &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.
1602 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1603 {
1604 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1605 },
1606 ],
1607 &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.
1608 },
1609 },
1610 &quot;subject&quot;: [
1611 {
1612 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1613 &quot;a_key&quot;: &quot;A String&quot;,
1614 },
1615 &quot;name&quot;: &quot;A String&quot;,
1616 },
1617 ],
1618 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1619 },
1620 },
1621 &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
1622 &quot;payload&quot;: &quot;A String&quot;,
1623 &quot;payloadType&quot;: &quot;A String&quot;,
1624 &quot;signatures&quot;: [
1625 {
1626 &quot;keyid&quot;: &quot;A String&quot;,
1627 &quot;sig&quot;: &quot;A String&quot;,
1628 },
1629 ],
1630 },
1631 &quot;image&quot;: { # Details of the derived image portion 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.
1632 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1633 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1634 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1635 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1636 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1637 &quot;A String&quot;,
1638 ],
1639 &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.
1640 },
1641 &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.
1642 { # Layer holds metadata specific to a layer of a Docker image.
1643 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1644 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
1645 },
1646 ],
1647 },
1648 &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.
1649 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1650 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
1651 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
1652 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1653 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1654 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1655 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1656 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1657 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1658 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1659 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1660 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1661 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1662 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1663 },
1664 },
1665 ],
1666 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1667 },
1668 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1669 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
1670 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1671 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
1672 &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.
1673 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
1674 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1675 &quot;cve&quot;: [ # The cve tied to this Upgrade.
1676 &quot;A String&quot;,
1677 ],
1678 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1679 },
1680 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
1681 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
1682 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1683 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1684 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1685 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1686 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1687 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1688 },
1689 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
1690 &quot;categories&quot;: [ # The list of categories to which the update belongs.
1691 { # The category to which the update belongs.
1692 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
1693 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
1694 },
1695 ],
1696 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
1697 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
1698 &quot;revision&quot;: 42, # The revision number of the update.
1699 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
1700 },
1701 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
1702 &quot;A String&quot;,
1703 ],
1704 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
1705 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
1706 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
1707 },
1708 },
1709 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
1710 &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.
1711 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
1712 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
1713 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1714 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1715 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
1716 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
1717 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
1718 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
1719 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1720 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1721 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1722 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1723 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1724 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1725 },
1726 &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 it is not available.
1727 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
1728 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
1729 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
1730 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
1731 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1732 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
1733 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
1734 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1735 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1736 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1737 },
1738 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1739 },
1740 ],
1741 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1742 { # Metadata for any related URL information.
1743 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1744 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1745 },
1746 ],
1747 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
1748 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1749 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
1750 },
1751}</pre>
1752</div>
1753
1754<div class="method">
1755 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1756 <pre>Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
1757
1758Args:
1759 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
1760 x__xgafv: string, V1 error format.
1761 Allowed values
1762 1 - v1 error format
1763 2 - v2 error format
1764
1765Returns:
1766 An object of the form:
1767
1768 { # 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 `{}`.
1769}</pre>
1770</div>
1771
1772<div class="method">
1773 <code class="details" id="get">get(name, x__xgafv=None)</code>
1774 <pre>Gets the specified occurrence.
1775
1776Args:
1777 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
1778 x__xgafv: string, V1 error format.
1779 Allowed values
1780 1 - v1 error format
1781 2 - v2 error format
1782
1783Returns:
1784 An object of the form:
1785
1786 { # An instance of an analysis type that has been found on a resource.
1787 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
1788 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
1789 {
1790 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
1791 },
1792 ],
1793 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
1794 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
1795 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
1796 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
1797 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1798 },
1799 ],
1800 },
1801 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1802 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1803 &quot;builderConfig&quot;: { # required
1804 &quot;id&quot;: &quot;A String&quot;,
1805 },
1806 &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.
1807 &quot;A String&quot;,
1808 ],
1809 &quot;metadata&quot;: { # Other properties of the build.
1810 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1811 &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.
1812 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1813 &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.
1814 &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.
1815 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1816 &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;.
1817 },
1818 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1819 },
1820 &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
1821 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1822 {
1823 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1824 },
1825 ],
1826 &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.
1827 &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.
1828 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
1829 {
1830 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1831 },
1832 ],
1833 &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.
1834 },
1835 },
1836 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
1837 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1838 &quot;a_key&quot;: &quot;A String&quot;,
1839 },
1840 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1841 &quot;builtArtifacts&quot;: [ # Output of the build.
1842 { # Artifact describes a build product.
1843 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1844 &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`.
1845 &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.
1846 &quot;A String&quot;,
1847 ],
1848 },
1849 ],
1850 &quot;commands&quot;: [ # Commands requested by the build.
1851 { # Command describes a step performed as part of the build pipeline.
1852 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1853 &quot;A String&quot;,
1854 ],
1855 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1856 &quot;env&quot;: [ # Environment variables set before running this command.
1857 &quot;A String&quot;,
1858 ],
1859 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1860 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
1861 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1862 &quot;A String&quot;,
1863 ],
1864 },
1865 ],
1866 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1867 &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.
1868 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1869 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1870 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1871 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1872 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1873 &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.
1874 { # 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.
1875 &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.
1876 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1877 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1878 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1879 },
1880 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1881 &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.
1882 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1883 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1884 },
1885 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1886 },
1887 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1888 },
1889 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1890 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1891 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1892 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1893 },
1894 &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.
1895 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1896 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1897 },
1898 &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).
1899 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1900 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1901 },
1902 &quot;labels&quot;: { # Labels with user defined metadata.
1903 &quot;a_key&quot;: &quot;A String&quot;,
1904 },
1905 },
1906 ],
1907 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1908 &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.
1909 &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.
1910 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1911 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1912 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1913 },
1914 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1915 &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.
1916 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1917 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1918 },
1919 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1920 },
1921 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1922 },
1923 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1924 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1925 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1926 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1927 },
1928 &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.
1929 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1930 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1931 },
1932 &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).
1933 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1934 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1935 },
1936 &quot;labels&quot;: { # Labels with user defined metadata.
1937 &quot;a_key&quot;: &quot;A String&quot;,
1938 },
1939 },
1940 &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.
1941 &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.
1942 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1943 { # Container message for hash values.
1944 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
1945 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1946 },
1947 ],
1948 },
1949 },
1950 },
1951 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1952 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1953 },
1954 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
1955 },
1956 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
1957 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
1958 &quot;nonCompliantFiles&quot;: [
1959 { # Details about files that caused a compliance check to fail.
1960 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1961 &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.
1962 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1963 },
1964 ],
1965 },
1966 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1967 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1968 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1969 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1970 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1971 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1972 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1973 &quot;A String&quot;,
1974 ],
1975 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1976 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1977 },
1978 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
1979 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1980 &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 is output only and populated by the API.
1981 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1982 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1983 {
1984 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1985 },
1986 ],
1987 &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.
1988 },
1989 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1990 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1991 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
1992 },
1993 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
1994 &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.
1995 &quot;payload&quot;: &quot;A String&quot;,
1996 &quot;payloadType&quot;: &quot;A String&quot;,
1997 &quot;signatures&quot;: [
1998 {
1999 &quot;keyid&quot;: &quot;A String&quot;,
2000 &quot;sig&quot;: &quot;A String&quot;,
2001 },
2002 ],
2003 },
2004 &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;.
2005 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2006 &quot;provenance&quot;: {
2007 &quot;builderConfig&quot;: { # required
2008 &quot;id&quot;: &quot;A String&quot;,
2009 },
2010 &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.
2011 &quot;A String&quot;,
2012 ],
2013 &quot;metadata&quot;: { # Other properties of the build.
2014 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2015 &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.
2016 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2017 &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.
2018 &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.
2019 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2020 &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;.
2021 },
2022 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2023 },
2024 &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
2025 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2026 {
2027 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2028 },
2029 ],
2030 &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.
2031 &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.
2032 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2033 {
2034 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2035 },
2036 ],
2037 &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.
2038 },
2039 },
2040 &quot;subject&quot;: [
2041 {
2042 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2043 &quot;a_key&quot;: &quot;A String&quot;,
2044 },
2045 &quot;name&quot;: &quot;A String&quot;,
2046 },
2047 ],
2048 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2049 },
2050 },
2051 &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
2052 &quot;payload&quot;: &quot;A String&quot;,
2053 &quot;payloadType&quot;: &quot;A String&quot;,
2054 &quot;signatures&quot;: [
2055 {
2056 &quot;keyid&quot;: &quot;A String&quot;,
2057 &quot;sig&quot;: &quot;A String&quot;,
2058 },
2059 ],
2060 },
2061 &quot;image&quot;: { # Details of the derived image portion 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.
2062 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2063 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2064 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2065 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2066 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2067 &quot;A String&quot;,
2068 ],
2069 &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.
2070 },
2071 &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.
2072 { # Layer holds metadata specific to a layer of a Docker image.
2073 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2074 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
2075 },
2076 ],
2077 },
2078 &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.
2079 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
2080 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
2081 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
2082 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2083 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2084 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2085 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2086 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2087 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2088 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2089 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2090 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2091 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2092 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2093 },
2094 },
2095 ],
2096 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2097 },
2098 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2099 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
2100 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2101 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
2102 &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.
2103 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
2104 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2105 &quot;cve&quot;: [ # The cve tied to this Upgrade.
2106 &quot;A String&quot;,
2107 ],
2108 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2109 },
2110 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
2111 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
2112 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2113 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2114 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2115 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2116 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2117 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2118 },
2119 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
2120 &quot;categories&quot;: [ # The list of categories to which the update belongs.
2121 { # The category to which the update belongs.
2122 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
2123 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
2124 },
2125 ],
2126 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
2127 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
2128 &quot;revision&quot;: 42, # The revision number of the update.
2129 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
2130 },
2131 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
2132 &quot;A String&quot;,
2133 ],
2134 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
2135 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
2136 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
2137 },
2138 },
2139 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
2140 &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.
2141 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
2142 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
2143 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2144 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2145 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
2146 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
2147 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
2148 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
2149 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2150 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2151 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2152 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2153 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2154 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2155 },
2156 &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 it is not available.
2157 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
2158 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
2159 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
2160 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
2161 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2162 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2163 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2164 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2165 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2166 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2167 },
2168 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
2169 },
2170 ],
2171 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2172 { # Metadata for any related URL information.
2173 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2174 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2175 },
2176 ],
2177 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
2178 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2179 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
2180 },
2181}</pre>
2182</div>
2183
2184<div class="method">
2185 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
2186 <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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
2187
2188Args:
2189 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
2190 body: object, The request body.
2191 The object takes the form of:
2192
2193{ # Request message for `GetIamPolicy` method.
2194 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
2195 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2196 },
2197}
2198
2199 x__xgafv: string, V1 error format.
2200 Allowed values
2201 1 - v1 error format
2202 2 - v2 error format
2203
2204Returns:
2205 An object of the form:
2206
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002207 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
2208 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
2209 { # Associates `members`, or principals, with a `role`.
2210 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
yoshi-code-botf4773f62021-10-19 00:22:31 -07002211 &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.
2212 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2213 &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.
2214 &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.
2215 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002216 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07002217 &quot;A String&quot;,
2218 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002219 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07002220 },
2221 ],
2222 &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.
2223 &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).
2224}</pre>
2225</div>
2226
2227<div class="method">
2228 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
2229 <pre>Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
2230
2231Args:
2232 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
2233 x__xgafv: string, V1 error format.
2234 Allowed values
2235 1 - v1 error format
2236 2 - v2 error format
2237
2238Returns:
2239 An object of the form:
2240
2241 { # A type of analysis that can be done for a resource.
2242 &quot;attestation&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` 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.
2243 &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. # Hint hints at the purpose of the attestation authority.
2244 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
2245 },
2246 },
2247 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
2248 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2249 },
2250 &quot;compliance&quot;: { # A note describing a compliance check.
2251 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark.
2252 &quot;profileLevel&quot;: 42,
2253 &quot;severity&quot;: &quot;A String&quot;,
2254 },
2255 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
2256 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
2257 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
2258 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
2259 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
2260 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
2261 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
2262 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
2263 &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.
2264 },
2265 ],
2266 },
2267 &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.
2268 &quot;deployment&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2269 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2270 &quot;A String&quot;,
2271 ],
2272 },
2273 &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. # A note describing the initial analysis of a resource.
2274 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
2275 },
2276 &quot;dsseAttestation&quot;: { # A note describing a dsse attestation note.
2277 &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.
2278 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
2279 },
2280 },
2281 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2282 &quot;image&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.
2283 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2284 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2285 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2286 &quot;A String&quot;,
2287 ],
2288 &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.
2289 },
2290 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
2291 },
2292 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
2293 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2294 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2295 &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.
2296 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2297 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
2298 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
2299 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2300 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2301 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2302 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2303 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2304 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2305 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2306 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2307 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2308 },
2309 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2310 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2311 },
2312 ],
2313 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2314 },
2315 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2316 &quot;A String&quot;,
2317 ],
2318 &quot;relatedUrl&quot;: [ # URLs associated with this note.
2319 { # Metadata for any related URL information.
2320 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2321 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2322 },
2323 ],
2324 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
2325 &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.
2326 &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 an Upgrade Note. For Windows, windows_update field represents the information related to the update. # A note describing available package upgrades.
2327 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
2328 { # 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.
2329 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
2330 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2331 &quot;cve&quot;: [ # The cve tied to this Upgrade.
2332 &quot;A String&quot;,
2333 ],
2334 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2335 },
2336 ],
2337 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
2338 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in machine + human readable form.
2339 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2340 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2341 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2342 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2343 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2344 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2345 },
2346 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
2347 &quot;categories&quot;: [ # The list of categories to which the update belongs.
2348 { # The category to which the update belongs.
2349 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
2350 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
2351 },
2352 ],
2353 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
2354 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
2355 &quot;revision&quot;: 42, # The revision number of the update.
2356 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
2357 },
2358 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
2359 &quot;A String&quot;,
2360 ],
2361 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
2362 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
2363 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
2364 },
2365 },
2366 &quot;vulnerability&quot;: { # A security vulnerability that can be found in resources. # A note describing a package vulnerability.
2367 &quot;cvssScore&quot;: 3.14, # 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.
2368 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3 for this vulnerability.
2369 &quot;attackComplexity&quot;: &quot;A String&quot;,
2370 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
2371 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2372 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2373 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2374 &quot;exploitabilityScore&quot;: 3.14,
2375 &quot;impactScore&quot;: 3.14,
2376 &quot;integrityImpact&quot;: &quot;A String&quot;,
2377 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2378 &quot;scope&quot;: &quot;A String&quot;,
2379 &quot;userInteraction&quot;: &quot;A String&quot;,
2380 },
2381 &quot;details&quot;: [ # Details of all known distros and packages affected by this vulnerability.
2382 { # A detail for a distro and package affected by this vulnerability and its associated fix (if one is available).
2383 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects.
2384 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability affects.
2385 &quot;affectedVersionEnd&quot;: { # Version contains structured information about the version of a package. # The version number at the end of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
2386 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2387 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2388 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2389 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2390 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2391 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2392 },
2393 &quot;affectedVersionStart&quot;: { # Version contains structured information about the version of a package. # The version number at the start of an interval in which this vulnerability exists. A vulnerability can affect a package between version numbers that are disjoint sets of intervals (example: [1.0.0-1.1.0], [2.4.6-2.4.8] and [4.5.6-4.6.8]) each of which will be represented in its own Detail. If a specific affected version is provided by a vulnerability database, affected_version_start and affected_version_end will be the same in that Detail.
2394 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2395 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2396 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2397 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2398 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2399 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2400 },
2401 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this vulnerability.
2402 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The distro recommended [CPE URI](https://cpe.mitre.org/specification/) to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_cpe_uri.
2403 &quot;fixedPackage&quot;: &quot;A String&quot;, # The distro recommended package to update to that contains a fix for this vulnerability. It is possible for this to be different from the affected_package.
2404 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # The distro recommended version to update to that contains a fix for this vulnerability. Setting this to VersionKind.MAXIMUM means no such version is yet available.
2405 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2406 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2407 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2408 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2409 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2410 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2411 },
2412 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
2413 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
2414 &quot;severityName&quot;: &quot;A String&quot;, # The distro assigned severity of this vulnerability.
2415 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
2416 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
2417 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
2418 },
2419 ],
2420 &quot;severity&quot;: &quot;A String&quot;, # The note provider assigned severity of this vulnerability.
2421 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
2422 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
2423 {
2424 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability affects.
2425 &quot;description&quot;: &quot;A String&quot;, # The description of this vulnerability.
2426 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed KBs presence is considered a fix.
2427 {
2428 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ (e.g., KB123456)).
2429 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the [Windows update catalog] (https://www.catalog.update.microsoft.com/).
2430 },
2431 ],
2432 &quot;name&quot;: &quot;A String&quot;, # Required. The name of this vulnerability.
2433 },
2434 ],
2435 },
2436}</pre>
2437</div>
2438
2439<div class="method">
2440 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
2441 <pre>Gets a summary of the number and severity of occurrences.
2442
2443Args:
2444 parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required)
2445 filter: string, The filter expression.
2446 x__xgafv: string, V1 error format.
2447 Allowed values
2448 1 - v1 error format
2449 2 - v2 error format
2450
2451Returns:
2452 An object of the form:
2453
2454 { # A summary of how many vulnerability occurrences there are per resource and severity type.
2455 &quot;counts&quot;: [ # A listing by resource of the number of fixable and total vulnerabilities.
2456 { # Per resource and severity counts of fixable and total vulnerabilities.
2457 &quot;fixableCount&quot;: &quot;A String&quot;, # The number of fixable vulnerabilities associated with this resource.
2458 &quot;resourceUri&quot;: &quot;A String&quot;, # The affected resource.
2459 &quot;severity&quot;: &quot;A String&quot;, # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.
2460 &quot;totalCount&quot;: &quot;A String&quot;, # The total number of vulnerabilities associated with this resource.
2461 },
2462 ],
2463}</pre>
2464</div>
2465
2466<div class="method">
2467 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
2468 <pre>Lists occurrences for the specified project.
2469
2470Args:
2471 parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required)
2472 filter: string, The filter expression.
2473 pageSize: integer, Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
2474 pageToken: string, Token to provide to skip to a particular spot in the list.
2475 x__xgafv: string, V1 error format.
2476 Allowed values
2477 1 - v1 error format
2478 2 - v2 error format
2479
2480Returns:
2481 An object of the form:
2482
2483 { # Response for listing occurrences.
2484 &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.
2485 &quot;occurrences&quot;: [ # The occurrences requested.
2486 { # An instance of an analysis type that has been found on a resource.
2487 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
2488 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
2489 {
2490 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
2491 },
2492 ],
2493 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
2494 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
2495 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
2496 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
2497 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
2498 },
2499 ],
2500 },
2501 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2502 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2503 &quot;builderConfig&quot;: { # required
2504 &quot;id&quot;: &quot;A String&quot;,
2505 },
2506 &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.
2507 &quot;A String&quot;,
2508 ],
2509 &quot;metadata&quot;: { # Other properties of the build.
2510 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2511 &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.
2512 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2513 &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.
2514 &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.
2515 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2516 &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;.
2517 },
2518 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2519 },
2520 &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
2521 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2522 {
2523 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2524 },
2525 ],
2526 &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.
2527 &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.
2528 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2529 {
2530 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2531 },
2532 ],
2533 &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.
2534 },
2535 },
2536 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
2537 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2538 &quot;a_key&quot;: &quot;A String&quot;,
2539 },
2540 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2541 &quot;builtArtifacts&quot;: [ # Output of the build.
2542 { # Artifact describes a build product.
2543 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2544 &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`.
2545 &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.
2546 &quot;A String&quot;,
2547 ],
2548 },
2549 ],
2550 &quot;commands&quot;: [ # Commands requested by the build.
2551 { # Command describes a step performed as part of the build pipeline.
2552 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2553 &quot;A String&quot;,
2554 ],
2555 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2556 &quot;env&quot;: [ # Environment variables set before running this command.
2557 &quot;A String&quot;,
2558 ],
2559 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2560 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
2561 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2562 &quot;A String&quot;,
2563 ],
2564 },
2565 ],
2566 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2567 &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.
2568 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2569 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2570 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
2571 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2572 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2573 &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.
2574 { # 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.
2575 &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.
2576 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2577 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2578 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2579 },
2580 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2581 &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.
2582 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2583 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2584 },
2585 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2586 },
2587 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2588 },
2589 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2590 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2591 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2592 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2593 },
2594 &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.
2595 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2596 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2597 },
2598 &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).
2599 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2600 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2601 },
2602 &quot;labels&quot;: { # Labels with user defined metadata.
2603 &quot;a_key&quot;: &quot;A String&quot;,
2604 },
2605 },
2606 ],
2607 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2608 &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.
2609 &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.
2610 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2611 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2612 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2613 },
2614 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2615 &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.
2616 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2617 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2618 },
2619 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2620 },
2621 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2622 },
2623 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2624 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2625 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2626 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2627 },
2628 &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.
2629 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2630 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2631 },
2632 &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).
2633 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2634 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2635 },
2636 &quot;labels&quot;: { # Labels with user defined metadata.
2637 &quot;a_key&quot;: &quot;A String&quot;,
2638 },
2639 },
2640 &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.
2641 &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.
2642 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2643 { # Container message for hash values.
2644 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
2645 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2646 },
2647 ],
2648 },
2649 },
2650 },
2651 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2652 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2653 },
2654 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
2655 },
2656 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
2657 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
2658 &quot;nonCompliantFiles&quot;: [
2659 { # Details about files that caused a compliance check to fail.
2660 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2661 &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.
2662 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2663 },
2664 ],
2665 },
2666 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
2667 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2668 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2669 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2670 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2671 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2672 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2673 &quot;A String&quot;,
2674 ],
2675 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2676 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2677 },
2678 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
2679 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2680 &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 is output only and populated by the API.
2681 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2682 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2683 {
2684 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2685 },
2686 ],
2687 &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.
2688 },
2689 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2690 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2691 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
2692 },
2693 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
2694 &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.
2695 &quot;payload&quot;: &quot;A String&quot;,
2696 &quot;payloadType&quot;: &quot;A String&quot;,
2697 &quot;signatures&quot;: [
2698 {
2699 &quot;keyid&quot;: &quot;A String&quot;,
2700 &quot;sig&quot;: &quot;A String&quot;,
2701 },
2702 ],
2703 },
2704 &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;.
2705 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2706 &quot;provenance&quot;: {
2707 &quot;builderConfig&quot;: { # required
2708 &quot;id&quot;: &quot;A String&quot;,
2709 },
2710 &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.
2711 &quot;A String&quot;,
2712 ],
2713 &quot;metadata&quot;: { # Other properties of the build.
2714 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2715 &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.
2716 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2717 &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.
2718 &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.
2719 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2720 &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;.
2721 },
2722 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2723 },
2724 &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
2725 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2726 {
2727 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2728 },
2729 ],
2730 &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.
2731 &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.
2732 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2733 {
2734 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2735 },
2736 ],
2737 &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.
2738 },
2739 },
2740 &quot;subject&quot;: [
2741 {
2742 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2743 &quot;a_key&quot;: &quot;A String&quot;,
2744 },
2745 &quot;name&quot;: &quot;A String&quot;,
2746 },
2747 ],
2748 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2749 },
2750 },
2751 &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
2752 &quot;payload&quot;: &quot;A String&quot;,
2753 &quot;payloadType&quot;: &quot;A String&quot;,
2754 &quot;signatures&quot;: [
2755 {
2756 &quot;keyid&quot;: &quot;A String&quot;,
2757 &quot;sig&quot;: &quot;A String&quot;,
2758 },
2759 ],
2760 },
2761 &quot;image&quot;: { # Details of the derived image portion 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.
2762 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2763 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2764 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2765 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2766 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2767 &quot;A String&quot;,
2768 ],
2769 &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.
2770 },
2771 &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.
2772 { # Layer holds metadata specific to a layer of a Docker image.
2773 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2774 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
2775 },
2776 ],
2777 },
2778 &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.
2779 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
2780 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
2781 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
2782 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2783 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2784 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2785 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2786 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2787 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2788 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2789 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2790 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2791 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2792 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2793 },
2794 },
2795 ],
2796 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2797 },
2798 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2799 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
2800 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2801 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
2802 &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.
2803 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
2804 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2805 &quot;cve&quot;: [ # The cve tied to this Upgrade.
2806 &quot;A String&quot;,
2807 ],
2808 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2809 },
2810 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
2811 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
2812 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2813 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2814 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2815 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2816 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2817 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2818 },
2819 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
2820 &quot;categories&quot;: [ # The list of categories to which the update belongs.
2821 { # The category to which the update belongs.
2822 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
2823 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
2824 },
2825 ],
2826 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
2827 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
2828 &quot;revision&quot;: 42, # The revision number of the update.
2829 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
2830 },
2831 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
2832 &quot;A String&quot;,
2833 ],
2834 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
2835 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
2836 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
2837 },
2838 },
2839 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
2840 &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.
2841 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
2842 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
2843 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2844 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2845 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
2846 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
2847 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
2848 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
2849 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2850 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2851 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2852 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2853 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2854 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2855 },
2856 &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 it is not available.
2857 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
2858 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
2859 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
2860 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
2861 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2862 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
2863 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
2864 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2865 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2866 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2867 },
2868 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
2869 },
2870 ],
2871 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2872 { # Metadata for any related URL information.
2873 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2874 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2875 },
2876 ],
2877 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
2878 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2879 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
2880 },
2881 },
2882 ],
2883}</pre>
2884</div>
2885
2886<div class="method">
2887 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2888 <pre>Retrieves the next page of results.
2889
2890Args:
2891 previous_request: The request for the previous page. (required)
2892 previous_response: The response from the request for the previous page. (required)
2893
2894Returns:
2895 A request object that you can call &#x27;execute()&#x27; on to request the next
2896 page. Returns None if there are no more items in the collection.
2897 </pre>
2898</div>
2899
2900<div class="method">
2901 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
2902 <pre>Updates the specified occurrence.
2903
2904Args:
2905 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
2906 body: object, The request body.
2907 The object takes the form of:
2908
2909{ # An instance of an analysis type that has been found on a resource.
2910 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
2911 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
2912 {
2913 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
2914 },
2915 ],
2916 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
2917 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
2918 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
2919 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
2920 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
2921 },
2922 ],
2923 },
2924 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2925 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2926 &quot;builderConfig&quot;: { # required
2927 &quot;id&quot;: &quot;A String&quot;,
2928 },
2929 &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.
2930 &quot;A String&quot;,
2931 ],
2932 &quot;metadata&quot;: { # Other properties of the build.
2933 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2934 &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.
2935 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2936 &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.
2937 &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.
2938 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2939 &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;.
2940 },
2941 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2942 },
2943 &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
2944 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2945 {
2946 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2947 },
2948 ],
2949 &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.
2950 &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.
2951 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
2952 {
2953 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2954 },
2955 ],
2956 &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.
2957 },
2958 },
2959 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
2960 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2961 &quot;a_key&quot;: &quot;A String&quot;,
2962 },
2963 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2964 &quot;builtArtifacts&quot;: [ # Output of the build.
2965 { # Artifact describes a build product.
2966 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2967 &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`.
2968 &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.
2969 &quot;A String&quot;,
2970 ],
2971 },
2972 ],
2973 &quot;commands&quot;: [ # Commands requested by the build.
2974 { # Command describes a step performed as part of the build pipeline.
2975 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2976 &quot;A String&quot;,
2977 ],
2978 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2979 &quot;env&quot;: [ # Environment variables set before running this command.
2980 &quot;A String&quot;,
2981 ],
2982 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2983 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
2984 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2985 &quot;A String&quot;,
2986 ],
2987 },
2988 ],
2989 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2990 &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.
2991 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2992 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2993 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
2994 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2995 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2996 &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.
2997 { # 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.
2998 &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.
2999 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3000 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3001 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3002 },
3003 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3004 &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.
3005 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3006 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3007 },
3008 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3009 },
3010 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3011 },
3012 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3013 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3014 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3015 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3016 },
3017 &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.
3018 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3019 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3020 },
3021 &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).
3022 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3023 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3024 },
3025 &quot;labels&quot;: { # Labels with user defined metadata.
3026 &quot;a_key&quot;: &quot;A String&quot;,
3027 },
3028 },
3029 ],
3030 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
3031 &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.
3032 &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.
3033 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3034 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3035 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3036 },
3037 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3038 &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.
3039 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3040 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3041 },
3042 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3043 },
3044 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3045 },
3046 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3047 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3048 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3049 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3050 },
3051 &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.
3052 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3053 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3054 },
3055 &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).
3056 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3057 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3058 },
3059 &quot;labels&quot;: { # Labels with user defined metadata.
3060 &quot;a_key&quot;: &quot;A String&quot;,
3061 },
3062 },
3063 &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.
3064 &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.
3065 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
3066 { # Container message for hash values.
3067 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
3068 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3069 },
3070 ],
3071 },
3072 },
3073 },
3074 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3075 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
3076 },
3077 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
3078 },
3079 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
3080 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
3081 &quot;nonCompliantFiles&quot;: [
3082 { # Details about files that caused a compliance check to fail.
3083 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
3084 &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.
3085 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
3086 },
3087 ],
3088 },
3089 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
3090 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3091 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3092 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3093 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
3094 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3095 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3096 &quot;A String&quot;,
3097 ],
3098 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3099 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3100 },
3101 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
3102 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3103 &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 is output only and populated by the API.
3104 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3105 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3106 {
3107 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3108 },
3109 ],
3110 &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.
3111 },
3112 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3113 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3114 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
3115 },
3116 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
3117 &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.
3118 &quot;payload&quot;: &quot;A String&quot;,
3119 &quot;payloadType&quot;: &quot;A String&quot;,
3120 &quot;signatures&quot;: [
3121 {
3122 &quot;keyid&quot;: &quot;A String&quot;,
3123 &quot;sig&quot;: &quot;A String&quot;,
3124 },
3125 ],
3126 },
3127 &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;.
3128 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
3129 &quot;provenance&quot;: {
3130 &quot;builderConfig&quot;: { # required
3131 &quot;id&quot;: &quot;A String&quot;,
3132 },
3133 &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.
3134 &quot;A String&quot;,
3135 ],
3136 &quot;metadata&quot;: { # Other properties of the build.
3137 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3138 &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.
3139 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3140 &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.
3141 &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.
3142 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3143 &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;.
3144 },
3145 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3146 },
3147 &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
3148 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3149 {
3150 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3151 },
3152 ],
3153 &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.
3154 &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.
3155 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3156 {
3157 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3158 },
3159 ],
3160 &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.
3161 },
3162 },
3163 &quot;subject&quot;: [
3164 {
3165 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3166 &quot;a_key&quot;: &quot;A String&quot;,
3167 },
3168 &quot;name&quot;: &quot;A String&quot;,
3169 },
3170 ],
3171 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3172 },
3173 },
3174 &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
3175 &quot;payload&quot;: &quot;A String&quot;,
3176 &quot;payloadType&quot;: &quot;A String&quot;,
3177 &quot;signatures&quot;: [
3178 {
3179 &quot;keyid&quot;: &quot;A String&quot;,
3180 &quot;sig&quot;: &quot;A String&quot;,
3181 },
3182 ],
3183 },
3184 &quot;image&quot;: { # Details of the derived image portion 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.
3185 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3186 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3187 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
3188 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
3189 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
3190 &quot;A String&quot;,
3191 ],
3192 &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.
3193 },
3194 &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.
3195 { # Layer holds metadata specific to a layer of a Docker image.
3196 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3197 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
3198 },
3199 ],
3200 },
3201 &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.
3202 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
3203 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
3204 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
3205 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
3206 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
3207 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
3208 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3209 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
3210 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3211 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3212 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3213 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3214 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3215 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3216 },
3217 },
3218 ],
3219 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3220 },
3221 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
3222 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
3223 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
3224 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
3225 &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.
3226 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
3227 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3228 &quot;cve&quot;: [ # The cve tied to this Upgrade.
3229 &quot;A String&quot;,
3230 ],
3231 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3232 },
3233 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
3234 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
3235 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3236 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3237 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3238 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3239 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3240 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3241 },
3242 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
3243 &quot;categories&quot;: [ # The list of categories to which the update belongs.
3244 { # The category to which the update belongs.
3245 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
3246 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
3247 },
3248 ],
3249 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
3250 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
3251 &quot;revision&quot;: 42, # The revision number of the update.
3252 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
3253 },
3254 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
3255 &quot;A String&quot;,
3256 ],
3257 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
3258 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
3259 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
3260 },
3261 },
3262 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
3263 &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.
3264 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
3265 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
3266 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
3267 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
3268 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
3269 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
3270 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
3271 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
3272 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3273 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3274 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3275 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3276 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3277 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3278 },
3279 &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 it is not available.
3280 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
3281 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
3282 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
3283 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
3284 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3285 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3286 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3287 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3288 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3289 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3290 },
3291 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3292 },
3293 ],
3294 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
3295 { # Metadata for any related URL information.
3296 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
3297 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
3298 },
3299 ],
3300 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
3301 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
3302 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
3303 },
3304}
3305
3306 updateMask: string, The fields to update.
3307 x__xgafv: string, V1 error format.
3308 Allowed values
3309 1 - v1 error format
3310 2 - v2 error format
3311
3312Returns:
3313 An object of the form:
3314
3315 { # An instance of an analysis type that has been found on a resource.
3316 &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 authority to which this attestation is attached is primarily useful for lookup (how to find this attestation if you already know the authority and artifact to be verified) and intent (for which authority this attestation was intended to sign. # Describes an attestation of an artifact.
3317 &quot;jwts&quot;: [ # One or more JWTs encoding a self-contained attestation. Each JWT encodes the payload that it verifies within the JWT itself. Verifier implementation SHOULD ignore the `serialized_payload` field when verifying these JWTs. If only JWTs are present on this AttestationOccurrence, then the `serialized_payload` SHOULD be left empty. Each JWT SHOULD encode a claim specific to the `resource_uri` of this Occurrence, but this is not validated by Grafeas metadata API implementations. The JWT itself is opaque to Grafeas.
3318 {
3319 &quot;compactJwt&quot;: &quot;A String&quot;, # The compact encoding of a JWS, which is always three base64 encoded strings joined by periods. For details, see: https://tools.ietf.org/html/rfc7515.html#section-3.1
3320 },
3321 ],
3322 &quot;serializedPayload&quot;: &quot;A String&quot;, # Required. The serialized payload that is verified by one or more `signatures`.
3323 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
3324 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
3325 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
3326 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
3327 },
3328 ],
3329 },
3330 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
3331 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
3332 &quot;builderConfig&quot;: { # required
3333 &quot;id&quot;: &quot;A String&quot;,
3334 },
3335 &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.
3336 &quot;A String&quot;,
3337 ],
3338 &quot;metadata&quot;: { # Other properties of the build.
3339 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3340 &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.
3341 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3342 &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.
3343 &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.
3344 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3345 &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;.
3346 },
3347 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3348 },
3349 &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
3350 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3351 {
3352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3353 },
3354 ],
3355 &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.
3356 &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.
3357 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3358 {
3359 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3360 },
3361 ],
3362 &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.
3363 },
3364 },
3365 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
3366 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
3367 &quot;a_key&quot;: &quot;A String&quot;,
3368 },
3369 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3370 &quot;builtArtifacts&quot;: [ # Output of the build.
3371 { # Artifact describes a build product.
3372 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
3373 &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`.
3374 &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.
3375 &quot;A String&quot;,
3376 ],
3377 },
3378 ],
3379 &quot;commands&quot;: [ # Commands requested by the build.
3380 { # Command describes a step performed as part of the build pipeline.
3381 &quot;args&quot;: [ # Command-line arguments used when executing this command.
3382 &quot;A String&quot;,
3383 ],
3384 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
3385 &quot;env&quot;: [ # Environment variables set before running this command.
3386 &quot;A String&quot;,
3387 ],
3388 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
3389 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
3390 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
3391 &quot;A String&quot;,
3392 ],
3393 },
3394 ],
3395 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
3396 &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.
3397 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3398 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
3399 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
3400 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3401 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3402 &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.
3403 { # 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.
3404 &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.
3405 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3406 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3407 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3408 },
3409 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3410 &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.
3411 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3412 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3413 },
3414 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3415 },
3416 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3417 },
3418 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3419 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3420 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3421 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3422 },
3423 &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.
3424 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3425 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3426 },
3427 &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).
3428 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3429 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3430 },
3431 &quot;labels&quot;: { # Labels with user defined metadata.
3432 &quot;a_key&quot;: &quot;A String&quot;,
3433 },
3434 },
3435 ],
3436 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
3437 &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.
3438 &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.
3439 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3440 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3441 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3442 },
3443 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3444 &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.
3445 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3446 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3447 },
3448 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3449 },
3450 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3451 },
3452 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3453 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3454 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3455 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3456 },
3457 &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.
3458 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3459 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3460 },
3461 &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).
3462 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3463 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3464 },
3465 &quot;labels&quot;: { # Labels with user defined metadata.
3466 &quot;a_key&quot;: &quot;A String&quot;,
3467 },
3468 },
3469 &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.
3470 &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.
3471 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
3472 { # Container message for hash values.
3473 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed, e.g. &quot;SHA-256&quot;.
3474 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3475 },
3476 ],
3477 },
3478 },
3479 },
3480 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3481 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
3482 },
3483 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
3484 },
3485 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes a compliance violation on a linked resource.
3486 &quot;nonComplianceReason&quot;: &quot;A String&quot;,
3487 &quot;nonCompliantFiles&quot;: [
3488 { # Details about files that caused a compliance check to fail.
3489 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
3490 &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.
3491 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
3492 },
3493 ],
3494 },
3495 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
3496 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3497 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3498 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3499 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
3500 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3501 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3502 &quot;A String&quot;,
3503 ],
3504 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3505 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3506 },
3507 &quot;discovery&quot;: { # Provides information about the analysis status of a discovered resource. # Describes when a resource was discovered.
3508 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3509 &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 is output only and populated by the API.
3510 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3511 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3512 {
3513 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3514 },
3515 ],
3516 &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.
3517 },
3518 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3519 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3520 &quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
3521 },
3522 &quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
3523 &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.
3524 &quot;payload&quot;: &quot;A String&quot;,
3525 &quot;payloadType&quot;: &quot;A String&quot;,
3526 &quot;signatures&quot;: [
3527 {
3528 &quot;keyid&quot;: &quot;A String&quot;,
3529 &quot;sig&quot;: &quot;A String&quot;,
3530 },
3531 ],
3532 },
3533 &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;.
3534 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
3535 &quot;provenance&quot;: {
3536 &quot;builderConfig&quot;: { # required
3537 &quot;id&quot;: &quot;A String&quot;,
3538 },
3539 &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.
3540 &quot;A String&quot;,
3541 ],
3542 &quot;metadata&quot;: { # Other properties of the build.
3543 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3544 &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.
3545 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3546 &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.
3547 &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.
3548 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3549 &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;.
3550 },
3551 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3552 },
3553 &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
3554 &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. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3555 {
3556 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3557 },
3558 ],
3559 &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.
3560 &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.
3561 &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. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
3562 {
3563 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3564 },
3565 ],
3566 &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.
3567 },
3568 },
3569 &quot;subject&quot;: [
3570 {
3571 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3572 &quot;a_key&quot;: &quot;A String&quot;,
3573 },
3574 &quot;name&quot;: &quot;A String&quot;,
3575 },
3576 ],
3577 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3578 },
3579 },
3580 &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
3581 &quot;payload&quot;: &quot;A String&quot;,
3582 &quot;payloadType&quot;: &quot;A String&quot;,
3583 &quot;signatures&quot;: [
3584 {
3585 &quot;keyid&quot;: &quot;A String&quot;,
3586 &quot;sig&quot;: &quot;A String&quot;,
3587 },
3588 ],
3589 },
3590 &quot;image&quot;: { # Details of the derived image portion 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.
3591 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3592 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3593 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
3594 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
3595 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
3596 &quot;A String&quot;,
3597 ],
3598 &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.
3599 },
3600 &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.
3601 { # Layer holds metadata specific to a layer of a Docker image.
3602 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3603 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer. See https://docs.docker.com/engine/reference/builder/ for more information.
3604 },
3605 ],
3606 },
3607 &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.
3608 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
3609 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
3610 &quot;package&quot;: { # Details on how a particular software package was installed on a system. # Describes the installation of a package on the linked resource.
3611 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
3612 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
3613 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
3614 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3615 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
3616 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3617 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3618 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3619 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3620 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3621 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3622 },
3623 },
3624 ],
3625 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3626 },
3627 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
3628 &quot;resourceUri&quot;: &quot;A String&quot;, # Required. Immutable. A URI that represents the resource for which the occurrence applies. For example, `https://gcr.io/project/image@sha256:123abc` for a Docker image.
3629 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
3630 &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). For Windows, both distribution and windows_update contain information for the Windows update. # Describes an available package upgrade on the linked resource.
3631 &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.
3632 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed. For Windows the classification is one of the category_ids listed at https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ff357803(v=vs.85)
3633 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3634 &quot;cve&quot;: [ # The cve tied to this Upgrade.
3635 &quot;A String&quot;,
3636 ],
3637 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3638 },
3639 &quot;package&quot;: &quot;A String&quot;, # Required for non-Windows OS. The package this Upgrade is for.
3640 &quot;parsedVersion&quot;: { # Version contains structured information about the version of a package. # Required for non-Windows OS. The version of the package in a machine + human readable form.
3641 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3642 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3643 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3644 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3645 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3646 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3647 },
3648 &quot;windowsUpdate&quot;: { # Windows Update represents the metadata about the update for the Windows operating system. The fields in this message come from the Windows Update API documented at https://docs.microsoft.com/en-us/windows/win32/api/wuapi/nn-wuapi-iupdate. # Required for Windows OS. Represents the metadata about the Windows update.
3649 &quot;categories&quot;: [ # The list of categories to which the update belongs.
3650 { # The category to which the update belongs.
3651 &quot;categoryId&quot;: &quot;A String&quot;, # The identifier of the category.
3652 &quot;name&quot;: &quot;A String&quot;, # The localized name of the category.
3653 },
3654 ],
3655 &quot;description&quot;: &quot;A String&quot;, # The localized description of the update.
3656 &quot;identity&quot;: { # The unique identifier of the update. # Required - The unique identifier for the update.
3657 &quot;revision&quot;: 42, # The revision number of the update.
3658 &quot;updateId&quot;: &quot;A String&quot;, # The revision independent identifier of the update.
3659 },
3660 &quot;kbArticleIds&quot;: [ # The Microsoft Knowledge Base article IDs that are associated with the update.
3661 &quot;A String&quot;,
3662 ],
3663 &quot;lastPublishedTimestamp&quot;: &quot;A String&quot;, # The last published timestamp of the update.
3664 &quot;supportUrl&quot;: &quot;A String&quot;, # The hyperlink to the support information for the update.
3665 &quot;title&quot;: &quot;A String&quot;, # The localized title of the update.
3666 },
3667 },
3668 &quot;vulnerability&quot;: { # An occurrence of a severity vulnerability on a resource. # Describes a security vulnerability.
3669 &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.
3670 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, otherwise this is the note provider assigned severity. When there are multiple PackageIssues for this vulnerability, they can have different effective severities because some might be provided by the distro while others are provided by the language ecosystem for a language pack. For this reason, it is advised to use the effective severity on the PackageIssue level. In the case where multiple PackageIssues have differing effective severities, this field should be the highest severity for any of the PackageIssues.
3671 &quot;fixAvailable&quot;: True or False, # Output only. Whether at least one of the affected packages has a fix available.
3672 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
3673 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
3674 { # A detail for a distro and package this vulnerability occurrence was found in and its associated fix (if one is available).
3675 &quot;affectedCpeUri&quot;: &quot;A String&quot;, # Required. The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was found in.
3676 &quot;affectedPackage&quot;: &quot;A String&quot;, # Required. The package this vulnerability was found in.
3677 &quot;affectedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package that is installed on the resource affected by this vulnerability.
3678 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3679 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3680 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3681 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3682 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3683 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3684 },
3685 &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 it is not available.
3686 &quot;fixAvailable&quot;: True or False, # Output only. Whether a fix is available for this package.
3687 &quot;fixedCpeUri&quot;: &quot;A String&quot;, # The [CPE URI](https://cpe.mitre.org/specification/) this vulnerability was fixed in. It is possible for this to be different from the affected_cpe_uri.
3688 &quot;fixedPackage&quot;: &quot;A String&quot;, # The package this vulnerability was fixed in. It is possible for this to be different from the affected_package.
3689 &quot;fixedVersion&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package this vulnerability was fixed in. Setting this to VersionKind.MAXIMUM means no fix is yet available.
3690 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3691 &quot;fullName&quot;: &quot;A String&quot;, # Human readable version string. This string is of the form :- and is only set when kind is NORMAL.
3692 &quot;inclusive&quot;: True or False, # Whether this version is specifying part of an inclusive range. Grafeas does not have the capability to specify version ranges; instead we have fields that specify start version and end versions. At times this is insufficient - we also need to specify whether the version is included in the range or is excluded from the range. This boolean is expected to be set to true when the version is included in a range.
3693 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3694 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3695 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3696 },
3697 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3698 },
3699 ],
3700 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
3701 { # Metadata for any related URL information.
3702 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
3703 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
3704 },
3705 ],
3706 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned severity of this vulnerability.
3707 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
3708 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native (e.g., ruby gems, node.js packages, etc.).
3709 },
3710}</pre>
3711</div>
3712
3713<div class="method">
3714 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
3715 <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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
3716
3717Args:
3718 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
3719 body: object, The request body.
3720 The object takes the form of:
3721
3722{ # Request message for `SetIamPolicy` method.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003723 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
3724 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3725 { # Associates `members`, or principals, with a `role`.
3726 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
yoshi-code-botf4773f62021-10-19 00:22:31 -07003727 &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.
3728 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3729 &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.
3730 &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.
3731 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003732 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07003733 &quot;A String&quot;,
3734 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003735 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07003736 },
3737 ],
3738 &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.
3739 &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).
3740 },
3741}
3742
3743 x__xgafv: string, V1 error format.
3744 Allowed values
3745 1 - v1 error format
3746 2 - v2 error format
3747
3748Returns:
3749 An object of the form:
3750
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003751 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
3752 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3753 { # Associates `members`, or principals, with a `role`.
3754 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
yoshi-code-botf4773f62021-10-19 00:22:31 -07003755 &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.
3756 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3757 &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.
3758 &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.
3759 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003760 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07003761 &quot;A String&quot;,
3762 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003763 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
yoshi-code-botf4773f62021-10-19 00:22:31 -07003764 },
3765 ],
3766 &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.
3767 &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).
3768}</pre>
3769</div>
3770
3771<div class="method">
3772 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
3773 <pre>Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
3774
3775Args:
3776 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)
3777 body: object, The request body.
3778 The object takes the form of:
3779
3780{ # Request message for `TestIamPermissions` method.
3781 &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).
3782 &quot;A String&quot;,
3783 ],
3784}
3785
3786 x__xgafv: string, V1 error format.
3787 Allowed values
3788 1 - v1 error format
3789 2 - v2 error format
3790
3791Returns:
3792 An object of the form:
3793
3794 { # Response message for `TestIamPermissions` method.
3795 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3796 &quot;A String&quot;,
3797 ],
3798}</pre>
3799</div>
3800
3801</body></html>