1<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5  margin: 0;
6  padding: 0;
7  border: 0;
8  font-weight: inherit;
9  font-style: inherit;
10  font-size: 100%;
11  font-family: inherit;
12  vertical-align: baseline;
13}
14
15body {
16  font-size: 13px;
17  padding: 1em;
18}
19
20h1 {
21  font-size: 26px;
22  margin-bottom: 1em;
23}
24
25h2 {
26  font-size: 24px;
27  margin-bottom: 1em;
28}
29
30h3 {
31  font-size: 20px;
32  margin-bottom: 1em;
33  margin-top: 1em;
34}
35
36pre, code {
37  line-height: 1.5;
38  font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42  margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46  font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50  border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54  margin-top: 0.5em;
55}
56
57.firstline {
58  margin-left: 2 em;
59}
60
61.method  {
62  margin-top: 1em;
63  border: solid 1px #CCC;
64  padding: 1em;
65  background: #EEE;
66}
67
68.details {
69  font-weight: bold;
70  font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1beta1.html">Container Analysis API</a> . <a href="containeranalysis_v1beta1.projects.html">projects</a> . <a href="containeranalysis_v1beta1.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;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
130        &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
131          &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
132            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
133            &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
134            &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.
135              { # 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).
136                &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;
137                &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.
138              },
139            ],
140          },
141          &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
142            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
143            &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
144            &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
145          },
146        },
147      },
148      &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
149        &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.
150          &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
151            &quot;a_key&quot;: &quot;A String&quot;,
152          },
153          &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
154          &quot;builtArtifacts&quot;: [ # Output of the build.
155            { # Artifact describes a build product.
156              &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
157              &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`.
158              &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.
159                &quot;A String&quot;,
160              ],
161            },
162          ],
163          &quot;commands&quot;: [ # Commands requested by the build.
164            { # Command describes a step performed as part of the build pipeline.
165              &quot;args&quot;: [ # Command-line arguments used when executing this command.
166                &quot;A String&quot;,
167              ],
168              &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
169              &quot;env&quot;: [ # Environment variables set before running this command.
170                &quot;A String&quot;,
171              ],
172              &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
173              &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`.
174              &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
175                &quot;A String&quot;,
176              ],
177            },
178          ],
179          &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
180          &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.
181          &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
182          &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
183          &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
184          &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
185          &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
186            &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.
187              { # 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.
188                &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.
189                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
190                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
191                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
192                  },
193                  &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
194                    &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.
195                      &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
196                      &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
197                    },
198                    &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
199                  },
200                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
201                },
202                &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
203                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
204                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
205                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
206                  },
207                  &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.
208                  &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
209                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
210                },
211                &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).
212                  &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
213                  &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
214                },
215                &quot;labels&quot;: { # Labels with user defined metadata.
216                  &quot;a_key&quot;: &quot;A String&quot;,
217                },
218              },
219            ],
220            &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
221            &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.
222              &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.
223                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
224                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
225                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
226                },
227                &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
228                  &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.
229                    &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
230                    &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
231                  },
232                  &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
233                },
234                &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
235              },
236              &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
237                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
238                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
239                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
240                },
241                &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.
242                &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
243                &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
244              },
245              &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).
246                &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
247                &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
248              },
249              &quot;labels&quot;: { # Labels with user defined metadata.
250                &quot;a_key&quot;: &quot;A String&quot;,
251              },
252            },
253            &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.
254              &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.
255                &quot;fileHash&quot;: [ # Required. Collection of file hashes.
256                  { # Container message for hash values.
257                    &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
258                    &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
259                  },
260                ],
261              },
262            },
263          },
264          &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
265          &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
266        },
267        &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.
268      },
269      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
270      &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
271        &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
272          &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
273          &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
274          &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
275          &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
276          &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
277            &quot;A String&quot;,
278          ],
279          &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
280          &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
281        },
282      },
283      &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
284        &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
285          &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
286          &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
287          &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
288            &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
289            &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
290              &quot;A String&quot;,
291            ],
292            &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.
293          },
294          &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.
295            { # Layer holds metadata specific to a layer of a Docker image.
296              &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
297              &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
298            },
299          ],
300        },
301      },
302      &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
303        &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
304          &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
305          &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.
306            &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
307            &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
308              {
309                &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
310              },
311            ],
312            &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.
313          },
314          &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
315          &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
316        },
317      },
318      &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
319        &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
320          &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
321            { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
322              &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.
323              &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
324              &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
325                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
326                &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.
327                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
328                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
329                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
330              },
331            },
332          ],
333          &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
334        },
335      },
336      &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
337        &quot;signatures&quot;: [
338          { # A signature object consists of the KeyID used and the signature itself.
339            &quot;keyid&quot;: &quot;A String&quot;,
340            &quot;sig&quot;: &quot;A String&quot;,
341          },
342        ],
343        &quot;signed&quot;: { # This corresponds to an in-toto link.
344          &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
345            &quot;customValues&quot;: {
346              &quot;a_key&quot;: &quot;A String&quot;,
347            },
348          },
349          &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
350            &quot;A String&quot;,
351          ],
352          &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
353            &quot;customValues&quot;: {
354              &quot;a_key&quot;: &quot;A String&quot;,
355            },
356          },
357          &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
358            {
359              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
360                &quot;sha256&quot;: &quot;A String&quot;,
361              },
362              &quot;resourceUri&quot;: &quot;A String&quot;,
363            },
364          ],
365          &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
366            {
367              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
368                &quot;sha256&quot;: &quot;A String&quot;,
369              },
370              &quot;resourceUri&quot;: &quot;A String&quot;,
371            },
372          ],
373        },
374      },
375      &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.
376      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
377      &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.
378      &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
379      &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
380        &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
381          &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
382          &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
383        },
384        &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
385        &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
386      },
387      &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
388        &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
389        &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
390        &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
391          &quot;A String&quot;,
392        ],
393        &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
394        &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
395          &quot;A String&quot;,
396        ],
397        &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
398        &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
399        &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
400        &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
401      },
402      &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
403        &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
404          &quot;A String&quot;,
405        ],
406        &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
407        &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
408          &quot;A String&quot;,
409        ],
410        &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
411        &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
412          &quot;A String&quot;,
413        ],
414        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
415        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
416          &quot;comments&quot;: &quot;A String&quot;, # Comments
417          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
418        },
419        &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
420      },
421      &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
422        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
423        &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
424        &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
425        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
426        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
427          &quot;comments&quot;: &quot;A String&quot;, # Comments
428          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
429        },
430        &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
431        &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
432        &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
433        &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
434        &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
435      },
436      &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
437        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
438        &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
439        &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
440        &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
441      },
442      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
443      &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
444        &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.
445        &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
446        &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
447        &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
448          { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
449            &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
450              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
451              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
452              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
453                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
454                &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.
455                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
456                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
457                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
458              },
459            },
460            &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.
461            &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
462              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
463              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
464              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
465                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
466                &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.
467                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
468                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
469                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
470              },
471            },
472            &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
473            &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
474          },
475        ],
476        &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
477          { # Metadata for any related URL information.
478            &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
479            &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
480          },
481        ],
482        &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
483        &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
484        &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
485      },
486    },
487  ],
488}
489
490  x__xgafv: string, V1 error format.
491    Allowed values
492      1 - v1 error format
493      2 - v2 error format
494
495Returns:
496  An object of the form:
497
498    { # Response for creating occurrences in batch.
499  &quot;occurrences&quot;: [ # The occurrences that were created.
500    { # An instance of an analysis type that has been found on a resource.
501      &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
502        &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
503          &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
504            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
505            &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
506            &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.
507              { # 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).
508                &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;
509                &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.
510              },
511            ],
512          },
513          &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
514            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
515            &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
516            &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
517          },
518        },
519      },
520      &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
521        &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.
522          &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
523            &quot;a_key&quot;: &quot;A String&quot;,
524          },
525          &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
526          &quot;builtArtifacts&quot;: [ # Output of the build.
527            { # Artifact describes a build product.
528              &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
529              &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`.
530              &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.
531                &quot;A String&quot;,
532              ],
533            },
534          ],
535          &quot;commands&quot;: [ # Commands requested by the build.
536            { # Command describes a step performed as part of the build pipeline.
537              &quot;args&quot;: [ # Command-line arguments used when executing this command.
538                &quot;A String&quot;,
539              ],
540              &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
541              &quot;env&quot;: [ # Environment variables set before running this command.
542                &quot;A String&quot;,
543              ],
544              &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
545              &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`.
546              &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
547                &quot;A String&quot;,
548              ],
549            },
550          ],
551          &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
552          &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.
553          &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
554          &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
555          &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
556          &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
557          &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
558            &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.
559              { # 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.
560                &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.
561                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
562                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
563                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
564                  },
565                  &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
566                    &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.
567                      &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
568                      &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
569                    },
570                    &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
571                  },
572                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
573                },
574                &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
575                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
576                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
577                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
578                  },
579                  &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.
580                  &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
581                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
582                },
583                &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).
584                  &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
585                  &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
586                },
587                &quot;labels&quot;: { # Labels with user defined metadata.
588                  &quot;a_key&quot;: &quot;A String&quot;,
589                },
590              },
591            ],
592            &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
593            &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.
594              &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.
595                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
596                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
597                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
598                },
599                &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
600                  &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.
601                    &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
602                    &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
603                  },
604                  &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
605                },
606                &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
607              },
608              &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
609                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
610                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
611                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
612                },
613                &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.
614                &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
615                &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
616              },
617              &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).
618                &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
619                &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
620              },
621              &quot;labels&quot;: { # Labels with user defined metadata.
622                &quot;a_key&quot;: &quot;A String&quot;,
623              },
624            },
625            &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.
626              &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.
627                &quot;fileHash&quot;: [ # Required. Collection of file hashes.
628                  { # Container message for hash values.
629                    &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
630                    &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
631                  },
632                ],
633              },
634            },
635          },
636          &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
637          &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
638        },
639        &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.
640      },
641      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
642      &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
643        &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
644          &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
645          &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
646          &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
647          &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
648          &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
649            &quot;A String&quot;,
650          ],
651          &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
652          &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
653        },
654      },
655      &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
656        &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
657          &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
658          &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
659          &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
660            &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
661            &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
662              &quot;A String&quot;,
663            ],
664            &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.
665          },
666          &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.
667            { # Layer holds metadata specific to a layer of a Docker image.
668              &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
669              &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
670            },
671          ],
672        },
673      },
674      &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
675        &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
676          &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
677          &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.
678            &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
679            &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
680              {
681                &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
682              },
683            ],
684            &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.
685          },
686          &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
687          &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
688        },
689      },
690      &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
691        &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
692          &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
693            { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
694              &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.
695              &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
696              &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
697                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
698                &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.
699                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
700                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
701                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
702              },
703            },
704          ],
705          &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
706        },
707      },
708      &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
709        &quot;signatures&quot;: [
710          { # A signature object consists of the KeyID used and the signature itself.
711            &quot;keyid&quot;: &quot;A String&quot;,
712            &quot;sig&quot;: &quot;A String&quot;,
713          },
714        ],
715        &quot;signed&quot;: { # This corresponds to an in-toto link.
716          &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
717            &quot;customValues&quot;: {
718              &quot;a_key&quot;: &quot;A String&quot;,
719            },
720          },
721          &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
722            &quot;A String&quot;,
723          ],
724          &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
725            &quot;customValues&quot;: {
726              &quot;a_key&quot;: &quot;A String&quot;,
727            },
728          },
729          &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
730            {
731              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
732                &quot;sha256&quot;: &quot;A String&quot;,
733              },
734              &quot;resourceUri&quot;: &quot;A String&quot;,
735            },
736          ],
737          &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
738            {
739              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
740                &quot;sha256&quot;: &quot;A String&quot;,
741              },
742              &quot;resourceUri&quot;: &quot;A String&quot;,
743            },
744          ],
745        },
746      },
747      &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.
748      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
749      &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.
750      &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
751      &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
752        &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
753          &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
754          &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
755        },
756        &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
757        &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
758      },
759      &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
760        &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
761        &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
762        &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
763          &quot;A String&quot;,
764        ],
765        &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
766        &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
767          &quot;A String&quot;,
768        ],
769        &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
770        &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
771        &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
772        &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
773      },
774      &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
775        &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
776          &quot;A String&quot;,
777        ],
778        &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
779        &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
780          &quot;A String&quot;,
781        ],
782        &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
783        &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
784          &quot;A String&quot;,
785        ],
786        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
787        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
788          &quot;comments&quot;: &quot;A String&quot;, # Comments
789          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
790        },
791        &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
792      },
793      &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
794        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
795        &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
796        &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
797        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
798        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
799          &quot;comments&quot;: &quot;A String&quot;, # Comments
800          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
801        },
802        &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
803        &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
804        &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
805        &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
806        &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
807      },
808      &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
809        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
810        &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
811        &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
812        &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
813      },
814      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
815      &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
816        &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.
817        &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
818        &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
819        &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
820          { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
821            &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
822              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
823              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
824              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
825                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
826                &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.
827                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
828                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
829                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
830              },
831            },
832            &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.
833            &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
834              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
835              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
836              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
837                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
838                &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.
839                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
840                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
841                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
842              },
843            },
844            &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
845            &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
846          },
847        ],
848        &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
849          { # Metadata for any related URL information.
850            &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
851            &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
852          },
853        ],
854        &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
855        &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
856        &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
857      },
858    },
859  ],
860}</pre>
861</div>
862
863<div class="method">
864    <code class="details" id="close">close()</code>
865  <pre>Close httplib2 connections.</pre>
866</div>
867
868<div class="method">
869    <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
870  <pre>Creates a new occurrence.
871
872Args:
873  parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. (required)
874  body: object, The request body.
875    The object takes the form of:
876
877{ # An instance of an analysis type that has been found on a resource.
878  &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
879    &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
880      &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
881        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
882        &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
883        &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.
884          { # 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).
885            &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;
886            &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.
887          },
888        ],
889      },
890      &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
891        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
892        &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
893        &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
894      },
895    },
896  },
897  &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
898    &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.
899      &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
900        &quot;a_key&quot;: &quot;A String&quot;,
901      },
902      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
903      &quot;builtArtifacts&quot;: [ # Output of the build.
904        { # Artifact describes a build product.
905          &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
906          &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`.
907          &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.
908            &quot;A String&quot;,
909          ],
910        },
911      ],
912      &quot;commands&quot;: [ # Commands requested by the build.
913        { # Command describes a step performed as part of the build pipeline.
914          &quot;args&quot;: [ # Command-line arguments used when executing this command.
915            &quot;A String&quot;,
916          ],
917          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
918          &quot;env&quot;: [ # Environment variables set before running this command.
919            &quot;A String&quot;,
920          ],
921          &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
922          &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`.
923          &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
924            &quot;A String&quot;,
925          ],
926        },
927      ],
928      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
929      &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.
930      &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
931      &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
932      &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
933      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
934      &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
935        &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.
936          { # 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.
937            &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.
938              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
939                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
940                &quot;name&quot;: &quot;A String&quot;, # The alias name.
941              },
942              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
943                &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.
944                  &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
945                  &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
946                },
947                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
948              },
949              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
950            },
951            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
952              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
953                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
954                &quot;name&quot;: &quot;A String&quot;, # The alias name.
955              },
956              &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.
957              &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
958              &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
959            },
960            &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).
961              &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
962              &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
963            },
964            &quot;labels&quot;: { # Labels with user defined metadata.
965              &quot;a_key&quot;: &quot;A String&quot;,
966            },
967          },
968        ],
969        &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
970        &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.
971          &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.
972            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
973              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
974              &quot;name&quot;: &quot;A String&quot;, # The alias name.
975            },
976            &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
977              &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.
978                &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
979                &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
980              },
981              &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
982            },
983            &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
984          },
985          &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
986            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
987              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
988              &quot;name&quot;: &quot;A String&quot;, # The alias name.
989            },
990            &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.
991            &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
992            &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
993          },
994          &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).
995            &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
996            &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
997          },
998          &quot;labels&quot;: { # Labels with user defined metadata.
999            &quot;a_key&quot;: &quot;A String&quot;,
1000          },
1001        },
1002        &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.
1003          &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.
1004            &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1005              { # Container message for hash values.
1006                &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1007                &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1008              },
1009            ],
1010          },
1011        },
1012      },
1013      &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1014      &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1015    },
1016    &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.
1017  },
1018  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1019  &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1020    &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1021      &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1022      &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1023      &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1024      &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1025      &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1026        &quot;A String&quot;,
1027      ],
1028      &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1029      &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1030    },
1031  },
1032  &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1033    &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
1034      &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1035      &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1036      &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1037        &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1038        &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1039          &quot;A String&quot;,
1040        ],
1041        &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.
1042      },
1043      &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.
1044        { # Layer holds metadata specific to a layer of a Docker image.
1045          &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1046          &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1047        },
1048      ],
1049    },
1050  },
1051  &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1052    &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1053      &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1054      &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.
1055        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1056        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1057          {
1058            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1059          },
1060        ],
1061        &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.
1062      },
1063      &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1064      &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1065    },
1066  },
1067  &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1068    &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1069      &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1070        { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1071          &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.
1072          &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1073          &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1074            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1075            &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.
1076            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1077            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1078            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1079          },
1080        },
1081      ],
1082      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1083    },
1084  },
1085  &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
1086    &quot;signatures&quot;: [
1087      { # A signature object consists of the KeyID used and the signature itself.
1088        &quot;keyid&quot;: &quot;A String&quot;,
1089        &quot;sig&quot;: &quot;A String&quot;,
1090      },
1091    ],
1092    &quot;signed&quot;: { # This corresponds to an in-toto link.
1093      &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
1094        &quot;customValues&quot;: {
1095          &quot;a_key&quot;: &quot;A String&quot;,
1096        },
1097      },
1098      &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1099        &quot;A String&quot;,
1100      ],
1101      &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
1102        &quot;customValues&quot;: {
1103          &quot;a_key&quot;: &quot;A String&quot;,
1104        },
1105      },
1106      &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1107        {
1108          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1109            &quot;sha256&quot;: &quot;A String&quot;,
1110          },
1111          &quot;resourceUri&quot;: &quot;A String&quot;,
1112        },
1113      ],
1114      &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1115        {
1116          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1117            &quot;sha256&quot;: &quot;A String&quot;,
1118          },
1119          &quot;resourceUri&quot;: &quot;A String&quot;,
1120        },
1121      ],
1122    },
1123  },
1124  &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.
1125  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1126  &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.
1127  &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1128  &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1129    &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1130      &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1131      &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1132    },
1133    &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
1134    &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
1135  },
1136  &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1137    &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1138    &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1139    &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1140      &quot;A String&quot;,
1141    ],
1142    &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1143    &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1144      &quot;A String&quot;,
1145    ],
1146    &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1147    &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1148    &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1149    &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1150  },
1151  &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1152    &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1153      &quot;A String&quot;,
1154    ],
1155    &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1156    &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1157      &quot;A String&quot;,
1158    ],
1159    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1160    &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1161      &quot;A String&quot;,
1162    ],
1163    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1164    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1165      &quot;comments&quot;: &quot;A String&quot;, # Comments
1166      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1167    },
1168    &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1169  },
1170  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1171    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1172    &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1173    &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
1174    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1175    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1176      &quot;comments&quot;: &quot;A String&quot;, # Comments
1177      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1178    },
1179    &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
1180    &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1181    &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1182    &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1183    &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
1184  },
1185  &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
1186    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1187    &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1188    &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1189    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
1190  },
1191  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1192  &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1193    &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.
1194    &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
1195    &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1196    &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1197      { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1198        &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1199          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1200          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1201          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1202            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1203            &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.
1204            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1205            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1206            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1207          },
1208        },
1209        &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.
1210        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1211          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1212          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1213          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1214            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1215            &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.
1216            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1217            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1218            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1219          },
1220        },
1221        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1222        &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1223      },
1224    ],
1225    &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1226      { # Metadata for any related URL information.
1227        &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1228        &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1229      },
1230    ],
1231    &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1232    &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1233    &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1234  },
1235}
1236
1237  x__xgafv: string, V1 error format.
1238    Allowed values
1239      1 - v1 error format
1240      2 - v2 error format
1241
1242Returns:
1243  An object of the form:
1244
1245    { # An instance of an analysis type that has been found on a resource.
1246  &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1247    &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
1248      &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
1249        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1250        &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
1251        &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.
1252          { # 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).
1253            &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;
1254            &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.
1255          },
1256        ],
1257      },
1258      &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
1259        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1260        &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1261        &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1262      },
1263    },
1264  },
1265  &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1266    &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.
1267      &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1268        &quot;a_key&quot;: &quot;A String&quot;,
1269      },
1270      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1271      &quot;builtArtifacts&quot;: [ # Output of the build.
1272        { # Artifact describes a build product.
1273          &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1274          &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`.
1275          &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.
1276            &quot;A String&quot;,
1277          ],
1278        },
1279      ],
1280      &quot;commands&quot;: [ # Commands requested by the build.
1281        { # Command describes a step performed as part of the build pipeline.
1282          &quot;args&quot;: [ # Command-line arguments used when executing this command.
1283            &quot;A String&quot;,
1284          ],
1285          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1286          &quot;env&quot;: [ # Environment variables set before running this command.
1287            &quot;A String&quot;,
1288          ],
1289          &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1290          &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`.
1291          &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1292            &quot;A String&quot;,
1293          ],
1294        },
1295      ],
1296      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1297      &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.
1298      &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1299      &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1300      &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1301      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1302      &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1303        &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.
1304          { # 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.
1305            &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.
1306              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1307                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1308                &quot;name&quot;: &quot;A String&quot;, # The alias name.
1309              },
1310              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1311                &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.
1312                  &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1313                  &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1314                },
1315                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1316              },
1317              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1318            },
1319            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1320              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1321                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1322                &quot;name&quot;: &quot;A String&quot;, # The alias name.
1323              },
1324              &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.
1325              &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1326              &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1327            },
1328            &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).
1329              &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1330              &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1331            },
1332            &quot;labels&quot;: { # Labels with user defined metadata.
1333              &quot;a_key&quot;: &quot;A String&quot;,
1334            },
1335          },
1336        ],
1337        &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1338        &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.
1339          &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.
1340            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1341              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1342              &quot;name&quot;: &quot;A String&quot;, # The alias name.
1343            },
1344            &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1345              &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.
1346                &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1347                &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1348              },
1349              &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1350            },
1351            &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1352          },
1353          &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1354            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1355              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1356              &quot;name&quot;: &quot;A String&quot;, # The alias name.
1357            },
1358            &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.
1359            &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1360            &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1361          },
1362          &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).
1363            &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1364            &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1365          },
1366          &quot;labels&quot;: { # Labels with user defined metadata.
1367            &quot;a_key&quot;: &quot;A String&quot;,
1368          },
1369        },
1370        &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.
1371          &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.
1372            &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1373              { # Container message for hash values.
1374                &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1375                &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1376              },
1377            ],
1378          },
1379        },
1380      },
1381      &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1382      &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1383    },
1384    &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.
1385  },
1386  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1387  &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1388    &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1389      &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1390      &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1391      &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1392      &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1393      &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1394        &quot;A String&quot;,
1395      ],
1396      &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1397      &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1398    },
1399  },
1400  &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1401    &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
1402      &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1403      &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1404      &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1405        &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1406        &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1407          &quot;A String&quot;,
1408        ],
1409        &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.
1410      },
1411      &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.
1412        { # Layer holds metadata specific to a layer of a Docker image.
1413          &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1414          &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1415        },
1416      ],
1417    },
1418  },
1419  &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1420    &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1421      &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1422      &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.
1423        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1424        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1425          {
1426            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1427          },
1428        ],
1429        &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.
1430      },
1431      &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1432      &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1433    },
1434  },
1435  &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1436    &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1437      &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1438        { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1439          &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.
1440          &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1441          &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1442            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1443            &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.
1444            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1445            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1446            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1447          },
1448        },
1449      ],
1450      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1451    },
1452  },
1453  &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
1454    &quot;signatures&quot;: [
1455      { # A signature object consists of the KeyID used and the signature itself.
1456        &quot;keyid&quot;: &quot;A String&quot;,
1457        &quot;sig&quot;: &quot;A String&quot;,
1458      },
1459    ],
1460    &quot;signed&quot;: { # This corresponds to an in-toto link.
1461      &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
1462        &quot;customValues&quot;: {
1463          &quot;a_key&quot;: &quot;A String&quot;,
1464        },
1465      },
1466      &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1467        &quot;A String&quot;,
1468      ],
1469      &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
1470        &quot;customValues&quot;: {
1471          &quot;a_key&quot;: &quot;A String&quot;,
1472        },
1473      },
1474      &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1475        {
1476          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1477            &quot;sha256&quot;: &quot;A String&quot;,
1478          },
1479          &quot;resourceUri&quot;: &quot;A String&quot;,
1480        },
1481      ],
1482      &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1483        {
1484          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1485            &quot;sha256&quot;: &quot;A String&quot;,
1486          },
1487          &quot;resourceUri&quot;: &quot;A String&quot;,
1488        },
1489      ],
1490    },
1491  },
1492  &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.
1493  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1494  &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.
1495  &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1496  &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1497    &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1498      &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1499      &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1500    },
1501    &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
1502    &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
1503  },
1504  &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1505    &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1506    &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1507    &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1508      &quot;A String&quot;,
1509    ],
1510    &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1511    &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1512      &quot;A String&quot;,
1513    ],
1514    &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1515    &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1516    &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1517    &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1518  },
1519  &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1520    &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1521      &quot;A String&quot;,
1522    ],
1523    &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1524    &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1525      &quot;A String&quot;,
1526    ],
1527    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1528    &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1529      &quot;A String&quot;,
1530    ],
1531    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1532    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1533      &quot;comments&quot;: &quot;A String&quot;, # Comments
1534      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1535    },
1536    &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1537  },
1538  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1539    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1540    &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1541    &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
1542    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1543    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1544      &quot;comments&quot;: &quot;A String&quot;, # Comments
1545      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1546    },
1547    &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
1548    &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1549    &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1550    &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1551    &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
1552  },
1553  &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
1554    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1555    &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1556    &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1557    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
1558  },
1559  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1560  &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1561    &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.
1562    &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
1563    &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1564    &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1565      { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1566        &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1567          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1568          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1569          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1570            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1571            &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.
1572            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1573            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1574            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1575          },
1576        },
1577        &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.
1578        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1579          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1580          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1581          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1582            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1583            &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.
1584            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1585            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1586            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1587          },
1588        },
1589        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1590        &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1591      },
1592    ],
1593    &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1594      { # Metadata for any related URL information.
1595        &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1596        &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1597      },
1598    ],
1599    &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1600    &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1601    &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1602  },
1603}</pre>
1604</div>
1605
1606<div class="method">
1607    <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1608  <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.
1609
1610Args:
1611  name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
1612  x__xgafv: string, V1 error format.
1613    Allowed values
1614      1 - v1 error format
1615      2 - v2 error format
1616
1617Returns:
1618  An object of the form:
1619
1620    { # 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 `{}`.
1621}</pre>
1622</div>
1623
1624<div class="method">
1625    <code class="details" id="get">get(name, x__xgafv=None)</code>
1626  <pre>Gets the specified occurrence.
1627
1628Args:
1629  name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
1630  x__xgafv: string, V1 error format.
1631    Allowed values
1632      1 - v1 error format
1633      2 - v2 error format
1634
1635Returns:
1636  An object of the form:
1637
1638    { # An instance of an analysis type that has been found on a resource.
1639  &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1640    &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
1641      &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
1642        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1643        &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
1644        &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.
1645          { # 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).
1646            &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;
1647            &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.
1648          },
1649        ],
1650      },
1651      &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
1652        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1653        &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1654        &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1655      },
1656    },
1657  },
1658  &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1659    &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.
1660      &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1661        &quot;a_key&quot;: &quot;A String&quot;,
1662      },
1663      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1664      &quot;builtArtifacts&quot;: [ # Output of the build.
1665        { # Artifact describes a build product.
1666          &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1667          &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`.
1668          &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.
1669            &quot;A String&quot;,
1670          ],
1671        },
1672      ],
1673      &quot;commands&quot;: [ # Commands requested by the build.
1674        { # Command describes a step performed as part of the build pipeline.
1675          &quot;args&quot;: [ # Command-line arguments used when executing this command.
1676            &quot;A String&quot;,
1677          ],
1678          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1679          &quot;env&quot;: [ # Environment variables set before running this command.
1680            &quot;A String&quot;,
1681          ],
1682          &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1683          &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`.
1684          &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1685            &quot;A String&quot;,
1686          ],
1687        },
1688      ],
1689      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1690      &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.
1691      &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1692      &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1693      &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1694      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1695      &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1696        &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.
1697          { # 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.
1698            &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.
1699              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1700                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1701                &quot;name&quot;: &quot;A String&quot;, # The alias name.
1702              },
1703              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1704                &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.
1705                  &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1706                  &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1707                },
1708                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1709              },
1710              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1711            },
1712            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1713              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1714                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1715                &quot;name&quot;: &quot;A String&quot;, # The alias name.
1716              },
1717              &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.
1718              &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1719              &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1720            },
1721            &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).
1722              &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1723              &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1724            },
1725            &quot;labels&quot;: { # Labels with user defined metadata.
1726              &quot;a_key&quot;: &quot;A String&quot;,
1727            },
1728          },
1729        ],
1730        &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1731        &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.
1732          &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.
1733            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1734              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1735              &quot;name&quot;: &quot;A String&quot;, # The alias name.
1736            },
1737            &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1738              &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.
1739                &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1740                &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1741              },
1742              &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1743            },
1744            &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1745          },
1746          &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1747            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1748              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1749              &quot;name&quot;: &quot;A String&quot;, # The alias name.
1750            },
1751            &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.
1752            &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1753            &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1754          },
1755          &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).
1756            &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1757            &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1758          },
1759          &quot;labels&quot;: { # Labels with user defined metadata.
1760            &quot;a_key&quot;: &quot;A String&quot;,
1761          },
1762        },
1763        &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.
1764          &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.
1765            &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1766              { # Container message for hash values.
1767                &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1768                &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1769              },
1770            ],
1771          },
1772        },
1773      },
1774      &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1775      &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1776    },
1777    &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.
1778  },
1779  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1780  &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1781    &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1782      &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1783      &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1784      &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1785      &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1786      &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1787        &quot;A String&quot;,
1788      ],
1789      &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1790      &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1791    },
1792  },
1793  &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1794    &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
1795      &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1796      &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1797      &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1798        &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1799        &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1800          &quot;A String&quot;,
1801        ],
1802        &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.
1803      },
1804      &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.
1805        { # Layer holds metadata specific to a layer of a Docker image.
1806          &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1807          &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1808        },
1809      ],
1810    },
1811  },
1812  &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1813    &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1814      &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1815      &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.
1816        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1817        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1818          {
1819            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1820          },
1821        ],
1822        &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.
1823      },
1824      &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1825      &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1826    },
1827  },
1828  &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1829    &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1830      &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1831        { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1832          &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.
1833          &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1834          &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1835            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1836            &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.
1837            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1838            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1839            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1840          },
1841        },
1842      ],
1843      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1844    },
1845  },
1846  &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
1847    &quot;signatures&quot;: [
1848      { # A signature object consists of the KeyID used and the signature itself.
1849        &quot;keyid&quot;: &quot;A String&quot;,
1850        &quot;sig&quot;: &quot;A String&quot;,
1851      },
1852    ],
1853    &quot;signed&quot;: { # This corresponds to an in-toto link.
1854      &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
1855        &quot;customValues&quot;: {
1856          &quot;a_key&quot;: &quot;A String&quot;,
1857        },
1858      },
1859      &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1860        &quot;A String&quot;,
1861      ],
1862      &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
1863        &quot;customValues&quot;: {
1864          &quot;a_key&quot;: &quot;A String&quot;,
1865        },
1866      },
1867      &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1868        {
1869          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1870            &quot;sha256&quot;: &quot;A String&quot;,
1871          },
1872          &quot;resourceUri&quot;: &quot;A String&quot;,
1873        },
1874      ],
1875      &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1876        {
1877          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1878            &quot;sha256&quot;: &quot;A String&quot;,
1879          },
1880          &quot;resourceUri&quot;: &quot;A String&quot;,
1881        },
1882      ],
1883    },
1884  },
1885  &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.
1886  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1887  &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.
1888  &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1889  &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1890    &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1891      &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1892      &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1893    },
1894    &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
1895    &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
1896  },
1897  &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1898    &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1899    &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1900    &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1901      &quot;A String&quot;,
1902    ],
1903    &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1904    &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1905      &quot;A String&quot;,
1906    ],
1907    &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1908    &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1909    &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1910    &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1911  },
1912  &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1913    &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1914      &quot;A String&quot;,
1915    ],
1916    &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1917    &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1918      &quot;A String&quot;,
1919    ],
1920    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1921    &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1922      &quot;A String&quot;,
1923    ],
1924    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1925    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1926      &quot;comments&quot;: &quot;A String&quot;, # Comments
1927      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1928    },
1929    &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1930  },
1931  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1932    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1933    &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1934    &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
1935    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1936    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1937      &quot;comments&quot;: &quot;A String&quot;, # Comments
1938      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1939    },
1940    &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
1941    &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1942    &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1943    &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1944    &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
1945  },
1946  &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
1947    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1948    &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1949    &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1950    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
1951  },
1952  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1953  &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1954    &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.
1955    &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
1956    &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1957    &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1958      { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1959        &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1960          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1961          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1962          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1963            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1964            &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.
1965            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1966            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1967            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1968          },
1969        },
1970        &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.
1971        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1972          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1973          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1974          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1975            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1976            &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.
1977            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1978            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1979            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1980          },
1981        },
1982        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
1983        &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1984      },
1985    ],
1986    &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1987      { # Metadata for any related URL information.
1988        &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1989        &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1990      },
1991    ],
1992    &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1993    &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1994    &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1995  },
1996}</pre>
1997</div>
1998
1999<div class="method">
2000    <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
2001  <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.
2002
2003Args:
2004  resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
2005  body: object, The request body.
2006    The object takes the form of:
2007
2008{ # Request message for `GetIamPolicy` method.
2009  &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
2010    &quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2011  },
2012}
2013
2014  x__xgafv: string, V1 error format.
2015    Allowed values
2016      1 - v1 error format
2017      2 - v2 error format
2018
2019Returns:
2020  An object of the form:
2021
2022    { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
2023  &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
2024    { # Associates `members`, or principals, with a `role`.
2025      &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).
2026        &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.
2027        &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2028        &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.
2029        &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.
2030      },
2031      &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
2032        &quot;A String&quot;,
2033      ],
2034      &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`.
2035    },
2036  ],
2037  &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.
2038  &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).
2039}</pre>
2040</div>
2041
2042<div class="method">
2043    <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
2044  <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.
2045
2046Args:
2047  name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
2048  x__xgafv: string, V1 error format.
2049    Allowed values
2050      1 - v1 error format
2051      2 - v2 error format
2052
2053Returns:
2054  An object of the form:
2055
2056    { # A type of analysis that can be done for a resource.
2057  &quot;attestationAuthority&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.
2058    &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.
2059      &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
2060    },
2061  },
2062  &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
2063    &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2064      &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2065      &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2066        &quot;A String&quot;,
2067      ],
2068      &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.
2069    },
2070    &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
2071  },
2072  &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.
2073    &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2074    &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
2075      &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
2076      &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
2077      &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
2078      &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
2079    },
2080  },
2081  &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.
2082  &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2083    &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2084      &quot;A String&quot;,
2085    ],
2086  },
2087  &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.
2088    &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
2089  },
2090  &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2091  &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
2092    &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2093      &quot;A String&quot;,
2094    ],
2095    &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
2096      { # Defines an object to declare an in-toto artifact rule
2097        &quot;artifactRule&quot;: [
2098          &quot;A String&quot;,
2099        ],
2100      },
2101    ],
2102    &quot;expectedProducts&quot;: [
2103      { # Defines an object to declare an in-toto artifact rule
2104        &quot;artifactRule&quot;: [
2105          &quot;A String&quot;,
2106        ],
2107      },
2108    ],
2109    &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
2110      { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
2111        &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2112        &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
2113        &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
2114        &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
2115      },
2116    ],
2117    &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2118    &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
2119  },
2120  &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
2121  &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2122  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2123  &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.
2124    &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2125      { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
2126        &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
2127        &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.
2128        &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2129        &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2130          &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2131          &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.
2132          &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2133          &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2134          &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2135        },
2136        &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2137        &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2138      },
2139    ],
2140    &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2141  },
2142  &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2143    &quot;A String&quot;,
2144  ],
2145  &quot;relatedUrl&quot;: [ # URLs associated with this note.
2146    { # Metadata for any related URL information.
2147      &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2148      &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2149    },
2150  ],
2151  &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
2152    &quot;dataLicence&quot;: &quot;A String&quot;, # Compliance with the SPDX specification includes populating the SPDX fields therein with data related to such fields (&quot;SPDX-Metadata&quot;)
2153    &quot;spdxVersion&quot;: &quot;A String&quot;, # Provide a reference number that can be used to understand how to parse and interpret the rest of the file
2154  },
2155  &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
2156  &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
2157    &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
2158      &quot;A String&quot;,
2159    ],
2160    &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
2161    &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
2162  },
2163  &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
2164    &quot;analyzed&quot;: True or False, # Indicates whether the file content of this package has been available for or subjected to analysis when creating the SPDX document
2165    &quot;attribution&quot;: &quot;A String&quot;, # A place for the SPDX data creator to record, at the package level, acknowledgements that may be needed to be communicated in some contexts
2166    &quot;checksum&quot;: &quot;A String&quot;, # Provide an independently reproducible mechanism that permits unique identification of a specific package that correlates to the data in this SPDX file
2167    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
2168    &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
2169    &quot;downloadLocation&quot;: &quot;A String&quot;, # This section identifies the download Universal Resource Locator (URL), or a specific location within a version control system (VCS) for the package at the time that the SPDX file was created
2170    &quot;externalRefs&quot;: [ # ExternalRef
2171      { # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
2172        &quot;category&quot;: &quot;A String&quot;, # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
2173        &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
2174        &quot;locator&quot;: &quot;A String&quot;, # The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location
2175        &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
2176      },
2177    ],
2178    &quot;filesLicenseInfo&quot;: [ # Contain the license the SPDX file creator has concluded as governing the This field is to contain a list of all licenses found in the package. The relationship between licenses (i.e., conjunctive, disjunctive) is not specified in this field – it is simply a listing of all licenses found
2179      &quot;A String&quot;,
2180    ],
2181    &quot;homePage&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
2182    &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
2183      &quot;comments&quot;: &quot;A String&quot;, # Comments
2184      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2185    },
2186    &quot;originator&quot;: &quot;A String&quot;, # If the package identified in the SPDX file originated from a different person or organization than identified as Package Supplier, this field identifies from where or whom the package originally came
2187    &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
2188    &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
2189    &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
2190    &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
2191    &quot;verificationCode&quot;: &quot;A String&quot;, # This field provides an independently reproducible mechanism identifying specific contents of a package based on the actual files (except the SPDX file itself, if it is included in the package) that make up each package and that correlates to the data in this SPDX file
2192    &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
2193  },
2194  &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
2195    &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2196  },
2197  &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.
2198  &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
2199    &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
2200    &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.
2201      &quot;attackComplexity&quot;: &quot;A String&quot;,
2202      &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.
2203      &quot;availabilityImpact&quot;: &quot;A String&quot;,
2204      &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2205      &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2206      &quot;exploitabilityScore&quot;: 3.14,
2207      &quot;impactScore&quot;: 3.14,
2208      &quot;integrityImpact&quot;: &quot;A String&quot;,
2209      &quot;privilegesRequired&quot;: &quot;A String&quot;,
2210      &quot;scope&quot;: &quot;A String&quot;,
2211      &quot;userInteraction&quot;: &quot;A String&quot;,
2212    },
2213    &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
2214      { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
2215        &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
2216        &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2217        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2218          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
2219          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2220          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2221            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2222            &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.
2223            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2224            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2225            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2226          },
2227        },
2228        &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
2229        &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
2230          &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2231          &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.
2232          &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2233          &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2234          &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2235        },
2236        &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
2237          &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2238          &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.
2239          &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2240          &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2241          &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2242        },
2243        &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2244        &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
2245        &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2246        &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
2247        &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.
2248        &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
2249      },
2250    ],
2251    &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
2252    &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.
2253    &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.
2254      {
2255        &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
2256        &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2257        &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 kb&#x27;s presence is considered a fix.
2258          {
2259            &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
2260            &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
2261          },
2262        ],
2263        &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2264      },
2265    ],
2266  },
2267}</pre>
2268</div>
2269
2270<div class="method">
2271    <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
2272  <pre>Gets a summary of the number and severity of occurrences.
2273
2274Args:
2275  parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required)
2276  filter: string, The filter expression.
2277  x__xgafv: string, V1 error format.
2278    Allowed values
2279      1 - v1 error format
2280      2 - v2 error format
2281
2282Returns:
2283  An object of the form:
2284
2285    { # A summary of how many vulnerability occurrences there are per resource and severity type.
2286  &quot;counts&quot;: [ # A listing by resource of the number of fixable and total vulnerabilities.
2287    { # Per resource and severity counts of fixable and total vulnerabilities.
2288      &quot;fixableCount&quot;: &quot;A String&quot;, # The number of fixable vulnerabilities associated with this resource.
2289      &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # The affected resource.
2290        &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2291          &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2292          &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2293        },
2294        &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2295        &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2296      },
2297      &quot;severity&quot;: &quot;A String&quot;, # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.
2298      &quot;totalCount&quot;: &quot;A String&quot;, # The total number of vulnerabilities associated with this resource.
2299    },
2300  ],
2301}</pre>
2302</div>
2303
2304<div class="method">
2305    <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
2306  <pre>Lists occurrences for the specified project.
2307
2308Args:
2309  parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required)
2310  filter: string, The filter expression.
2311  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.
2312  pageToken: string, Token to provide to skip to a particular spot in the list.
2313  x__xgafv: string, V1 error format.
2314    Allowed values
2315      1 - v1 error format
2316      2 - v2 error format
2317
2318Returns:
2319  An object of the form:
2320
2321    { # Response for listing occurrences.
2322  &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.
2323  &quot;occurrences&quot;: [ # The occurrences requested.
2324    { # An instance of an analysis type that has been found on a resource.
2325      &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2326        &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
2327          &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
2328            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2329            &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
2330            &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.
2331              { # 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).
2332                &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;
2333                &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.
2334              },
2335            ],
2336          },
2337          &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
2338            &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2339            &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2340            &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
2341          },
2342        },
2343      },
2344      &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2345        &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.
2346          &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2347            &quot;a_key&quot;: &quot;A String&quot;,
2348          },
2349          &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2350          &quot;builtArtifacts&quot;: [ # Output of the build.
2351            { # Artifact describes a build product.
2352              &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2353              &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`.
2354              &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.
2355                &quot;A String&quot;,
2356              ],
2357            },
2358          ],
2359          &quot;commands&quot;: [ # Commands requested by the build.
2360            { # Command describes a step performed as part of the build pipeline.
2361              &quot;args&quot;: [ # Command-line arguments used when executing this command.
2362                &quot;A String&quot;,
2363              ],
2364              &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2365              &quot;env&quot;: [ # Environment variables set before running this command.
2366                &quot;A String&quot;,
2367              ],
2368              &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2369              &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`.
2370              &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2371                &quot;A String&quot;,
2372              ],
2373            },
2374          ],
2375          &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2376          &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.
2377          &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2378          &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2379          &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
2380          &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2381          &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2382            &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.
2383              { # 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.
2384                &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.
2385                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2386                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2387                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
2388                  },
2389                  &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2390                    &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.
2391                      &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2392                      &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2393                    },
2394                    &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2395                  },
2396                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2397                },
2398                &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2399                  &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2400                    &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2401                    &quot;name&quot;: &quot;A String&quot;, # The alias name.
2402                  },
2403                  &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.
2404                  &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2405                  &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2406                },
2407                &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).
2408                  &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2409                  &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2410                },
2411                &quot;labels&quot;: { # Labels with user defined metadata.
2412                  &quot;a_key&quot;: &quot;A String&quot;,
2413                },
2414              },
2415            ],
2416            &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2417            &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.
2418              &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.
2419                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2420                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2421                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
2422                },
2423                &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2424                  &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.
2425                    &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2426                    &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2427                  },
2428                  &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2429                },
2430                &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2431              },
2432              &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2433                &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2434                  &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2435                  &quot;name&quot;: &quot;A String&quot;, # The alias name.
2436                },
2437                &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.
2438                &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2439                &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2440              },
2441              &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).
2442                &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2443                &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2444              },
2445              &quot;labels&quot;: { # Labels with user defined metadata.
2446                &quot;a_key&quot;: &quot;A String&quot;,
2447              },
2448            },
2449            &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.
2450              &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.
2451                &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2452                  { # Container message for hash values.
2453                    &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2454                    &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2455                  },
2456                ],
2457              },
2458            },
2459          },
2460          &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2461          &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2462        },
2463        &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.
2464      },
2465      &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
2466      &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2467        &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2468          &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2469          &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2470          &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2471          &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2472          &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2473            &quot;A String&quot;,
2474          ],
2475          &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2476          &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2477        },
2478      },
2479      &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2480        &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
2481          &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2482          &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2483          &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2484            &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2485            &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2486              &quot;A String&quot;,
2487            ],
2488            &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.
2489          },
2490          &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.
2491            { # Layer holds metadata specific to a layer of a Docker image.
2492              &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2493              &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2494            },
2495          ],
2496        },
2497      },
2498      &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2499        &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
2500          &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2501          &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.
2502            &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2503            &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2504              {
2505                &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2506              },
2507            ],
2508            &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.
2509          },
2510          &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2511          &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
2512        },
2513      },
2514      &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2515        &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2516          &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2517            { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2518              &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.
2519              &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2520              &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2521                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2522                &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.
2523                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2524                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2525                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2526              },
2527            },
2528          ],
2529          &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2530        },
2531      },
2532      &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
2533        &quot;signatures&quot;: [
2534          { # A signature object consists of the KeyID used and the signature itself.
2535            &quot;keyid&quot;: &quot;A String&quot;,
2536            &quot;sig&quot;: &quot;A String&quot;,
2537          },
2538        ],
2539        &quot;signed&quot;: { # This corresponds to an in-toto link.
2540          &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
2541            &quot;customValues&quot;: {
2542              &quot;a_key&quot;: &quot;A String&quot;,
2543            },
2544          },
2545          &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
2546            &quot;A String&quot;,
2547          ],
2548          &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
2549            &quot;customValues&quot;: {
2550              &quot;a_key&quot;: &quot;A String&quot;,
2551            },
2552          },
2553          &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
2554            {
2555              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2556                &quot;sha256&quot;: &quot;A String&quot;,
2557              },
2558              &quot;resourceUri&quot;: &quot;A String&quot;,
2559            },
2560          ],
2561          &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2562            {
2563              &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2564                &quot;sha256&quot;: &quot;A String&quot;,
2565              },
2566              &quot;resourceUri&quot;: &quot;A String&quot;,
2567            },
2568          ],
2569        },
2570      },
2571      &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.
2572      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
2573      &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.
2574      &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2575      &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2576        &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2577          &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2578          &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2579        },
2580        &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2581        &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2582      },
2583      &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2584        &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2585        &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2586        &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2587          &quot;A String&quot;,
2588        ],
2589        &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2590        &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2591          &quot;A String&quot;,
2592        ],
2593        &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2594        &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2595        &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2596        &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2597      },
2598      &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2599        &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2600          &quot;A String&quot;,
2601        ],
2602        &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2603        &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2604          &quot;A String&quot;,
2605        ],
2606        &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2607        &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2608          &quot;A String&quot;,
2609        ],
2610        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2611        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2612          &quot;comments&quot;: &quot;A String&quot;, # Comments
2613          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2614        },
2615        &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
2616      },
2617      &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2618        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2619        &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
2620        &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
2621        &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2622        &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
2623          &quot;comments&quot;: &quot;A String&quot;, # Comments
2624          &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2625        },
2626        &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
2627        &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
2628        &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
2629        &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
2630        &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
2631      },
2632      &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
2633        &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2634        &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2635        &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
2636        &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
2637      },
2638      &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2639      &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
2640        &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.
2641        &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
2642        &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2643        &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2644          { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2645            &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
2646              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
2647              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2648              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2649                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2650                &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.
2651                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2652                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2653                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2654              },
2655            },
2656            &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.
2657            &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
2658              &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
2659              &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2660              &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2661                &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2662                &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.
2663                &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2664                &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2665                &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2666              },
2667            },
2668            &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
2669            &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
2670          },
2671        ],
2672        &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2673          { # Metadata for any related URL information.
2674            &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2675            &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2676          },
2677        ],
2678        &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2679        &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2680        &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2681      },
2682    },
2683  ],
2684}</pre>
2685</div>
2686
2687<div class="method">
2688    <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2689  <pre>Retrieves the next page of results.
2690
2691Args:
2692  previous_request: The request for the previous page. (required)
2693  previous_response: The response from the request for the previous page. (required)
2694
2695Returns:
2696  A request object that you can call &#x27;execute()&#x27; on to request the next
2697  page. Returns None if there are no more items in the collection.
2698    </pre>
2699</div>
2700
2701<div class="method">
2702    <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
2703  <pre>Updates the specified occurrence.
2704
2705Args:
2706  name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
2707  body: object, The request body.
2708    The object takes the form of:
2709
2710{ # An instance of an analysis type that has been found on a resource.
2711  &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2712    &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
2713      &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
2714        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2715        &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
2716        &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.
2717          { # 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).
2718            &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;
2719            &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.
2720          },
2721        ],
2722      },
2723      &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
2724        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
2725        &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2726        &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
2727      },
2728    },
2729  },
2730  &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2731    &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.
2732      &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2733        &quot;a_key&quot;: &quot;A String&quot;,
2734      },
2735      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2736      &quot;builtArtifacts&quot;: [ # Output of the build.
2737        { # Artifact describes a build product.
2738          &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2739          &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`.
2740          &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.
2741            &quot;A String&quot;,
2742          ],
2743        },
2744      ],
2745      &quot;commands&quot;: [ # Commands requested by the build.
2746        { # Command describes a step performed as part of the build pipeline.
2747          &quot;args&quot;: [ # Command-line arguments used when executing this command.
2748            &quot;A String&quot;,
2749          ],
2750          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2751          &quot;env&quot;: [ # Environment variables set before running this command.
2752            &quot;A String&quot;,
2753          ],
2754          &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2755          &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`.
2756          &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2757            &quot;A String&quot;,
2758          ],
2759        },
2760      ],
2761      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2762      &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.
2763      &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2764      &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2765      &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
2766      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2767      &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2768        &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.
2769          { # 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.
2770            &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.
2771              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2772                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2773                &quot;name&quot;: &quot;A String&quot;, # The alias name.
2774              },
2775              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2776                &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.
2777                  &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2778                  &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2779                },
2780                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2781              },
2782              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2783            },
2784            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2785              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2786                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2787                &quot;name&quot;: &quot;A String&quot;, # The alias name.
2788              },
2789              &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.
2790              &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2791              &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2792            },
2793            &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).
2794              &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2795              &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2796            },
2797            &quot;labels&quot;: { # Labels with user defined metadata.
2798              &quot;a_key&quot;: &quot;A String&quot;,
2799            },
2800          },
2801        ],
2802        &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2803        &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.
2804          &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.
2805            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2806              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2807              &quot;name&quot;: &quot;A String&quot;, # The alias name.
2808            },
2809            &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2810              &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.
2811                &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2812                &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2813              },
2814              &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2815            },
2816            &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2817          },
2818          &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2819            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2820              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2821              &quot;name&quot;: &quot;A String&quot;, # The alias name.
2822            },
2823            &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.
2824            &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2825            &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2826          },
2827          &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).
2828            &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2829            &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2830          },
2831          &quot;labels&quot;: { # Labels with user defined metadata.
2832            &quot;a_key&quot;: &quot;A String&quot;,
2833          },
2834        },
2835        &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.
2836          &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.
2837            &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2838              { # Container message for hash values.
2839                &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2840                &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2841              },
2842            ],
2843          },
2844        },
2845      },
2846      &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2847      &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2848    },
2849    &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.
2850  },
2851  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
2852  &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2853    &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2854      &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2855      &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2856      &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2857      &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2858      &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2859        &quot;A String&quot;,
2860      ],
2861      &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2862      &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2863    },
2864  },
2865  &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2866    &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
2867      &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2868      &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2869      &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2870        &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2871        &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2872          &quot;A String&quot;,
2873        ],
2874        &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.
2875      },
2876      &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.
2877        { # Layer holds metadata specific to a layer of a Docker image.
2878          &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2879          &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2880        },
2881      ],
2882    },
2883  },
2884  &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2885    &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
2886      &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2887      &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.
2888        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2889        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2890          {
2891            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2892          },
2893        ],
2894        &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.
2895      },
2896      &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2897      &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
2898    },
2899  },
2900  &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2901    &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2902      &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2903        { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2904          &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.
2905          &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2906          &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2907            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2908            &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.
2909            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2910            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2911            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2912          },
2913        },
2914      ],
2915      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2916    },
2917  },
2918  &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
2919    &quot;signatures&quot;: [
2920      { # A signature object consists of the KeyID used and the signature itself.
2921        &quot;keyid&quot;: &quot;A String&quot;,
2922        &quot;sig&quot;: &quot;A String&quot;,
2923      },
2924    ],
2925    &quot;signed&quot;: { # This corresponds to an in-toto link.
2926      &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
2927        &quot;customValues&quot;: {
2928          &quot;a_key&quot;: &quot;A String&quot;,
2929        },
2930      },
2931      &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
2932        &quot;A String&quot;,
2933      ],
2934      &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
2935        &quot;customValues&quot;: {
2936          &quot;a_key&quot;: &quot;A String&quot;,
2937        },
2938      },
2939      &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
2940        {
2941          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2942            &quot;sha256&quot;: &quot;A String&quot;,
2943          },
2944          &quot;resourceUri&quot;: &quot;A String&quot;,
2945        },
2946      ],
2947      &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2948        {
2949          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2950            &quot;sha256&quot;: &quot;A String&quot;,
2951          },
2952          &quot;resourceUri&quot;: &quot;A String&quot;,
2953        },
2954      ],
2955    },
2956  },
2957  &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.
2958  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
2959  &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.
2960  &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2961  &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2962    &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2963      &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2964      &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2965    },
2966    &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2967    &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2968  },
2969  &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2970    &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2971    &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2972    &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2973      &quot;A String&quot;,
2974    ],
2975    &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2976    &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2977      &quot;A String&quot;,
2978    ],
2979    &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2980    &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2981    &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2982    &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2983  },
2984  &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2985    &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2986      &quot;A String&quot;,
2987    ],
2988    &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2989    &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2990      &quot;A String&quot;,
2991    ],
2992    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2993    &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2994      &quot;A String&quot;,
2995    ],
2996    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2997    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2998      &quot;comments&quot;: &quot;A String&quot;, # Comments
2999      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3000    },
3001    &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
3002  },
3003  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3004    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3005    &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
3006    &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
3007    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3008    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
3009      &quot;comments&quot;: &quot;A String&quot;, # Comments
3010      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3011    },
3012    &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
3013    &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
3014    &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
3015    &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
3016    &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
3017  },
3018  &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
3019    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3020    &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3021    &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
3022    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
3023  },
3024  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
3025  &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
3026    &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.
3027    &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
3028    &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
3029    &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
3030      { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3031        &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
3032          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
3033          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3034          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3035            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3036            &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.
3037            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3038            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3039            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3040          },
3041        },
3042        &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.
3043        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
3044          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
3045          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3046          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3047            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3048            &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.
3049            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3050            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3051            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3052          },
3053        },
3054        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3055        &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
3056      },
3057    ],
3058    &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
3059      { # Metadata for any related URL information.
3060        &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
3061        &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
3062      },
3063    ],
3064    &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3065    &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
3066    &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
3067  },
3068}
3069
3070  updateMask: string, The fields to update.
3071  x__xgafv: string, V1 error format.
3072    Allowed values
3073      1 - v1 error format
3074      2 - v2 error format
3075
3076Returns:
3077  An object of the form:
3078
3079    { # An instance of an analysis type that has been found on a resource.
3080  &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
3081    &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 look-up (how to find this attestation if you already know the authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Required. Attestation for the resource.
3082      &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
3083        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
3084        &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
3085        &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.
3086          { # 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).
3087            &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;
3088            &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.
3089          },
3090        ],
3091      },
3092      &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file. # A PGP signed attestation.
3093        &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
3094        &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexidecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys [email protected] tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
3095        &quot;signature&quot;: &quot;A String&quot;, # Required. The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
3096      },
3097    },
3098  },
3099  &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
3100    &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.
3101      &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
3102        &quot;a_key&quot;: &quot;A String&quot;,
3103      },
3104      &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3105      &quot;builtArtifacts&quot;: [ # Output of the build.
3106        { # Artifact describes a build product.
3107          &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
3108          &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`.
3109          &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.
3110            &quot;A String&quot;,
3111          ],
3112        },
3113      ],
3114      &quot;commands&quot;: [ # Commands requested by the build.
3115        { # Command describes a step performed as part of the build pipeline.
3116          &quot;args&quot;: [ # Command-line arguments used when executing this command.
3117            &quot;A String&quot;,
3118          ],
3119          &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
3120          &quot;env&quot;: [ # Environment variables set before running this command.
3121            &quot;A String&quot;,
3122          ],
3123          &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
3124          &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`.
3125          &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
3126            &quot;A String&quot;,
3127          ],
3128        },
3129      ],
3130      &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
3131      &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.
3132      &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3133      &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
3134      &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
3135      &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3136      &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3137        &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.
3138          { # 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.
3139            &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.
3140              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3141                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3142                &quot;name&quot;: &quot;A String&quot;, # The alias name.
3143              },
3144              &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3145                &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.
3146                  &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3147                  &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3148                },
3149                &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3150              },
3151              &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3152            },
3153            &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3154              &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3155                &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3156                &quot;name&quot;: &quot;A String&quot;, # The alias name.
3157              },
3158              &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.
3159              &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3160              &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3161            },
3162            &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).
3163              &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3164              &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3165            },
3166            &quot;labels&quot;: { # Labels with user defined metadata.
3167              &quot;a_key&quot;: &quot;A String&quot;,
3168            },
3169          },
3170        ],
3171        &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
3172        &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.
3173          &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.
3174            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3175              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3176              &quot;name&quot;: &quot;A String&quot;, # The alias name.
3177            },
3178            &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3179              &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.
3180                &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3181                &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3182              },
3183              &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3184            },
3185            &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3186          },
3187          &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3188            &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3189              &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3190              &quot;name&quot;: &quot;A String&quot;, # The alias name.
3191            },
3192            &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.
3193            &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3194            &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3195          },
3196          &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).
3197            &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3198            &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3199          },
3200          &quot;labels&quot;: { # Labels with user defined metadata.
3201            &quot;a_key&quot;: &quot;A String&quot;,
3202          },
3203        },
3204        &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.
3205          &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.
3206            &quot;fileHash&quot;: [ # Required. Collection of file hashes.
3207              { # Container message for hash values.
3208                &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
3209                &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3210              },
3211            ],
3212          },
3213        },
3214      },
3215      &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3216      &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
3217    },
3218    &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.
3219  },
3220  &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
3221  &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
3222    &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
3223      &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3224      &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3225      &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
3226      &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3227      &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3228        &quot;A String&quot;,
3229      ],
3230      &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3231      &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3232    },
3233  },
3234  &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
3235    &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
3236      &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3237      &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3238      &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
3239        &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
3240        &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
3241          &quot;A String&quot;,
3242        ],
3243        &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.
3244      },
3245      &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.
3246        { # Layer holds metadata specific to a layer of a Docker image.
3247          &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3248          &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
3249        },
3250      ],
3251    },
3252  },
3253  &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
3254    &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
3255      &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3256      &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.
3257        &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3258        &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3259          {
3260            &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3261          },
3262        ],
3263        &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.
3264      },
3265      &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3266      &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
3267    },
3268  },
3269  &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
3270    &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
3271      &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
3272        { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
3273          &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.
3274          &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3275          &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
3276            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3277            &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.
3278            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3279            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3280            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3281          },
3282        },
3283      ],
3284      &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3285    },
3286  },
3287  &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
3288    &quot;signatures&quot;: [
3289      { # A signature object consists of the KeyID used and the signature itself.
3290        &quot;keyid&quot;: &quot;A String&quot;,
3291        &quot;sig&quot;: &quot;A String&quot;,
3292      },
3293    ],
3294    &quot;signed&quot;: { # This corresponds to an in-toto link.
3295      &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
3296        &quot;customValues&quot;: {
3297          &quot;a_key&quot;: &quot;A String&quot;,
3298        },
3299      },
3300      &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
3301        &quot;A String&quot;,
3302      ],
3303      &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
3304        &quot;customValues&quot;: {
3305          &quot;a_key&quot;: &quot;A String&quot;,
3306        },
3307      },
3308      &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
3309        {
3310          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
3311            &quot;sha256&quot;: &quot;A String&quot;,
3312          },
3313          &quot;resourceUri&quot;: &quot;A String&quot;,
3314        },
3315      ],
3316      &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
3317        {
3318          &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
3319            &quot;sha256&quot;: &quot;A String&quot;,
3320          },
3321          &quot;resourceUri&quot;: &quot;A String&quot;,
3322        },
3323      ],
3324    },
3325  },
3326  &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.
3327  &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
3328  &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.
3329  &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
3330  &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
3331    &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
3332      &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
3333      &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3334    },
3335    &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
3336    &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
3337  },
3338  &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
3339    &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
3340    &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
3341    &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
3342      &quot;A String&quot;,
3343    ],
3344    &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
3345    &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3346      &quot;A String&quot;,
3347    ],
3348    &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
3349    &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
3350    &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
3351    &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3352  },
3353  &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3354    &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
3355      &quot;A String&quot;,
3356    ],
3357    &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
3358    &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3359      &quot;A String&quot;,
3360    ],
3361    &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3362    &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3363      &quot;A String&quot;,
3364    ],
3365    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3366    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
3367      &quot;comments&quot;: &quot;A String&quot;, # Comments
3368      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3369    },
3370    &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
3371  },
3372  &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3373    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3374    &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
3375    &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
3376    &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3377    &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
3378      &quot;comments&quot;: &quot;A String&quot;, # Comments
3379      &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3380    },
3381    &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
3382    &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
3383    &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
3384    &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
3385    &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
3386  },
3387  &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific SPDX Relationship.
3388    &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3389    &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3390    &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
3391    &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
3392  },
3393  &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
3394  &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
3395    &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.
3396    &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability. 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.
3397    &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
3398    &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
3399      { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3400        &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
3401          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
3402          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3403          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3404            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3405            &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.
3406            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3407            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3408            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3409          },
3410        },
3411        &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.
3412        &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
3413          &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
3414          &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3415          &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3416            &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3417            &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.
3418            &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3419            &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3420            &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3421          },
3422        },
3423        &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
3424        &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
3425      },
3426    ],
3427    &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
3428      { # Metadata for any related URL information.
3429        &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
3430        &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
3431      },
3432    ],
3433    &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3434    &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
3435    &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
3436  },
3437}</pre>
3438</div>
3439
3440<div class="method">
3441    <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
3442  <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.
3443
3444Args:
3445  resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
3446  body: object, The request body.
3447    The object takes the form of:
3448
3449{ # Request message for `SetIamPolicy` method.
3450  &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
3451    &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3452      { # Associates `members`, or principals, with a `role`.
3453        &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).
3454          &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.
3455          &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3456          &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.
3457          &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.
3458        },
3459        &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3460          &quot;A String&quot;,
3461        ],
3462        &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`.
3463      },
3464    ],
3465    &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.
3466    &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).
3467  },
3468}
3469
3470  x__xgafv: string, V1 error format.
3471    Allowed values
3472      1 - v1 error format
3473      2 - v2 error format
3474
3475Returns:
3476  An object of the form:
3477
3478    { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot;, &quot;group:[email protected]&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:[email protected]&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:[email protected]&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:[email protected] - group:[email protected] - domain:google.com - serviceAccount:[email protected] role: roles/resourcemanager.organizationAdmin - members: - user:[email protected] role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
3479  &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:[email protected]`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3480    { # Associates `members`, or principals, with a `role`.
3481      &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).
3482        &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.
3483        &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3484        &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.
3485        &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.
3486      },
3487      &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `[email protected]` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `[email protected]`. * `group:{emailid}`: An email address that represents a Google group. For example, `[email protected]`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `[email protected]?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3488        &quot;A String&quot;,
3489      ],
3490      &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`.
3491    },
3492  ],
3493  &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.
3494  &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).
3495}</pre>
3496</div>
3497
3498<div class="method">
3499    <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
3500  <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.
3501
3502Args:
3503  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)
3504  body: object, The request body.
3505    The object takes the form of:
3506
3507{ # Request message for `TestIamPermissions` method.
3508  &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).
3509    &quot;A String&quot;,
3510  ],
3511}
3512
3513  x__xgafv: string, V1 error format.
3514    Allowed values
3515      1 - v1 error format
3516      2 - v2 error format
3517
3518Returns:
3519  An object of the form:
3520
3521    { # Response message for `TestIamPermissions` method.
3522  &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3523    &quot;A String&quot;,
3524  ],
3525}</pre>
3526</div>
3527
3528</body></html>