blob: 531a5100ded5effed236dec3cee4324f88fe344a [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.notes.html">notes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="containeranalysis_v1beta1.projects.notes.occurrences.html">occurrences()</a></code>
79</p>
80<p class="firstline">Returns the occurrences Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates new notes in batch.</p>
85<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070086 <code><a href="#close">close()</a></code></p>
87<p class="firstline">Close httplib2 connections.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#create">create(parent, body=None, noteId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Creates a new note.</p>
91<p class="toc_element">
92 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Deletes the specified note.</p>
94<p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96<p class="firstline">Gets the specified note.</p>
97<p class="toc_element">
98 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<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 -0700100<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800101 <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 -0700102<p class="firstline">Lists notes for the specified project.</p>
103<p class="toc_element">
104 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
105<p class="firstline">Retrieves the next page of results.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Updates the specified note.</p>
109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<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 -0700112<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114<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 -0700115<h3>Method Details</h3>
116<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 <pre>Creates new notes in batch.
119
120Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 The object takes the form of:
124
125{ # Request to create notes in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800126 &quot;notes&quot;: { # Required. The notes to create, the key is expected to be the note ID. Max allowed length is 1000.
127 &quot;a_key&quot;: { # A type of analysis that can be done for a resource.
128 &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.
129 &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.
130 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
131 },
132 },
133 &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.
134 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
135 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
136 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
137 &quot;A String&quot;,
138 ],
139 &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.
140 },
141 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
142 },
143 &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.
144 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
145 &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.
146 &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).
147 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
148 &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`
149 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
150 },
151 },
152 &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.
153 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
154 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800155 &quot;A String&quot;,
156 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 },
158 &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.
159 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
160 },
161 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
162 &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.
163 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
164 &quot;A String&quot;,
165 ],
166 &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.
167 { # Defines an object to declare an in-toto artifact rule
168 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800169 &quot;A String&quot;,
170 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800171 },
172 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;expectedProducts&quot;: [
174 { # Defines an object to declare an in-toto artifact rule
175 &quot;artifactRule&quot;: [
176 &quot;A String&quot;,
177 ],
178 },
179 ],
180 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
181 { # 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.
182 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
183 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
184 &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;.
185 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
186 },
187 ],
188 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
189 &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.
190 },
191 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
192 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
193 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
194 &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.
195 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
196 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
197 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
198 &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.
199 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
200 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
201 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800202 &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 -0800203 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
204 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
205 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
206 },
207 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
208 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
209 },
210 ],
211 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
212 },
213 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
214 &quot;A String&quot;,
215 ],
216 &quot;relatedUrl&quot;: [ # URLs associated with this note.
217 { # Metadata for any related URL information.
218 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
219 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
220 },
221 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700222 &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.
223 &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;)
224 &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
225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800226 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700227 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
228 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
229 &quot;A String&quot;,
230 ],
231 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
232 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
233 },
234 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
235 &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
236 &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
237 &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
238 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
239 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
240 &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
241 &quot;externalRefs&quot;: [ # ExternalRef
242 { # 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
243 &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
244 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
245 &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
246 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
247 },
248 ],
249 &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
250 &quot;A String&quot;,
251 ],
252 &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
253 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
254 &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
255 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
256 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
257 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
258 &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
259 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
260 },
261 &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.
262 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800263 &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.
264 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
265 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
266 &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.
267 &quot;attackComplexity&quot;: &quot;A String&quot;,
268 &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.
269 &quot;availabilityImpact&quot;: &quot;A String&quot;,
270 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
271 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
272 &quot;exploitabilityScore&quot;: 3.14,
273 &quot;impactScore&quot;: 3.14,
274 &quot;integrityImpact&quot;: &quot;A String&quot;,
275 &quot;privilegesRequired&quot;: &quot;A String&quot;,
276 &quot;scope&quot;: &quot;A String&quot;,
277 &quot;userInteraction&quot;: &quot;A String&quot;,
278 },
279 &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.
280 { # 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
281 &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.
282 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
283 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
284 &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.
285 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
286 &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 -0800287 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800288 &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 -0800289 &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 -0800290 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
291 &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 -0800292 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800294 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
295 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
296 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800297 &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 -0800298 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
299 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
300 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
301 },
302 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
303 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800304 &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 -0800305 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
306 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
307 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
308 },
309 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
310 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
311 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800312 &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 -0800313 &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 -0700314 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800315 },
316 ],
317 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
318 &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.
319 &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.
320 {
321 &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.
322 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
323 &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.
324 {
325 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
326 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
327 },
328 ],
329 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
330 },
331 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800332 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700333 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800334 },
335}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700336
337 x__xgafv: string, V1 error format.
338 Allowed values
339 1 - v1 error format
340 2 - v2 error format
341
342Returns:
343 An object of the form:
344
345 { # Response for creating notes in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800346 &quot;notes&quot;: [ # The notes that were created.
347 { # A type of analysis that can be done for a resource.
348 &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.
349 &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.
350 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
351 },
352 },
353 &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.
354 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
355 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
356 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
357 &quot;A String&quot;,
358 ],
359 &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.
360 },
361 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
362 },
363 &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.
364 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
365 &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.
366 &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).
367 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
368 &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`
369 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
370 },
371 },
372 &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.
373 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
374 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800375 &quot;A String&quot;,
376 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800377 },
378 &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.
379 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
380 },
381 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
382 &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.
383 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
384 &quot;A String&quot;,
385 ],
386 &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.
387 { # Defines an object to declare an in-toto artifact rule
388 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800389 &quot;A String&quot;,
390 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800391 },
392 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800393 &quot;expectedProducts&quot;: [
394 { # Defines an object to declare an in-toto artifact rule
395 &quot;artifactRule&quot;: [
396 &quot;A String&quot;,
397 ],
398 },
399 ],
400 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
401 { # 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.
402 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
403 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
404 &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;.
405 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
406 },
407 ],
408 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
409 &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.
410 },
411 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
412 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
413 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
414 &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.
415 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
416 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
417 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
418 &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.
419 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
420 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
421 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800422 &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 -0800423 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
424 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
425 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
426 },
427 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
428 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
429 },
430 ],
431 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
432 },
433 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
434 &quot;A String&quot;,
435 ],
436 &quot;relatedUrl&quot;: [ # URLs associated with this note.
437 { # Metadata for any related URL information.
438 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
439 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
440 },
441 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700442 &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.
443 &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;)
444 &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
445 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800446 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700447 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
448 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
449 &quot;A String&quot;,
450 ],
451 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
452 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
453 },
454 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
455 &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
456 &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
457 &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
458 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
459 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
460 &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
461 &quot;externalRefs&quot;: [ # ExternalRef
462 { # 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
463 &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
464 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
465 &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
466 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
467 },
468 ],
469 &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
470 &quot;A String&quot;,
471 ],
472 &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
473 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
474 &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
475 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
476 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
477 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
478 &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
479 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
480 },
481 &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.
482 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800483 &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.
484 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
485 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
486 &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.
487 &quot;attackComplexity&quot;: &quot;A String&quot;,
488 &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.
489 &quot;availabilityImpact&quot;: &quot;A String&quot;,
490 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
491 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
492 &quot;exploitabilityScore&quot;: 3.14,
493 &quot;impactScore&quot;: 3.14,
494 &quot;integrityImpact&quot;: &quot;A String&quot;,
495 &quot;privilegesRequired&quot;: &quot;A String&quot;,
496 &quot;scope&quot;: &quot;A String&quot;,
497 &quot;userInteraction&quot;: &quot;A String&quot;,
498 },
499 &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.
500 { # 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
501 &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.
502 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
503 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
504 &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.
505 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
506 &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 -0800507 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800508 &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 -0800509 &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 -0800510 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
511 &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 -0800512 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800513 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800514 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
515 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
516 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800517 &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 -0800518 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
519 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
520 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
521 },
522 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
523 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800524 &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 -0800525 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
526 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
527 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
528 },
529 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
530 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
531 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800532 &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 -0800533 &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 -0700534 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800535 },
536 ],
537 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
538 &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.
539 &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.
540 {
541 &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.
542 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
543 &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.
544 {
545 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
546 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
547 },
548 ],
549 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
550 },
551 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800552 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 },
554 ],
555}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556</div>
557
558<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700559 <code class="details" id="close">close()</code>
560 <pre>Close httplib2 connections.</pre>
561</div>
562
563<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700564 <code class="details" id="create">create(parent, body=None, noteId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700565 <pre>Creates a new note.
566
567Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700568 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700569 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700570 The object takes the form of:
571
572{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800573 &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.
574 &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.
575 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
576 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800577 },
578 &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.
579 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
580 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
581 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
582 &quot;A String&quot;,
583 ],
584 &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.
585 },
586 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
587 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800588 &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.
589 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
590 &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.
591 &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).
592 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
593 &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`
594 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
595 },
596 },
597 &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.
598 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
599 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
600 &quot;A String&quot;,
601 ],
602 },
603 &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.
604 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
605 },
606 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
607 &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.
608 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
609 &quot;A String&quot;,
610 ],
611 &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.
612 { # Defines an object to declare an in-toto artifact rule
613 &quot;artifactRule&quot;: [
614 &quot;A String&quot;,
615 ],
616 },
617 ],
618 &quot;expectedProducts&quot;: [
619 { # Defines an object to declare an in-toto artifact rule
620 &quot;artifactRule&quot;: [
621 &quot;A String&quot;,
622 ],
623 },
624 ],
625 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
626 { # 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.
627 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
628 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
629 &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;.
630 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
631 },
632 ],
633 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
634 &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.
635 },
636 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
637 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
638 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
639 &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.
640 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
641 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
642 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
643 &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.
644 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
645 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
646 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800647 &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 -0800648 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
649 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
650 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
651 },
652 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
653 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
654 },
655 ],
656 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
657 },
658 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
659 &quot;A String&quot;,
660 ],
661 &quot;relatedUrl&quot;: [ # URLs associated with this note.
662 { # Metadata for any related URL information.
663 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
664 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
665 },
666 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700667 &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.
668 &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;)
669 &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
670 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700672 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
673 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
674 &quot;A String&quot;,
675 ],
676 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
677 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
678 },
679 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
680 &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
681 &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
682 &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
683 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
684 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
685 &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
686 &quot;externalRefs&quot;: [ # ExternalRef
687 { # 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
688 &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
689 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
690 &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
691 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
692 },
693 ],
694 &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
695 &quot;A String&quot;,
696 ],
697 &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
698 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
699 &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
700 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
701 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
702 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
703 &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
704 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
705 },
706 &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.
707 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800708 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800709 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800710 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800711 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800712 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800713 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800714 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800715 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
716 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800717 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800718 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800719 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800720 &quot;privilegesRequired&quot;: &quot;A String&quot;,
721 &quot;scope&quot;: &quot;A String&quot;,
722 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800723 },
724 &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.
725 { # 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
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800726 &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.
727 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800728 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
729 &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.
730 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
731 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
732 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800733 &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 -0800734 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
735 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
736 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
737 },
738 },
739 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
740 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
741 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800742 &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 -0800743 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
744 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
745 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
746 },
747 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
748 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800749 &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 -0800750 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
751 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
752 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
753 },
754 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
755 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
756 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800757 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800758 &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 -0700759 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800760 },
761 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800762 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800763 &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.
764 &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.
765 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800766 &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.
767 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800768 &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.
769 {
770 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
771 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
772 },
773 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800774 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
775 },
776 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800777 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800778}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779
Dan O'Mearadd494642020-05-01 07:42:23 -0700780 noteId: string, Required. The ID to use for this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700781 x__xgafv: string, V1 error format.
782 Allowed values
783 1 - v1 error format
784 2 - v2 error format
785
786Returns:
787 An object of the form:
788
789 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800790 &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.
791 &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.
792 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
793 },
794 },
795 &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.
796 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
797 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
798 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
799 &quot;A String&quot;,
800 ],
801 &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.
802 },
803 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
804 },
805 &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.
806 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
807 &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.
808 &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).
809 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
810 &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`
811 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
812 },
813 },
814 &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.
815 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
816 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800817 &quot;A String&quot;,
818 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800819 },
820 &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.
821 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
822 },
823 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
824 &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.
825 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
826 &quot;A String&quot;,
827 ],
828 &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.
829 { # Defines an object to declare an in-toto artifact rule
830 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800831 &quot;A String&quot;,
832 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800833 },
834 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800835 &quot;expectedProducts&quot;: [
836 { # Defines an object to declare an in-toto artifact rule
837 &quot;artifactRule&quot;: [
838 &quot;A String&quot;,
839 ],
840 },
841 ],
842 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
843 { # 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.
844 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
845 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
846 &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;.
847 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
848 },
849 ],
850 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
851 &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.
852 },
853 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
854 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
855 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
856 &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.
857 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
858 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
859 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
860 &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.
861 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
862 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
863 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800864 &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 -0800865 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
866 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
867 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
868 },
869 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
870 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
871 },
872 ],
873 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
874 },
875 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
876 &quot;A String&quot;,
877 ],
878 &quot;relatedUrl&quot;: [ # URLs associated with this note.
879 { # Metadata for any related URL information.
880 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
881 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
882 },
883 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700884 &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.
885 &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;)
886 &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
887 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800888 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700889 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
890 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
891 &quot;A String&quot;,
892 ],
893 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
894 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
895 },
896 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
897 &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
898 &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
899 &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
900 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
901 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
902 &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
903 &quot;externalRefs&quot;: [ # ExternalRef
904 { # 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
905 &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
906 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
907 &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
908 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
909 },
910 ],
911 &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
912 &quot;A String&quot;,
913 ],
914 &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
915 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
916 &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
917 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
918 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
919 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
920 &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
921 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
922 },
923 &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.
924 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800925 &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.
926 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
927 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
928 &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.
929 &quot;attackComplexity&quot;: &quot;A String&quot;,
930 &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.
931 &quot;availabilityImpact&quot;: &quot;A String&quot;,
932 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
933 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
934 &quot;exploitabilityScore&quot;: 3.14,
935 &quot;impactScore&quot;: 3.14,
936 &quot;integrityImpact&quot;: &quot;A String&quot;,
937 &quot;privilegesRequired&quot;: &quot;A String&quot;,
938 &quot;scope&quot;: &quot;A String&quot;,
939 &quot;userInteraction&quot;: &quot;A String&quot;,
940 },
941 &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.
942 { # 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
943 &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.
944 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
945 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
946 &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.
947 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
948 &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 -0800949 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800950 &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 -0800951 &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 -0800952 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
953 &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 -0800954 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800955 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800956 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
957 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
958 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800959 &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 -0800960 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
961 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
962 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
963 },
964 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
965 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800966 &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 -0800967 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
968 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
969 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
970 },
971 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
972 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
973 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800974 &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 -0800975 &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 -0700976 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800977 },
978 ],
979 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
980 &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.
981 &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.
982 {
983 &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.
984 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
985 &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.
986 {
987 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
988 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
989 },
990 ],
991 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
992 },
993 ],
994 },
995}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700996</div>
997
998<div class="method">
999 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1000 <pre>Deletes the specified note.
1001
1002Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001003 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001004 x__xgafv: string, V1 error format.
1005 Allowed values
1006 1 - v1 error format
1007 2 - v2 error format
1008
1009Returns:
1010 An object of the form:
1011
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001012 { # 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 -08001013}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001014</div>
1015
1016<div class="method">
1017 <code class="details" id="get">get(name, x__xgafv=None)</code>
1018 <pre>Gets the specified note.
1019
1020Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001021 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001022 x__xgafv: string, V1 error format.
1023 Allowed values
1024 1 - v1 error format
1025 2 - v2 error format
1026
1027Returns:
1028 An object of the form:
1029
1030 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001031 &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.
1032 &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.
1033 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1034 },
1035 },
1036 &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.
1037 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1038 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1039 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1040 &quot;A String&quot;,
1041 ],
1042 &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.
1043 },
1044 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1045 },
1046 &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.
1047 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1048 &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.
1049 &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).
1050 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1051 &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`
1052 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1053 },
1054 },
1055 &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.
1056 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1057 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001058 &quot;A String&quot;,
1059 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001060 },
1061 &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.
1062 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1063 },
1064 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1065 &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.
1066 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1067 &quot;A String&quot;,
1068 ],
1069 &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.
1070 { # Defines an object to declare an in-toto artifact rule
1071 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001072 &quot;A String&quot;,
1073 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001074 },
1075 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001076 &quot;expectedProducts&quot;: [
1077 { # Defines an object to declare an in-toto artifact rule
1078 &quot;artifactRule&quot;: [
1079 &quot;A String&quot;,
1080 ],
1081 },
1082 ],
1083 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1084 { # 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.
1085 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1086 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1087 &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;.
1088 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1089 },
1090 ],
1091 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1092 &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.
1093 },
1094 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1095 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1096 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1097 &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.
1098 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1099 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1100 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1101 &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.
1102 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1103 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1104 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001105 &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 -08001106 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1107 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1108 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1109 },
1110 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1111 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1112 },
1113 ],
1114 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1115 },
1116 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1117 &quot;A String&quot;,
1118 ],
1119 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1120 { # Metadata for any related URL information.
1121 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1122 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1123 },
1124 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001125 &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.
1126 &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;)
1127 &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
1128 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001129 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001130 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
1131 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1132 &quot;A String&quot;,
1133 ],
1134 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1135 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1136 },
1137 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
1138 &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
1139 &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
1140 &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
1141 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1142 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1143 &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
1144 &quot;externalRefs&quot;: [ # ExternalRef
1145 { # 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
1146 &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
1147 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1148 &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
1149 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1150 },
1151 ],
1152 &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
1153 &quot;A String&quot;,
1154 ],
1155 &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
1156 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1157 &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
1158 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1159 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1160 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1161 &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
1162 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1163 },
1164 &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.
1165 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001166 &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.
1167 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1168 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1169 &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.
1170 &quot;attackComplexity&quot;: &quot;A String&quot;,
1171 &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.
1172 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1173 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1174 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1175 &quot;exploitabilityScore&quot;: 3.14,
1176 &quot;impactScore&quot;: 3.14,
1177 &quot;integrityImpact&quot;: &quot;A String&quot;,
1178 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1179 &quot;scope&quot;: &quot;A String&quot;,
1180 &quot;userInteraction&quot;: &quot;A String&quot;,
1181 },
1182 &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.
1183 { # 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
1184 &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.
1185 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1186 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1187 &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.
1188 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1189 &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 -08001190 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001191 &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 -08001192 &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 -08001193 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1194 &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 -08001195 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001196 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001197 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1198 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1199 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001200 &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 -08001201 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1202 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1203 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1204 },
1205 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1206 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001207 &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 -08001208 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1209 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1210 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1211 },
1212 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1213 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1214 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001215 &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 -08001216 &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 -07001217 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001218 },
1219 ],
1220 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1221 &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.
1222 &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.
1223 {
1224 &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.
1225 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1226 &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.
1227 {
1228 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1229 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1230 },
1231 ],
1232 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1233 },
1234 ],
1235 },
1236}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001237</div>
1238
1239<div class="method">
1240 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001241 <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 -07001242
1243Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001244 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 -07001245 body: object, The request body.
1246 The object takes the form of:
1247
1248{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001249 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1250 &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).
1251 },
1252}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253
1254 x__xgafv: string, V1 error format.
1255 Allowed values
1256 1 - v1 error format
1257 2 - v2 error format
1258
1259Returns:
1260 An object of the form:
1261
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001262 { # 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 -08001263 &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.
1264 { # Associates `members` with a `role`.
1265 &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).
1266 &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.
1267 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1268 &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.
1269 &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 -07001270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001271 &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`.
1272 &quot;A String&quot;,
1273 ],
1274 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1275 },
1276 ],
1277 &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.
1278 &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).
1279}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001280</div>
1281
1282<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001283 <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 -07001284 <pre>Lists notes for the specified project.
1285
1286Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001287 parent: string, Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001288 filter: string, The filter expression.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001289 pageSize: integer, Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001290 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 x__xgafv: string, V1 error format.
1292 Allowed values
1293 1 - v1 error format
1294 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001295
1296Returns:
1297 An object of the form:
1298
1299 { # Response for listing notes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001300 &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.
1301 &quot;notes&quot;: [ # The notes requested.
1302 { # A type of analysis that can be done for a resource.
1303 &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.
1304 &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.
1305 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1306 },
1307 },
1308 &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.
1309 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1310 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1311 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1312 &quot;A String&quot;,
1313 ],
1314 &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.
1315 },
1316 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1317 },
1318 &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.
1319 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1320 &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.
1321 &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).
1322 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1323 &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`
1324 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1325 },
1326 },
1327 &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.
1328 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1329 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001330 &quot;A String&quot;,
1331 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001332 },
1333 &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.
1334 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1335 },
1336 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1337 &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.
1338 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1339 &quot;A String&quot;,
1340 ],
1341 &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.
1342 { # Defines an object to declare an in-toto artifact rule
1343 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001344 &quot;A String&quot;,
1345 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001346 },
1347 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001348 &quot;expectedProducts&quot;: [
1349 { # Defines an object to declare an in-toto artifact rule
1350 &quot;artifactRule&quot;: [
1351 &quot;A String&quot;,
1352 ],
1353 },
1354 ],
1355 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1356 { # 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.
1357 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1358 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1359 &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;.
1360 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1361 },
1362 ],
1363 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1364 &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.
1365 },
1366 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1367 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1368 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1369 &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.
1370 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1371 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1372 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1373 &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.
1374 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1375 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1376 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001377 &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 -08001378 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1379 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1380 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1381 },
1382 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1383 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1384 },
1385 ],
1386 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1387 },
1388 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1389 &quot;A String&quot;,
1390 ],
1391 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1392 { # Metadata for any related URL information.
1393 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1394 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1395 },
1396 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001397 &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.
1398 &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;)
1399 &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
1400 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001401 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001402 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
1403 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1404 &quot;A String&quot;,
1405 ],
1406 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1407 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1408 },
1409 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
1410 &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
1411 &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
1412 &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
1413 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1414 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1415 &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
1416 &quot;externalRefs&quot;: [ # ExternalRef
1417 { # 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
1418 &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
1419 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1420 &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
1421 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1422 },
1423 ],
1424 &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
1425 &quot;A String&quot;,
1426 ],
1427 &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
1428 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1429 &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
1430 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1431 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1432 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1433 &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
1434 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1435 },
1436 &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.
1437 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001438 &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.
1439 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1440 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1441 &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.
1442 &quot;attackComplexity&quot;: &quot;A String&quot;,
1443 &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.
1444 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1445 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1446 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1447 &quot;exploitabilityScore&quot;: 3.14,
1448 &quot;impactScore&quot;: 3.14,
1449 &quot;integrityImpact&quot;: &quot;A String&quot;,
1450 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1451 &quot;scope&quot;: &quot;A String&quot;,
1452 &quot;userInteraction&quot;: &quot;A String&quot;,
1453 },
1454 &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.
1455 { # 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
1456 &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.
1457 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1458 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1459 &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.
1460 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1461 &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 -08001462 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001463 &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 -08001464 &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 -08001465 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1466 &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 -08001467 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001468 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001469 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1470 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1471 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001472 &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 -08001473 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1474 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1475 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1476 },
1477 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1478 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001479 &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 -08001480 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1481 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1482 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1483 },
1484 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1485 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1486 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001487 &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 -08001488 &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 -07001489 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001490 },
1491 ],
1492 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1493 &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.
1494 &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.
1495 {
1496 &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.
1497 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1498 &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.
1499 {
1500 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1501 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1502 },
1503 ],
1504 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1505 },
1506 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001507 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001508 },
1509 ],
1510}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001511</div>
1512
1513<div class="method">
1514 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1515 <pre>Retrieves the next page of results.
1516
1517Args:
1518 previous_request: The request for the previous page. (required)
1519 previous_response: The response from the request for the previous page. (required)
1520
1521Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001522 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001523 page. Returns None if there are no more items in the collection.
1524 </pre>
1525</div>
1526
1527<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001528 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001529 <pre>Updates the specified note.
1530
1531Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001532 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001533 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001534 The object takes the form of:
1535
1536{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001537 &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.
1538 &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.
1539 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1540 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001541 },
1542 &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.
1543 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1544 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1545 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1546 &quot;A String&quot;,
1547 ],
1548 &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.
1549 },
1550 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1551 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001552 &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.
1553 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1554 &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.
1555 &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).
1556 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1557 &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`
1558 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1559 },
1560 },
1561 &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.
1562 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1563 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1564 &quot;A String&quot;,
1565 ],
1566 },
1567 &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.
1568 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1569 },
1570 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1571 &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.
1572 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1573 &quot;A String&quot;,
1574 ],
1575 &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.
1576 { # Defines an object to declare an in-toto artifact rule
1577 &quot;artifactRule&quot;: [
1578 &quot;A String&quot;,
1579 ],
1580 },
1581 ],
1582 &quot;expectedProducts&quot;: [
1583 { # Defines an object to declare an in-toto artifact rule
1584 &quot;artifactRule&quot;: [
1585 &quot;A String&quot;,
1586 ],
1587 },
1588 ],
1589 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1590 { # 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.
1591 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1592 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1593 &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;.
1594 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1595 },
1596 ],
1597 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1598 &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.
1599 },
1600 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1601 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1602 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1603 &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.
1604 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1605 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1606 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1607 &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.
1608 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1609 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1610 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001611 &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 -08001612 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1613 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1614 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1615 },
1616 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1617 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1618 },
1619 ],
1620 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1621 },
1622 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1623 &quot;A String&quot;,
1624 ],
1625 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1626 { # Metadata for any related URL information.
1627 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1628 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1629 },
1630 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001631 &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.
1632 &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;)
1633 &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
1634 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001635 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001636 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
1637 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1638 &quot;A String&quot;,
1639 ],
1640 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1641 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1642 },
1643 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
1644 &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
1645 &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
1646 &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
1647 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1648 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1649 &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
1650 &quot;externalRefs&quot;: [ # ExternalRef
1651 { # 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
1652 &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
1653 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1654 &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
1655 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1656 },
1657 ],
1658 &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
1659 &quot;A String&quot;,
1660 ],
1661 &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
1662 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1663 &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
1664 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1665 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1666 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1667 &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
1668 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1669 },
1670 &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.
1671 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001672 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001673 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001674 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001675 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001676 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001677 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001678 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001679 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1680 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001681 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001682 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001683 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001684 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1685 &quot;scope&quot;: &quot;A String&quot;,
1686 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001687 },
1688 &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.
1689 { # 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
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001690 &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.
1691 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001692 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1693 &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.
1694 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1695 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1696 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001697 &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 -08001698 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1699 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1700 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1701 },
1702 },
1703 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1704 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1705 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001706 &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 -08001707 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1708 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1709 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1710 },
1711 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1712 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001713 &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 -08001714 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1715 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1716 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1717 },
1718 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1719 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1720 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001721 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001722 &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 -07001723 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001724 },
1725 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001726 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001727 &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.
1728 &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.
1729 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001730 &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.
1731 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001732 &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.
1733 {
1734 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1735 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1736 },
1737 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001738 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1739 },
1740 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001741 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001742}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001743
1744 updateMask: string, The fields to update.
1745 x__xgafv: string, V1 error format.
1746 Allowed values
1747 1 - v1 error format
1748 2 - v2 error format
1749
1750Returns:
1751 An object of the form:
1752
1753 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001754 &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.
1755 &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.
1756 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1757 },
1758 },
1759 &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.
1760 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1761 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1762 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1763 &quot;A String&quot;,
1764 ],
1765 &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.
1766 },
1767 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1768 },
1769 &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.
1770 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1771 &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.
1772 &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).
1773 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1774 &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`
1775 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1776 },
1777 },
1778 &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.
1779 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1780 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001781 &quot;A String&quot;,
1782 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001783 },
1784 &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.
1785 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1786 },
1787 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1788 &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.
1789 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1790 &quot;A String&quot;,
1791 ],
1792 &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.
1793 { # Defines an object to declare an in-toto artifact rule
1794 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001795 &quot;A String&quot;,
1796 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001797 },
1798 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001799 &quot;expectedProducts&quot;: [
1800 { # Defines an object to declare an in-toto artifact rule
1801 &quot;artifactRule&quot;: [
1802 &quot;A String&quot;,
1803 ],
1804 },
1805 ],
1806 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1807 { # 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.
1808 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1809 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1810 &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;.
1811 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1812 },
1813 ],
1814 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1815 &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.
1816 },
1817 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1818 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1819 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1820 &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.
1821 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1822 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1823 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1824 &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.
1825 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1826 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1827 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001828 &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 -08001829 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1830 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1831 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1832 },
1833 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1834 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1835 },
1836 ],
1837 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1838 },
1839 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1840 &quot;A String&quot;,
1841 ],
1842 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1843 { # Metadata for any related URL information.
1844 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1845 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1846 },
1847 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001848 &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.
1849 &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;)
1850 &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
1851 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001852 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001853 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing SPDX File.
1854 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1855 &quot;A String&quot;,
1856 ],
1857 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1858 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1859 },
1860 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing SPDX Package.
1861 &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
1862 &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
1863 &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
1864 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1865 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1866 &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
1867 &quot;externalRefs&quot;: [ # ExternalRef
1868 { # 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
1869 &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
1870 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1871 &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
1872 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1873 },
1874 ],
1875 &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
1876 &quot;A String&quot;,
1877 ],
1878 &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
1879 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1880 &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
1881 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1882 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1883 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1884 &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
1885 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1886 },
1887 &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.
1888 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001889 &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.
1890 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1891 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1892 &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.
1893 &quot;attackComplexity&quot;: &quot;A String&quot;,
1894 &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.
1895 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1896 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1897 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1898 &quot;exploitabilityScore&quot;: 3.14,
1899 &quot;impactScore&quot;: 3.14,
1900 &quot;integrityImpact&quot;: &quot;A String&quot;,
1901 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1902 &quot;scope&quot;: &quot;A String&quot;,
1903 &quot;userInteraction&quot;: &quot;A String&quot;,
1904 },
1905 &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.
1906 { # 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
1907 &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.
1908 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1909 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1910 &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.
1911 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1912 &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 -08001913 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001914 &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 -08001915 &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 -08001916 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1917 &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 -08001918 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001919 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001920 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1921 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1922 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001923 &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 -08001924 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1925 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1926 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1927 },
1928 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1929 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001930 &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 -08001931 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1932 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1933 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1934 },
1935 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1936 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1937 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001938 &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 -08001939 &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 -07001940 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001941 },
1942 ],
1943 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1944 &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.
1945 &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.
1946 {
1947 &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.
1948 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1949 &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.
1950 {
1951 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1952 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1953 },
1954 ],
1955 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1956 },
1957 ],
1958 },
1959}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001960</div>
1961
1962<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001963 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001964 <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 -07001965
1966Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001967 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 -07001968 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001969 The object takes the form of:
1970
1971{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001972 &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.
1973 &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.
1974 { # Associates `members` with a `role`.
1975 &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).
1976 &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.
1977 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1978 &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.
1979 &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 -07001980 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001981 &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`.
1982 &quot;A String&quot;,
1983 ],
1984 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1985 },
1986 ],
1987 &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.
1988 &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).
1989 },
1990}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001991
1992 x__xgafv: string, V1 error format.
1993 Allowed values
1994 1 - v1 error format
1995 2 - v2 error format
1996
1997Returns:
1998 An object of the form:
1999
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002000 { # 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 -08002001 &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.
2002 { # Associates `members` with a `role`.
2003 &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).
2004 &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.
2005 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2006 &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.
2007 &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 -07002008 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002009 &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`.
2010 &quot;A String&quot;,
2011 ],
2012 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2013 },
2014 ],
2015 &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.
2016 &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).
2017}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002018</div>
2019
2020<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002021 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002022 <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 -07002023
2024Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002025 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 -07002026 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002027 The object takes the form of:
2028
2029{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002030 &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).
2031 &quot;A String&quot;,
2032 ],
2033}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002034
2035 x__xgafv: string, V1 error format.
2036 Allowed values
2037 1 - v1 error format
2038 2 - v2 error format
2039
2040Returns:
2041 An object of the form:
2042
2043 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002044 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2045 &quot;A String&quot;,
2046 ],
2047}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002048</div>
2049
2050</body></html>