blob: 82f6fe08b91121717dc9367e1f4d03128888ab74 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates new occurrences in batch.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<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>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
101<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800102 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<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">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates the specified occurrence.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<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>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<h3>Method Details</h3>
117<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 <pre>Creates new occurrences in batch.
120
121Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 The object takes the form of:
125
126{ # Request to create occurrences in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800127 &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 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800139 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800140 },
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 attester@example.com 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800145 },
146 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800147 },
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;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800160 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800161 },
162 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800163 &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 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 },
178 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800179 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800188 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800189 &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 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800193 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800194 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800195 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800196 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800197 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800198 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800199 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800200 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800203 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800204 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800205 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800206 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800207 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800214 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800215 &quot;labels&quot;: { # Labels with user defined metadata.
216 &quot;a_key&quot;: &quot;A String&quot;,
217 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800218 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800219 ],
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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800227 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800235 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800236 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800250 &quot;a_key&quot;: &quot;A String&quot;,
251 },
252 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800253 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800290 &quot;A String&quot;,
291 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800292 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800293 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800294 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 },
299 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800300 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800301 },
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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800310 },
311 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800312 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800316 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &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.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800326 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800327 &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 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700387 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX 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;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
416 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
417 &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
418 },
419 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
420 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
421 &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
422 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
423 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
424 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
425 &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
426 },
427 &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.
428 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
429 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
430 &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
431 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
432 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800433 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
434 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
435 &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.
436 &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.
437 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
438 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
439 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
440 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
441 &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.
442 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
443 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
444 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800445 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800446 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
447 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
448 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
449 },
450 },
451 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
452 &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.
453 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
454 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
455 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800456 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800457 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
458 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
459 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
460 },
461 },
462 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
463 },
464 ],
465 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
466 { # Metadata for any related URL information.
467 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
468 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
469 },
470 ],
471 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
472 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
473 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
474 },
475 },
476 ],
477}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478
479 x__xgafv: string, V1 error format.
480 Allowed values
481 1 - v1 error format
482 2 - v2 error format
483
484Returns:
485 An object of the form:
486
487 { # Response for creating occurrences in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800488 &quot;occurrences&quot;: [ # The occurrences that were created.
489 { # An instance of an analysis type that has been found on a resource.
490 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
491 &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.
492 &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.
493 &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).
494 &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`.
495 &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.
496 { # 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).
497 &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;
498 &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.
499 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800500 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800501 },
502 &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.
503 &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).
504 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
505 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800506 },
507 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800508 },
509 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
510 &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.
511 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
512 &quot;a_key&quot;: &quot;A String&quot;,
513 },
514 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
515 &quot;builtArtifacts&quot;: [ # Output of the build.
516 { # Artifact describes a build product.
517 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
518 &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`.
519 &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.
520 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800521 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800522 },
523 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800524 &quot;commands&quot;: [ # Commands requested by the build.
525 { # Command describes a step performed as part of the build pipeline.
526 &quot;args&quot;: [ # Command-line arguments used when executing this command.
527 &quot;A String&quot;,
528 ],
529 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
530 &quot;env&quot;: [ # Environment variables set before running this command.
531 &quot;A String&quot;,
532 ],
533 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
534 &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`.
535 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
536 &quot;A String&quot;,
537 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800538 },
539 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800540 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
541 &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.
542 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
543 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
544 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
545 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
546 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
547 &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.
548 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800549 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800550 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
551 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
552 &quot;name&quot;: &quot;A String&quot;, # The alias name.
553 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800554 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800555 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800556 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800557 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800558 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800559 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800560 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800561 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
562 },
563 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800564 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800565 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800566 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800567 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800568 &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.
569 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
570 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
571 },
572 &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).
573 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
574 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800575 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800576 &quot;labels&quot;: { # Labels with user defined metadata.
577 &quot;a_key&quot;: &quot;A String&quot;,
578 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800579 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800580 ],
581 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
582 &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.
583 &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.
584 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
585 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
586 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800587 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800588 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
589 &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.
590 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
591 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
592 },
593 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
594 },
595 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800596 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800597 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
598 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
599 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
600 &quot;name&quot;: &quot;A String&quot;, # The alias name.
601 },
602 &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.
603 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
604 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
605 },
606 &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).
607 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
608 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
609 },
610 &quot;labels&quot;: { # Labels with user defined metadata.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800611 &quot;a_key&quot;: &quot;A String&quot;,
612 },
613 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800614 &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.
615 &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.
616 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
617 { # Container message for hash values.
618 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
619 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
620 },
621 ],
622 },
623 },
624 },
625 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
626 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
627 },
628 &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.
629 },
630 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
631 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
632 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
633 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
634 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
635 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
636 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
637 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
638 &quot;A String&quot;,
639 ],
640 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
641 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
642 },
643 },
644 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
645 &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.
646 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
647 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
648 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
649 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
650 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800651 &quot;A String&quot;,
652 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800653 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800654 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800655 &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.
656 { # Layer holds metadata specific to a layer of a Docker image.
657 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
658 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800659 },
660 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800661 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800662 },
663 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
664 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
665 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
666 &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.
667 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
668 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
669 {
670 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800671 },
672 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800673 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800674 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800675 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
676 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800677 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700678 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800679 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
680 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
681 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
682 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
683 &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.
684 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
685 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
686 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800687 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800688 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
689 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
690 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
691 },
692 },
693 ],
694 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
695 },
696 },
697 &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.
698 &quot;signatures&quot;: [
699 { # A signature object consists of the KeyID used and the signature itself.
700 &quot;keyid&quot;: &quot;A String&quot;,
701 &quot;sig&quot;: &quot;A String&quot;,
702 },
703 ],
704 &quot;signed&quot;: { # This corresponds to an in-toto link.
705 &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.
706 &quot;customValues&quot;: {
707 &quot;a_key&quot;: &quot;A String&quot;,
708 },
709 },
710 &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;]
711 &quot;A String&quot;,
712 ],
713 &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; } }
714 &quot;customValues&quot;: {
715 &quot;a_key&quot;: &quot;A String&quot;,
716 },
717 },
718 &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;, : } } ]
719 {
720 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
721 &quot;sha256&quot;: &quot;A String&quot;,
722 },
723 &quot;resourceUri&quot;: &quot;A String&quot;,
724 },
725 ],
726 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
727 {
728 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
729 &quot;sha256&quot;: &quot;A String&quot;,
730 },
731 &quot;resourceUri&quot;: &quot;A String&quot;,
732 },
733 ],
734 },
735 },
736 &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.
737 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
738 &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.
739 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
740 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
741 &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.
742 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
743 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
744 },
745 &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;.
746 &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.
747 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700748 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
749 &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
750 &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
751 &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
752 &quot;A String&quot;,
753 ],
754 &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
755 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
756 &quot;A String&quot;,
757 ],
758 &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
759 &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
760 &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
761 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
762 },
763 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
764 &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
765 &quot;A String&quot;,
766 ],
767 &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
768 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
769 &quot;A String&quot;,
770 ],
771 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
772 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
773 &quot;A String&quot;,
774 ],
775 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
776 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
777 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
778 &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
779 },
780 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
781 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
782 &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
783 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
784 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
785 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
786 &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
787 },
788 &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.
789 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
790 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
791 &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
792 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
793 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800794 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
795 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
796 &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.
797 &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.
798 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
799 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
800 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
801 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
802 &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.
803 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
804 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
805 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800806 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800807 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
808 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
809 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
810 },
811 },
812 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
813 &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.
814 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
815 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
816 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800817 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800818 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
819 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
820 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
821 },
822 },
823 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
824 },
825 ],
826 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
827 { # Metadata for any related URL information.
828 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
829 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
830 },
831 ],
832 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
833 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
834 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
835 },
836 },
837 ],
838}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700839</div>
840
841<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700842 <code class="details" id="close">close()</code>
843 <pre>Close httplib2 connections.</pre>
844</div>
845
846<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700847 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 <pre>Creates a new occurrence.
849
850Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700851 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700852 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700853 The object takes the form of:
854
855{ # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800856 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
857 &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.
858 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800859 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800860 &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`.
861 &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.
862 { # 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).
863 &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;
864 &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.
865 },
866 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800867 },
868 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800869 &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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800870 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
871 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800872 },
873 },
874 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800875 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
876 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800877 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
878 &quot;a_key&quot;: &quot;A String&quot;,
879 },
880 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800881 &quot;builtArtifacts&quot;: [ # Output of the build.
882 { # Artifact describes a build product.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800883 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800884 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800885 &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.
886 &quot;A String&quot;,
887 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800888 },
889 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800890 &quot;commands&quot;: [ # Commands requested by the build.
891 { # Command describes a step performed as part of the build pipeline.
892 &quot;args&quot;: [ # Command-line arguments used when executing this command.
893 &quot;A String&quot;,
894 ],
895 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
896 &quot;env&quot;: [ # Environment variables set before running this command.
897 &quot;A String&quot;,
898 ],
899 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
900 &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`.
901 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
902 &quot;A String&quot;,
903 ],
904 },
905 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800906 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800907 &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.
908 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
909 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
910 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800911 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700912 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800913 &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.
914 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800915 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800916 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
917 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
918 &quot;name&quot;: &quot;A String&quot;, # The alias name.
919 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800920 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800921 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800922 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800923 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800924 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800925 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800926 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800927 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
928 },
929 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800930 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800931 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800932 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800933 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800934 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
935 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
936 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
937 },
938 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
939 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
940 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800941 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800942 &quot;labels&quot;: { # Labels with user defined metadata.
943 &quot;a_key&quot;: &quot;A String&quot;,
944 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800945 },
946 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800947 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800948 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800949 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800950 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
951 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
952 &quot;name&quot;: &quot;A String&quot;, # The alias name.
953 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800954 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800955 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800956 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800957 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800958 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800959 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800960 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800961 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
962 },
963 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800964 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800965 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800966 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800967 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800968 &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.
969 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
970 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
971 },
972 &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).
973 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
974 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800975 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800976 &quot;labels&quot;: { # Labels with user defined metadata.
977 &quot;a_key&quot;: &quot;A String&quot;,
978 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800979 },
980 &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.
981 &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.
982 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
983 { # Container message for hash values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800984 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800985 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800986 },
987 ],
988 },
989 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700990 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800991 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
992 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
993 },
994 &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.
995 },
996 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
997 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
998 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
999 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1000 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1001 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1002 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1003 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1004 &quot;A String&quot;,
1005 ],
1006 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1007 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1008 },
1009 },
1010 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1011 &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.
1012 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1013 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1014 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1015 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1016 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1017 &quot;A String&quot;,
1018 ],
1019 &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.
1020 },
1021 &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.
1022 { # Layer holds metadata specific to a layer of a Docker image.
1023 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1024 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1025 },
1026 ],
1027 },
1028 },
1029 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1030 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1031 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1032 &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.
1033 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1034 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1035 {
1036 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1037 },
1038 ],
1039 &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.
1040 },
1041 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1042 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1043 },
1044 },
1045 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1046 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1047 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1048 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1049 &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.
1050 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1051 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1052 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001053 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001054 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1055 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1056 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1057 },
1058 },
1059 ],
1060 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001061 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001062 },
1063 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001064 &quot;signatures&quot;: [
1065 { # A signature object consists of the KeyID used and the signature itself.
1066 &quot;keyid&quot;: &quot;A String&quot;,
1067 &quot;sig&quot;: &quot;A String&quot;,
1068 },
1069 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001070 &quot;signed&quot;: { # This corresponds to an in-toto link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001071 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001072 &quot;customValues&quot;: {
1073 &quot;a_key&quot;: &quot;A String&quot;,
1074 },
1075 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001076 &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;]
1077 &quot;A String&quot;,
1078 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001079 &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; } }
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001080 &quot;customValues&quot;: {
1081 &quot;a_key&quot;: &quot;A String&quot;,
1082 },
1083 },
1084 &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;, : } } ]
1085 {
1086 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1087 &quot;sha256&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001088 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001089 &quot;resourceUri&quot;: &quot;A String&quot;,
1090 },
1091 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001092 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1093 {
1094 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1095 &quot;sha256&quot;: &quot;A String&quot;,
1096 },
1097 &quot;resourceUri&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001098 },
1099 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001100 },
1101 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001102 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001103 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001104 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001105 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001106 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1107 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001108 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001109 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001110 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001111 &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;.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001112 &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.
1113 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001114 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
1115 &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
1116 &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
1117 &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
1118 &quot;A String&quot;,
1119 ],
1120 &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
1121 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1122 &quot;A String&quot;,
1123 ],
1124 &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
1125 &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
1126 &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
1127 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1128 },
1129 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1130 &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
1131 &quot;A String&quot;,
1132 ],
1133 &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
1134 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1135 &quot;A String&quot;,
1136 ],
1137 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1138 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1139 &quot;A String&quot;,
1140 ],
1141 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1142 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1143 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1144 &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
1145 },
1146 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1147 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1148 &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
1149 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1150 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1151 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1152 &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
1153 },
1154 &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.
1155 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1156 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1157 &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
1158 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1159 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001160 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1161 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1162 &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.
1163 &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.
1164 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1165 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1166 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1167 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1168 &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.
1169 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1170 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1171 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001172 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001173 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1174 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1175 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1176 },
1177 },
1178 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1179 &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.
1180 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1181 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1182 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001183 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001184 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1185 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1186 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1187 },
1188 },
1189 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1190 },
1191 ],
1192 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1193 { # Metadata for any related URL information.
1194 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1195 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1196 },
1197 ],
1198 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1199 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1200 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001201 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001202}
1203
1204 x__xgafv: string, V1 error format.
1205 Allowed values
1206 1 - v1 error format
1207 2 - v2 error format
1208
1209Returns:
1210 An object of the form:
1211
1212 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001213 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1214 &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.
1215 &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.
1216 &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).
1217 &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`.
1218 &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.
1219 { # 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).
1220 &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;
1221 &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.
1222 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001223 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001224 },
1225 &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.
1226 &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).
1227 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1228 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001229 },
1230 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001231 },
1232 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1233 &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.
1234 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1235 &quot;a_key&quot;: &quot;A String&quot;,
1236 },
1237 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1238 &quot;builtArtifacts&quot;: [ # Output of the build.
1239 { # Artifact describes a build product.
1240 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1241 &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`.
1242 &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.
1243 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001244 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001245 },
1246 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001247 &quot;commands&quot;: [ # Commands requested by the build.
1248 { # Command describes a step performed as part of the build pipeline.
1249 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1250 &quot;A String&quot;,
1251 ],
1252 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1253 &quot;env&quot;: [ # Environment variables set before running this command.
1254 &quot;A String&quot;,
1255 ],
1256 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1257 &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`.
1258 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1259 &quot;A String&quot;,
1260 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001261 },
1262 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001263 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1264 &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.
1265 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1266 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1267 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1268 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1269 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1270 &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.
1271 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001272 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001273 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1274 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1275 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1276 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001277 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001278 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001279 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001280 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001281 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001282 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001283 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001284 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1285 },
1286 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001287 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001288 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001289 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001290 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &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.
1292 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1293 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1294 },
1295 &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).
1296 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1297 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001298 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001299 &quot;labels&quot;: { # Labels with user defined metadata.
1300 &quot;a_key&quot;: &quot;A String&quot;,
1301 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001302 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001303 ],
1304 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1305 &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.
1306 &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.
1307 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1308 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1309 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001310 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001311 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1312 &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.
1313 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1314 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1315 },
1316 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1317 },
1318 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001319 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001320 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1321 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1322 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1323 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1324 },
1325 &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.
1326 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1327 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1328 },
1329 &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).
1330 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1331 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1332 },
1333 &quot;labels&quot;: { # Labels with user defined metadata.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001334 &quot;a_key&quot;: &quot;A String&quot;,
1335 },
1336 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001337 &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.
1338 &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.
1339 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1340 { # Container message for hash values.
1341 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1342 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1343 },
1344 ],
1345 },
1346 },
1347 },
1348 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1349 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1350 },
1351 &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.
1352 },
1353 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1354 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1355 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1356 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1357 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1358 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1359 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1360 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1361 &quot;A String&quot;,
1362 ],
1363 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1364 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1365 },
1366 },
1367 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1368 &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.
1369 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1370 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1371 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1372 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1373 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001374 &quot;A String&quot;,
1375 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001376 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001377 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001378 &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.
1379 { # Layer holds metadata specific to a layer of a Docker image.
1380 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1381 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001382 },
1383 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001384 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001385 },
1386 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1387 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1388 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1389 &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.
1390 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1391 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1392 {
1393 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001394 },
1395 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001396 &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.
1397 },
1398 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1399 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1400 },
1401 },
1402 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1403 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1404 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1405 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1406 &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.
1407 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1408 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1409 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001410 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001411 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1412 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1413 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1414 },
1415 },
1416 ],
1417 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1418 },
1419 },
1420 &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.
1421 &quot;signatures&quot;: [
1422 { # A signature object consists of the KeyID used and the signature itself.
1423 &quot;keyid&quot;: &quot;A String&quot;,
1424 &quot;sig&quot;: &quot;A String&quot;,
1425 },
1426 ],
1427 &quot;signed&quot;: { # This corresponds to an in-toto link.
1428 &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.
1429 &quot;customValues&quot;: {
1430 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001431 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001432 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001433 &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;]
1434 &quot;A String&quot;,
1435 ],
1436 &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; } }
1437 &quot;customValues&quot;: {
1438 &quot;a_key&quot;: &quot;A String&quot;,
1439 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001440 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001441 &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;, : } } ]
1442 {
1443 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1444 &quot;sha256&quot;: &quot;A String&quot;,
1445 },
1446 &quot;resourceUri&quot;: &quot;A String&quot;,
1447 },
1448 ],
1449 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1450 {
1451 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1452 &quot;sha256&quot;: &quot;A String&quot;,
1453 },
1454 &quot;resourceUri&quot;: &quot;A String&quot;,
1455 },
1456 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001457 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001458 },
1459 &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.
1460 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1461 &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.
1462 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1463 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1464 &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.
1465 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1466 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1467 },
1468 &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;.
1469 &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.
1470 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001471 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
1472 &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
1473 &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
1474 &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
1475 &quot;A String&quot;,
1476 ],
1477 &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
1478 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1479 &quot;A String&quot;,
1480 ],
1481 &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
1482 &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
1483 &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
1484 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1485 },
1486 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1487 &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
1488 &quot;A String&quot;,
1489 ],
1490 &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
1491 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1492 &quot;A String&quot;,
1493 ],
1494 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1495 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1496 &quot;A String&quot;,
1497 ],
1498 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1499 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1500 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1501 &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
1502 },
1503 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1504 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1505 &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
1506 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1507 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1508 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1509 &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
1510 },
1511 &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.
1512 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1513 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1514 &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
1515 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1516 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001517 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1518 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1519 &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.
1520 &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.
1521 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1522 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1523 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1524 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1525 &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.
1526 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1527 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1528 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001529 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001530 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1531 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1532 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1533 },
1534 },
1535 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1536 &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.
1537 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1538 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1539 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001540 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001541 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1542 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1543 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1544 },
1545 },
1546 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1547 },
1548 ],
1549 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1550 { # Metadata for any related URL information.
1551 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1552 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1553 },
1554 ],
1555 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1556 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1557 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1558 },
1559}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001560</div>
1561
1562<div class="method">
1563 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001564 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001565
1566Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001567 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001568 x__xgafv: string, V1 error format.
1569 Allowed values
1570 1 - v1 error format
1571 2 - v2 error format
1572
1573Returns:
1574 An object of the form:
1575
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001576 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001577}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001578</div>
1579
1580<div class="method">
1581 <code class="details" id="get">get(name, x__xgafv=None)</code>
1582 <pre>Gets the specified occurrence.
1583
1584Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001585 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001586 x__xgafv: string, V1 error format.
1587 Allowed values
1588 1 - v1 error format
1589 2 - v2 error format
1590
1591Returns:
1592 An object of the form:
1593
1594 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001595 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1596 &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.
1597 &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.
1598 &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).
1599 &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`.
1600 &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.
1601 { # 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).
1602 &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;
1603 &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.
1604 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001605 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001606 },
1607 &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.
1608 &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).
1609 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1610 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001611 },
1612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001613 },
1614 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
1615 &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.
1616 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1617 &quot;a_key&quot;: &quot;A String&quot;,
1618 },
1619 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1620 &quot;builtArtifacts&quot;: [ # Output of the build.
1621 { # Artifact describes a build product.
1622 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1623 &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`.
1624 &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.
1625 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001626 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001627 },
1628 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001629 &quot;commands&quot;: [ # Commands requested by the build.
1630 { # Command describes a step performed as part of the build pipeline.
1631 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1632 &quot;A String&quot;,
1633 ],
1634 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1635 &quot;env&quot;: [ # Environment variables set before running this command.
1636 &quot;A String&quot;,
1637 ],
1638 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1639 &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`.
1640 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1641 &quot;A String&quot;,
1642 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001643 },
1644 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001645 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1646 &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.
1647 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1648 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
1649 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
1650 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1651 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1652 &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.
1653 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001654 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001655 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1656 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1657 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1658 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001659 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001660 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001661 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001662 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001663 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001664 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001665 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001666 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1667 },
1668 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001669 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001670 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001671 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001673 &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.
1674 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1675 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1676 },
1677 &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).
1678 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1679 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001680 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001681 &quot;labels&quot;: { # Labels with user defined metadata.
1682 &quot;a_key&quot;: &quot;A String&quot;,
1683 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001684 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001685 ],
1686 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1687 &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.
1688 &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.
1689 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1690 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1691 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001692 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001693 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1694 &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.
1695 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1696 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1697 },
1698 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1699 },
1700 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001701 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001702 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1703 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1704 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1705 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1706 },
1707 &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.
1708 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1709 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1710 },
1711 &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).
1712 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1713 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1714 },
1715 &quot;labels&quot;: { # Labels with user defined metadata.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001716 &quot;a_key&quot;: &quot;A String&quot;,
1717 },
1718 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001719 &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.
1720 &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.
1721 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1722 { # Container message for hash values.
1723 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1724 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1725 },
1726 ],
1727 },
1728 },
1729 },
1730 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1731 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1732 },
1733 &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.
1734 },
1735 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
1736 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1737 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1738 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1739 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1740 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1741 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1742 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1743 &quot;A String&quot;,
1744 ],
1745 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1746 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1747 },
1748 },
1749 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1750 &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.
1751 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1752 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1753 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1754 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1755 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001756 &quot;A String&quot;,
1757 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001758 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001759 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001760 &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.
1761 { # Layer holds metadata specific to a layer of a Docker image.
1762 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1763 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001764 },
1765 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001766 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001767 },
1768 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1769 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
1770 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1771 &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.
1772 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1773 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1774 {
1775 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001776 },
1777 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001778 &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.
1779 },
1780 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1781 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
1782 },
1783 },
1784 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1785 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1786 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1787 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1788 &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.
1789 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1790 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1791 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001792 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001793 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1794 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1795 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1796 },
1797 },
1798 ],
1799 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1800 },
1801 },
1802 &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.
1803 &quot;signatures&quot;: [
1804 { # A signature object consists of the KeyID used and the signature itself.
1805 &quot;keyid&quot;: &quot;A String&quot;,
1806 &quot;sig&quot;: &quot;A String&quot;,
1807 },
1808 ],
1809 &quot;signed&quot;: { # This corresponds to an in-toto link.
1810 &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.
1811 &quot;customValues&quot;: {
1812 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001813 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001814 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001815 &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;]
1816 &quot;A String&quot;,
1817 ],
1818 &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; } }
1819 &quot;customValues&quot;: {
1820 &quot;a_key&quot;: &quot;A String&quot;,
1821 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001822 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001823 &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;, : } } ]
1824 {
1825 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1826 &quot;sha256&quot;: &quot;A String&quot;,
1827 },
1828 &quot;resourceUri&quot;: &quot;A String&quot;,
1829 },
1830 ],
1831 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1832 {
1833 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1834 &quot;sha256&quot;: &quot;A String&quot;,
1835 },
1836 &quot;resourceUri&quot;: &quot;A String&quot;,
1837 },
1838 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001839 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001840 },
1841 &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.
1842 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
1843 &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.
1844 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1845 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1846 &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.
1847 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1848 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1849 },
1850 &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;.
1851 &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.
1852 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001853 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
1854 &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
1855 &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
1856 &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
1857 &quot;A String&quot;,
1858 ],
1859 &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
1860 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1861 &quot;A String&quot;,
1862 ],
1863 &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
1864 &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
1865 &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
1866 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1867 },
1868 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1869 &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
1870 &quot;A String&quot;,
1871 ],
1872 &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
1873 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1874 &quot;A String&quot;,
1875 ],
1876 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1877 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1878 &quot;A String&quot;,
1879 ],
1880 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1881 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1882 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1883 &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
1884 },
1885 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1886 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1887 &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
1888 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1889 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1890 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1891 &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
1892 },
1893 &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.
1894 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1895 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1896 &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
1897 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1898 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001899 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1900 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
1901 &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.
1902 &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.
1903 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1904 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1905 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1906 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
1907 &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.
1908 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1909 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1910 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001911 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001912 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1913 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1914 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1915 },
1916 },
1917 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
1918 &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.
1919 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1920 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1921 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001922 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001923 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1924 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1925 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1926 },
1927 },
1928 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
1929 },
1930 ],
1931 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1932 { # Metadata for any related URL information.
1933 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1934 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1935 },
1936 ],
1937 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1938 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1939 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1940 },
1941}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001942</div>
1943
1944<div class="method">
1945 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001946 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001947
1948Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001949 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001950 body: object, The request body.
1951 The object takes the form of:
1952
1953{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001954 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1955 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1956 },
1957}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001958
1959 x__xgafv: string, V1 error format.
1960 Allowed values
1961 1 - v1 error format
1962 2 - v2 error format
1963
1964Returns:
1965 An object of the form:
1966
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001967 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001968 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1969 { # Associates `members` with a `role`.
1970 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1971 &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.
1972 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1973 &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.
1974 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001975 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001976 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1977 &quot;A String&quot;,
1978 ],
1979 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1980 },
1981 ],
1982 &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.
1983 &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).
1984}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001985</div>
1986
1987<div class="method">
1988 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001989 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001990
1991Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001992 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001993 x__xgafv: string, V1 error format.
1994 Allowed values
1995 1 - v1 error format
1996 2 - v2 error format
1997
1998Returns:
1999 An object of the form:
2000
2001 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002002 &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.
2003 &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.
2004 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
2005 },
2006 },
2007 &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.
2008 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2009 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2010 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2011 &quot;A String&quot;,
2012 ],
2013 &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.
2014 },
2015 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
2016 },
2017 &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.
2018 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2019 &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.
2020 &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).
2021 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
2022 &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`
2023 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
2024 },
2025 },
2026 &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.
2027 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2028 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002029 &quot;A String&quot;,
2030 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002031 },
2032 &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.
2033 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
2034 },
2035 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2036 &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.
2037 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2038 &quot;A String&quot;,
2039 ],
2040 &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.
2041 { # Defines an object to declare an in-toto artifact rule
2042 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002043 &quot;A String&quot;,
2044 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002045 },
2046 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002047 &quot;expectedProducts&quot;: [
2048 { # Defines an object to declare an in-toto artifact rule
2049 &quot;artifactRule&quot;: [
2050 &quot;A String&quot;,
2051 ],
2052 },
2053 ],
2054 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
2055 { # 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.
2056 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2057 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
2058 &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;.
2059 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
2060 },
2061 ],
2062 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2063 &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.
2064 },
2065 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
2066 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2067 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2068 &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.
2069 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2070 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
2071 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
2072 &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.
2073 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2074 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2075 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002076 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002077 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2078 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2079 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2080 },
2081 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2082 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2083 },
2084 ],
2085 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2086 },
2087 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2088 &quot;A String&quot;,
2089 ],
2090 &quot;relatedUrl&quot;: [ # URLs associated with this note.
2091 { # Metadata for any related URL information.
2092 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2093 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2094 },
2095 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07002096 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing SPDX Document which represents SBOM.
2097 &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;)
2098 &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
2099 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002100 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002101 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
2102 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
2103 &quot;A String&quot;,
2104 ],
2105 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
2106 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
2107 },
2108 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
2109 &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
2110 &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
2111 &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
2112 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
2113 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
2114 &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
2115 &quot;externalRefs&quot;: [ # ExternalRef
2116 { # 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
2117 &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
2118 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
2119 &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
2120 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
2121 },
2122 ],
2123 &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
2124 &quot;A String&quot;,
2125 ],
2126 &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
2127 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
2128 &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
2129 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
2130 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
2131 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
2132 &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
2133 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
2134 },
2135 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing SPDX Relationship.
2136 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002137 &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.
2138 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
2139 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
2140 &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.
2141 &quot;attackComplexity&quot;: &quot;A String&quot;,
2142 &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.
2143 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2144 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2145 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2146 &quot;exploitabilityScore&quot;: 3.14,
2147 &quot;impactScore&quot;: 3.14,
2148 &quot;integrityImpact&quot;: &quot;A String&quot;,
2149 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2150 &quot;scope&quot;: &quot;A String&quot;,
2151 &quot;userInteraction&quot;: &quot;A String&quot;,
2152 },
2153 &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.
2154 { # 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
2155 &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.
2156 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2157 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2158 &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.
2159 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2160 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002161 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002162 &quot;inclusive&quot;: True or False, # Whether this version is 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002163 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002164 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2165 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002166 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002167 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002168 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
2169 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
2170 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002171 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002172 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2173 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2174 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2175 },
2176 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
2177 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002178 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002179 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2180 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2181 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2182 },
2183 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2184 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
2185 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002186 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002187 &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.
yoshi-code-bot3dd15272021-04-21 15:07:48 -07002188 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002189 },
2190 ],
2191 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
2192 &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.
2193 &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.
2194 {
2195 &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.
2196 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2197 &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.
2198 {
2199 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
2200 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
2201 },
2202 ],
2203 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2204 },
2205 ],
2206 },
2207}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002208</div>
2209
2210<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002211 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002212 <pre>Gets a summary of the number and severity of occurrences.
2213
2214Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002215 parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002216 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002217 x__xgafv: string, V1 error format.
2218 Allowed values
2219 1 - v1 error format
2220 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002221
2222Returns:
2223 An object of the form:
2224
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002225 { # A summary of how many vulnerability occurrences there are per resource and severity type.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002226 &quot;counts&quot;: [ # A listing by resource of the number of fixable and total vulnerabilities.
2227 { # Per resource and severity counts of fixable and total vulnerabilities.
2228 &quot;fixableCount&quot;: &quot;A String&quot;, # The number of fixable vulnerabilities associated with this resource.
2229 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # The affected resource.
2230 &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.
2231 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2232 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002233 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002234 &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;.
2235 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002236 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002237 &quot;severity&quot;: &quot;A String&quot;, # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.
2238 &quot;totalCount&quot;: &quot;A String&quot;, # The total number of vulnerabilities associated with this resource.
2239 },
2240 ],
2241}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002242</div>
2243
2244<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002245 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002246 <pre>Lists occurrences for the specified project.
2247
2248Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002249 parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002250 filter: string, The filter expression.
2251 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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002252 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002253 x__xgafv: string, V1 error format.
2254 Allowed values
2255 1 - v1 error format
2256 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002257
2258Returns:
2259 An object of the form:
2260
2261 { # Response for listing occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002262 &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.
2263 &quot;occurrences&quot;: [ # The occurrences requested.
2264 { # An instance of an analysis type that has been found on a resource.
2265 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2266 &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.
2267 &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.
2268 &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).
2269 &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`.
2270 &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.
2271 { # 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).
2272 &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;
2273 &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.
2274 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002275 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002276 },
2277 &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.
2278 &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).
2279 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2280 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002281 },
2282 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002283 },
2284 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2285 &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.
2286 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2287 &quot;a_key&quot;: &quot;A String&quot;,
2288 },
2289 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2290 &quot;builtArtifacts&quot;: [ # Output of the build.
2291 { # Artifact describes a build product.
2292 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2293 &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`.
2294 &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.
2295 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002296 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002297 },
2298 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002299 &quot;commands&quot;: [ # Commands requested by the build.
2300 { # Command describes a step performed as part of the build pipeline.
2301 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2302 &quot;A String&quot;,
2303 ],
2304 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2305 &quot;env&quot;: [ # Environment variables set before running this command.
2306 &quot;A String&quot;,
2307 ],
2308 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2309 &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`.
2310 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2311 &quot;A String&quot;,
2312 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002313 },
2314 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002315 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2316 &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.
2317 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2318 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2319 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
2320 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2321 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2322 &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.
2323 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002324 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002325 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2326 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2327 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2328 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002329 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002330 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002331 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002332 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002333 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002334 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002335 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002336 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2337 },
2338 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002339 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002340 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002341 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002342 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002343 &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.
2344 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2345 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2346 },
2347 &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).
2348 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2349 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002350 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002351 &quot;labels&quot;: { # Labels with user defined metadata.
2352 &quot;a_key&quot;: &quot;A String&quot;,
2353 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002354 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002355 ],
2356 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2357 &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.
2358 &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.
2359 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2360 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2361 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002362 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002363 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2364 &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.
2365 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2366 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2367 },
2368 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2369 },
2370 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002371 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002372 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2373 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2374 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2375 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2376 },
2377 &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.
2378 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2379 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2380 },
2381 &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).
2382 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2383 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2384 },
2385 &quot;labels&quot;: { # Labels with user defined metadata.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002386 &quot;a_key&quot;: &quot;A String&quot;,
2387 },
2388 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002389 &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.
2390 &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.
2391 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2392 { # Container message for hash values.
2393 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2394 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2395 },
2396 ],
2397 },
2398 },
2399 },
2400 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2401 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2402 },
2403 &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.
2404 },
2405 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
2406 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2407 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2408 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2409 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2410 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2411 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2412 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2413 &quot;A String&quot;,
2414 ],
2415 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2416 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2417 },
2418 },
2419 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2420 &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.
2421 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2422 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2423 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2424 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2425 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002426 &quot;A String&quot;,
2427 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002428 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002429 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002430 &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.
2431 { # Layer holds metadata specific to a layer of a Docker image.
2432 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2433 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002434 },
2435 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002436 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002437 },
2438 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2439 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
2440 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2441 &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.
2442 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2443 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2444 {
2445 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002446 },
2447 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002448 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002449 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002450 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2451 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002452 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002453 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002454 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2455 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2456 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2457 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2458 &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.
2459 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2460 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2461 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002462 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002463 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2464 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2465 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2466 },
2467 },
2468 ],
2469 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2470 },
2471 },
2472 &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.
2473 &quot;signatures&quot;: [
2474 { # A signature object consists of the KeyID used and the signature itself.
2475 &quot;keyid&quot;: &quot;A String&quot;,
2476 &quot;sig&quot;: &quot;A String&quot;,
2477 },
2478 ],
2479 &quot;signed&quot;: { # This corresponds to an in-toto link.
2480 &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.
2481 &quot;customValues&quot;: {
2482 &quot;a_key&quot;: &quot;A String&quot;,
2483 },
2484 },
2485 &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;]
2486 &quot;A String&quot;,
2487 ],
2488 &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; } }
2489 &quot;customValues&quot;: {
2490 &quot;a_key&quot;: &quot;A String&quot;,
2491 },
2492 },
2493 &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;, : } } ]
2494 {
2495 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2496 &quot;sha256&quot;: &quot;A String&quot;,
2497 },
2498 &quot;resourceUri&quot;: &quot;A String&quot;,
2499 },
2500 ],
2501 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2502 {
2503 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2504 &quot;sha256&quot;: &quot;A String&quot;,
2505 },
2506 &quot;resourceUri&quot;: &quot;A String&quot;,
2507 },
2508 ],
2509 },
2510 },
2511 &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.
2512 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
2513 &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.
2514 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2515 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2516 &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.
2517 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2518 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2519 },
2520 &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;.
2521 &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.
2522 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002523 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
2524 &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
2525 &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
2526 &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
2527 &quot;A String&quot;,
2528 ],
2529 &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
2530 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2531 &quot;A String&quot;,
2532 ],
2533 &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
2534 &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
2535 &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
2536 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2537 },
2538 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2539 &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
2540 &quot;A String&quot;,
2541 ],
2542 &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
2543 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2544 &quot;A String&quot;,
2545 ],
2546 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2547 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2548 &quot;A String&quot;,
2549 ],
2550 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2551 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2552 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2553 &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
2554 },
2555 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2556 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2557 &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
2558 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2559 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2560 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2561 &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
2562 },
2563 &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.
2564 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2565 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2566 &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
2567 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2568 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002569 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2570 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
2571 &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.
2572 &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.
2573 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2574 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2575 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2576 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
2577 &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.
2578 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2579 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2580 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002581 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002582 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2583 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2584 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2585 },
2586 },
2587 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
2588 &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.
2589 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2590 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2591 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002592 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002593 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2594 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2595 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2596 },
2597 },
2598 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
2599 },
2600 ],
2601 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2602 { # Metadata for any related URL information.
2603 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2604 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2605 },
2606 ],
2607 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2608 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2609 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2610 },
2611 },
2612 ],
2613}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002614</div>
2615
2616<div class="method">
2617 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2618 <pre>Retrieves the next page of results.
2619
2620Args:
2621 previous_request: The request for the previous page. (required)
2622 previous_response: The response from the request for the previous page. (required)
2623
2624Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002625 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002626 page. Returns None if there are no more items in the collection.
2627 </pre>
2628</div>
2629
2630<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002631 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002632 <pre>Updates the specified occurrence.
2633
2634Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002635 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002636 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002637 The object takes the form of:
2638
2639{ # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002640 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2641 &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.
2642 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002643 &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).
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002644 &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`.
2645 &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.
2646 { # 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).
2647 &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;
2648 &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.
2649 },
2650 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002651 },
2652 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002653 &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).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002654 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2655 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002656 },
2657 },
2658 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002659 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
2660 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002661 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2662 &quot;a_key&quot;: &quot;A String&quot;,
2663 },
2664 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002665 &quot;builtArtifacts&quot;: [ # Output of the build.
2666 { # Artifact describes a build product.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002667 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002668 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002669 &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.
2670 &quot;A String&quot;,
2671 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002672 },
2673 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002674 &quot;commands&quot;: [ # Commands requested by the build.
2675 { # Command describes a step performed as part of the build pipeline.
2676 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2677 &quot;A String&quot;,
2678 ],
2679 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2680 &quot;env&quot;: [ # Environment variables set before running this command.
2681 &quot;A String&quot;,
2682 ],
2683 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2684 &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`.
2685 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2686 &quot;A String&quot;,
2687 ],
2688 },
2689 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002690 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002691 &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.
2692 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2693 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
2694 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002695 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002696 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002697 &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.
2698 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002699 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002700 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2701 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2702 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2703 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002704 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002705 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002706 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002707 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002708 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002709 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002710 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002711 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2712 },
2713 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002714 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002715 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002716 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002717 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002718 &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.
2719 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2720 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2721 },
2722 &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).
2723 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2724 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002725 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002726 &quot;labels&quot;: { # Labels with user defined metadata.
2727 &quot;a_key&quot;: &quot;A String&quot;,
2728 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002729 },
2730 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002731 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002732 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002733 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002734 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2735 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2736 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2737 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002738 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002739 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002740 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002741 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002742 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002743 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002744 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002745 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2746 },
2747 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002748 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002749 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002750 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002752 &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.
2753 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2754 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2755 },
2756 &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).
2757 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2758 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002759 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002760 &quot;labels&quot;: { # Labels with user defined metadata.
2761 &quot;a_key&quot;: &quot;A String&quot;,
2762 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002763 },
2764 &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.
2765 &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.
2766 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2767 { # Container message for hash values.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002768 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002769 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002770 },
2771 ],
2772 },
2773 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002774 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002775 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2776 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2777 },
2778 &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.
2779 },
2780 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
2781 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2782 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2783 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2784 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2785 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2786 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2787 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2788 &quot;A String&quot;,
2789 ],
2790 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2791 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2792 },
2793 },
2794 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2795 &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.
2796 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2797 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2798 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2799 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2800 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2801 &quot;A String&quot;,
2802 ],
2803 &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.
2804 },
2805 &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.
2806 { # Layer holds metadata specific to a layer of a Docker image.
2807 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2808 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2809 },
2810 ],
2811 },
2812 },
2813 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2814 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
2815 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2816 &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.
2817 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2818 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2819 {
2820 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2821 },
2822 ],
2823 &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.
2824 },
2825 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2826 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
2827 },
2828 },
2829 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2830 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2831 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2832 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2833 &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.
2834 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2835 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2836 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002837 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002838 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2839 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2840 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2841 },
2842 },
2843 ],
2844 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002845 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002846 },
2847 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002848 &quot;signatures&quot;: [
2849 { # A signature object consists of the KeyID used and the signature itself.
2850 &quot;keyid&quot;: &quot;A String&quot;,
2851 &quot;sig&quot;: &quot;A String&quot;,
2852 },
2853 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002854 &quot;signed&quot;: { # This corresponds to an in-toto link.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002855 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002856 &quot;customValues&quot;: {
2857 &quot;a_key&quot;: &quot;A String&quot;,
2858 },
2859 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002860 &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;]
2861 &quot;A String&quot;,
2862 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002863 &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; } }
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002864 &quot;customValues&quot;: {
2865 &quot;a_key&quot;: &quot;A String&quot;,
2866 },
2867 },
2868 &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;, : } } ]
2869 {
2870 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2871 &quot;sha256&quot;: &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002872 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002873 &quot;resourceUri&quot;: &quot;A String&quot;,
2874 },
2875 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002876 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2877 {
2878 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2879 &quot;sha256&quot;: &quot;A String&quot;,
2880 },
2881 &quot;resourceUri&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002882 },
2883 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002884 },
2885 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002886 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002887 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002888 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002889 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002890 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2891 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002892 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002893 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002894 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002895 &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;.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002896 &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.
2897 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002898 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
2899 &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
2900 &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
2901 &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
2902 &quot;A String&quot;,
2903 ],
2904 &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
2905 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2906 &quot;A String&quot;,
2907 ],
2908 &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
2909 &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
2910 &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
2911 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2912 },
2913 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2914 &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
2915 &quot;A String&quot;,
2916 ],
2917 &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
2918 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2919 &quot;A String&quot;,
2920 ],
2921 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2922 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2923 &quot;A String&quot;,
2924 ],
2925 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2926 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2927 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2928 &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
2929 },
2930 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2931 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2932 &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
2933 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2934 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2935 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2936 &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
2937 },
2938 &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.
2939 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2940 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2941 &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
2942 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2943 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002944 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2945 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
2946 &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.
2947 &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.
2948 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2949 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2950 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2951 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
2952 &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.
2953 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2954 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2955 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002956 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002957 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2958 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2959 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2960 },
2961 },
2962 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
2963 &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.
2964 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2965 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2966 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002967 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002968 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2969 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2970 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2971 },
2972 },
2973 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
2974 },
2975 ],
2976 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2977 { # Metadata for any related URL information.
2978 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2979 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2980 },
2981 ],
2982 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2983 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2984 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002985 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002986}
2987
2988 updateMask: string, The fields to update.
2989 x__xgafv: string, V1 error format.
2990 Allowed values
2991 1 - v1 error format
2992 2 - v2 error format
2993
2994Returns:
2995 An object of the form:
2996
2997 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002998 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2999 &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.
3000 &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.
3001 &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).
3002 &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`.
3003 &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.
3004 { # 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).
3005 &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;
3006 &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.
3007 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003008 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003009 },
3010 &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.
3011 &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).
3012 &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 attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
3013 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003014 },
3015 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003016 },
3017 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
3018 &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.
3019 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
3020 &quot;a_key&quot;: &quot;A String&quot;,
3021 },
3022 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3023 &quot;builtArtifacts&quot;: [ # Output of the build.
3024 { # Artifact describes a build product.
3025 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
3026 &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`.
3027 &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.
3028 &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003029 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003030 },
3031 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003032 &quot;commands&quot;: [ # Commands requested by the build.
3033 { # Command describes a step performed as part of the build pipeline.
3034 &quot;args&quot;: [ # Command-line arguments used when executing this command.
3035 &quot;A String&quot;,
3036 ],
3037 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
3038 &quot;env&quot;: [ # Environment variables set before running this command.
3039 &quot;A String&quot;,
3040 ],
3041 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
3042 &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`.
3043 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
3044 &quot;A String&quot;,
3045 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003046 },
3047 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003048 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
3049 &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.
3050 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3051 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
3052 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
3053 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3054 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3055 &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.
3056 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003057 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003058 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3059 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3060 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3061 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003062 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003063 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003064 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003065 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003066 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003067 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003068 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003069 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3070 },
3071 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003072 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003073 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003074 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003075 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003076 &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.
3077 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3078 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3079 },
3080 &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).
3081 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3082 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003083 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003084 &quot;labels&quot;: { # Labels with user defined metadata.
3085 &quot;a_key&quot;: &quot;A String&quot;,
3086 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003087 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003088 ],
3089 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
3090 &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.
3091 &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.
3092 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3093 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3094 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003095 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003096 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3097 &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.
3098 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3099 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3100 },
3101 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3102 },
3103 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003104 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003105 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3106 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3107 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3108 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3109 },
3110 &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.
3111 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3112 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3113 },
3114 &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).
3115 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
3116 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3117 },
3118 &quot;labels&quot;: { # Labels with user defined metadata.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003119 &quot;a_key&quot;: &quot;A String&quot;,
3120 },
3121 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003122 &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.
3123 &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.
3124 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
3125 { # Container message for hash values.
3126 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
3127 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3128 },
3129 ],
3130 },
3131 },
3132 },
3133 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3134 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
3135 },
3136 &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.
3137 },
3138 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
3139 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
3140 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
3141 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3142 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3143 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
3144 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3145 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3146 &quot;A String&quot;,
3147 ],
3148 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3149 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3150 },
3151 },
3152 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
3153 &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.
3154 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3155 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3156 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
3157 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
3158 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003159 &quot;A String&quot;,
3160 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003161 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003162 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003163 &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.
3164 { # Layer holds metadata specific to a layer of a Docker image.
3165 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3166 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003167 },
3168 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08003169 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003170 },
3171 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
3172 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
3173 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3174 &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.
3175 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3176 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3177 {
3178 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003179 },
3180 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003181 &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.
3182 },
3183 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3184 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
3185 },
3186 },
3187 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
3188 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
3189 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
3190 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
3191 &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.
3192 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3193 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
3194 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003195 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003196 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3197 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3198 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3199 },
3200 },
3201 ],
3202 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3203 },
3204 },
3205 &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.
3206 &quot;signatures&quot;: [
3207 { # A signature object consists of the KeyID used and the signature itself.
3208 &quot;keyid&quot;: &quot;A String&quot;,
3209 &quot;sig&quot;: &quot;A String&quot;,
3210 },
3211 ],
3212 &quot;signed&quot;: { # This corresponds to an in-toto link.
3213 &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.
3214 &quot;customValues&quot;: {
3215 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003216 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08003217 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003218 &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;]
3219 &quot;A String&quot;,
3220 ],
3221 &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; } }
3222 &quot;customValues&quot;: {
3223 &quot;a_key&quot;: &quot;A String&quot;,
3224 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003226 &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;, : } } ]
3227 {
3228 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
3229 &quot;sha256&quot;: &quot;A String&quot;,
3230 },
3231 &quot;resourceUri&quot;: &quot;A String&quot;,
3232 },
3233 ],
3234 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
3235 {
3236 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
3237 &quot;sha256&quot;: &quot;A String&quot;,
3238 },
3239 &quot;resourceUri&quot;: &quot;A String&quot;,
3240 },
3241 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003242 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003243 },
3244 &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.
3245 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
3246 &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.
3247 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
3248 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
3249 &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.
3250 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
3251 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
3252 },
3253 &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;.
3254 &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.
3255 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07003256 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific SPDX Document.
3257 &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
3258 &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
3259 &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
3260 &quot;A String&quot;,
3261 ],
3262 &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
3263 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3264 &quot;A String&quot;,
3265 ],
3266 &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
3267 &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
3268 &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
3269 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3270 },
3271 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3272 &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
3273 &quot;A String&quot;,
3274 ],
3275 &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
3276 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3277 &quot;A String&quot;,
3278 ],
3279 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3280 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3281 &quot;A String&quot;,
3282 ],
3283 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3284 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
3285 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
3286 &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
3287 },
3288 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3289 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3290 &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
3291 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3292 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
3293 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
3294 &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
3295 },
3296 &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.
3297 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3298 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3299 &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
3300 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
3301 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003302 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
3303 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
3304 &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.
3305 &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.
3306 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
3307 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
3308 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3309 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
3310 &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.
3311 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3312 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3313 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003314 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003315 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3316 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3317 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3318 },
3319 },
3320 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
3321 &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.
3322 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
3323 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
3324 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003325 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003326 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
3327 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
3328 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3329 },
3330 },
3331 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
3332 },
3333 ],
3334 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
3335 { # Metadata for any related URL information.
3336 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
3337 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
3338 },
3339 ],
3340 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3341 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
3342 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
3343 },
3344}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003345</div>
3346
3347<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003348 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003349 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003350
3351Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003352 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003353 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003354 The object takes the form of:
3355
3356{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003357 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
3358 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3359 { # Associates `members` with a `role`.
3360 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3361 &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.
3362 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3363 &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.
3364 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003365 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003366 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3367 &quot;A String&quot;,
3368 ],
3369 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3370 },
3371 ],
3372 &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.
3373 &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).
3374 },
3375}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003376
3377 x__xgafv: string, V1 error format.
3378 Allowed values
3379 1 - v1 error format
3380 2 - v2 error format
3381
3382Returns:
3383 An object of the form:
3384
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003385 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003386 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3387 { # Associates `members` with a `role`.
3388 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3389 &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.
3390 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3391 &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.
3392 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003393 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003394 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3395 &quot;A String&quot;,
3396 ],
3397 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3398 },
3399 ],
3400 &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.
3401 &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).
3402}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003403</div>
3404
3405<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003406 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003407 <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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003408
3409Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003410 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003411 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003412 The object takes the form of:
3413
3414{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003415 &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).
3416 &quot;A String&quot;,
3417 ],
3418}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003419
3420 x__xgafv: string, V1 error format.
3421 Allowed values
3422 1 - v1 error format
3423 2 - v2 error format
3424
3425Returns:
3426 An object of the form:
3427
3428 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003429 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3430 &quot;A String&quot;,
3431 ],
3432}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003433</div>
3434
3435</body></html>