blob: 8c01cd700059989baad1d3a92c2dad76b94c6ecb [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-bot12d387c2021-10-26 00:24:32 -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 a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700223 &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-bot12d387c2021-10-26 00:24:32 -0700227 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700228 &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 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700234 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700235 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700253 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
254 &quot;comments&quot;: &quot;A String&quot;, # Comments
255 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
256 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700257 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700258 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700259 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
260 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
261 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
262 &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
263 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
264 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700265 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
266 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700267 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800268 &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.
269 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
270 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
271 &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.
272 &quot;attackComplexity&quot;: &quot;A String&quot;,
273 &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.
274 &quot;availabilityImpact&quot;: &quot;A String&quot;,
275 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
276 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
277 &quot;exploitabilityScore&quot;: 3.14,
278 &quot;impactScore&quot;: 3.14,
279 &quot;integrityImpact&quot;: &quot;A String&quot;,
280 &quot;privilegesRequired&quot;: &quot;A String&quot;,
281 &quot;scope&quot;: &quot;A String&quot;,
282 &quot;userInteraction&quot;: &quot;A String&quot;,
283 },
284 &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.
285 { # 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
286 &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.
287 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
288 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
289 &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.
290 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
291 &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 -0800292 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800293 &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 -0800294 &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 -0800295 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
296 &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 -0800297 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800299 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
300 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
301 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800302 &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 -0800303 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
304 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
305 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
306 },
307 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
308 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800309 &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 -0800310 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
311 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
312 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
313 },
314 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
315 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
316 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800317 &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 -0800318 &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 -0700319 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800320 },
321 ],
322 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
323 &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.
324 &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.
325 {
326 &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.
327 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
328 &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.
329 {
330 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
331 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
332 },
333 ],
334 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
335 },
336 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800337 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800339 },
340}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341
342 x__xgafv: string, V1 error format.
343 Allowed values
344 1 - v1 error format
345 2 - v2 error format
346
347Returns:
348 An object of the form:
349
350 { # Response for creating notes in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800351 &quot;notes&quot;: [ # The notes that were created.
352 { # A type of analysis that can be done for a resource.
353 &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.
354 &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.
355 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
356 },
357 },
358 &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.
359 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
360 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
361 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
362 &quot;A String&quot;,
363 ],
364 &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.
365 },
366 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
367 },
368 &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.
369 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
370 &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.
371 &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).
372 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
373 &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`
374 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
375 },
376 },
377 &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.
378 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
379 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800380 &quot;A String&quot;,
381 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800382 },
383 &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.
384 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
385 },
386 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
387 &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.
388 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
389 &quot;A String&quot;,
390 ],
391 &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.
392 { # Defines an object to declare an in-toto artifact rule
393 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800394 &quot;A String&quot;,
395 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800396 },
397 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800398 &quot;expectedProducts&quot;: [
399 { # Defines an object to declare an in-toto artifact rule
400 &quot;artifactRule&quot;: [
401 &quot;A String&quot;,
402 ],
403 },
404 ],
405 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
406 { # 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.
407 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
408 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
409 &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;.
410 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
411 },
412 ],
413 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
414 &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.
415 },
416 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
417 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
418 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
419 &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.
420 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
421 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
422 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
423 &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.
424 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
425 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
426 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800427 &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 -0800428 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
429 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
430 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
431 },
432 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
433 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
434 },
435 ],
436 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
437 },
438 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
439 &quot;A String&quot;,
440 ],
441 &quot;relatedUrl&quot;: [ # URLs associated with this note.
442 { # Metadata for any related URL information.
443 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
444 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
445 },
446 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700447 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700448 &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;)
449 &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
450 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800451 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700452 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700453 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
454 &quot;A String&quot;,
455 ],
456 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
457 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
458 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700459 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700460 &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
461 &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
462 &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
463 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
464 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
465 &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
466 &quot;externalRefs&quot;: [ # ExternalRef
467 { # 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
468 &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
469 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
470 &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
471 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
472 },
473 ],
474 &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
475 &quot;A String&quot;,
476 ],
477 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700478 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
479 &quot;comments&quot;: &quot;A String&quot;, # Comments
480 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
481 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700482 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700483 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700484 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
485 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
486 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
487 &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
488 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
489 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700490 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
491 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700492 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800493 &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.
494 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
495 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
496 &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.
497 &quot;attackComplexity&quot;: &quot;A String&quot;,
498 &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.
499 &quot;availabilityImpact&quot;: &quot;A String&quot;,
500 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
501 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
502 &quot;exploitabilityScore&quot;: 3.14,
503 &quot;impactScore&quot;: 3.14,
504 &quot;integrityImpact&quot;: &quot;A String&quot;,
505 &quot;privilegesRequired&quot;: &quot;A String&quot;,
506 &quot;scope&quot;: &quot;A String&quot;,
507 &quot;userInteraction&quot;: &quot;A String&quot;,
508 },
509 &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.
510 { # 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
511 &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.
512 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
513 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
514 &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.
515 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
516 &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 -0800517 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800518 &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 -0800519 &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 -0800520 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
521 &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 -0800522 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800523 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800524 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
525 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
526 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800527 &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 -0800528 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
529 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
530 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
531 },
532 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
533 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800534 &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 -0800535 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
536 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
537 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
538 },
539 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
540 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
541 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800542 &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 -0800543 &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 -0700544 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 },
546 ],
547 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
548 &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.
549 &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.
550 {
551 &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.
552 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
553 &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.
554 {
555 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
556 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
557 },
558 ],
559 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
560 },
561 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800562 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800563 },
564 ],
565}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566</div>
567
568<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 <code class="details" id="close">close()</code>
570 <pre>Close httplib2 connections.</pre>
571</div>
572
573<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700574 <code class="details" id="create">create(parent, body=None, noteId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700575 <pre>Creates a new note.
576
577Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700578 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 -0700579 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 The object takes the form of:
581
582{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800583 &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.
584 &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.
585 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
586 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800587 },
588 &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.
589 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
590 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
591 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
592 &quot;A String&quot;,
593 ],
594 &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.
595 },
596 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
597 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800598 &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.
599 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
600 &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.
601 &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).
602 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
603 &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`
604 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
605 },
606 },
607 &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.
608 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
609 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
610 &quot;A String&quot;,
611 ],
612 },
613 &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.
614 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
615 },
616 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
617 &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.
618 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
619 &quot;A String&quot;,
620 ],
621 &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.
622 { # Defines an object to declare an in-toto artifact rule
623 &quot;artifactRule&quot;: [
624 &quot;A String&quot;,
625 ],
626 },
627 ],
628 &quot;expectedProducts&quot;: [
629 { # Defines an object to declare an in-toto artifact rule
630 &quot;artifactRule&quot;: [
631 &quot;A String&quot;,
632 ],
633 },
634 ],
635 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
636 { # 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.
637 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
638 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
639 &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;.
640 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
641 },
642 ],
643 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
644 &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.
645 },
646 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
647 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
648 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
649 &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.
650 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
651 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
652 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
653 &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.
654 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
655 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
656 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800657 &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 -0800658 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
659 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
660 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
661 },
662 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
663 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
664 },
665 ],
666 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
667 },
668 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
669 &quot;A String&quot;,
670 ],
671 &quot;relatedUrl&quot;: [ # URLs associated with this note.
672 { # Metadata for any related URL information.
673 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
674 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
675 },
676 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700677 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700678 &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;)
679 &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
680 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800681 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700682 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700683 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
684 &quot;A String&quot;,
685 ],
686 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
687 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
688 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700689 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700690 &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
691 &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
692 &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
693 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
694 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
695 &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
696 &quot;externalRefs&quot;: [ # ExternalRef
697 { # 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
698 &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
699 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
700 &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
701 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
702 },
703 ],
704 &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
705 &quot;A String&quot;,
706 ],
707 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700708 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
709 &quot;comments&quot;: &quot;A String&quot;, # Comments
710 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
711 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700712 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700713 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700714 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
715 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
716 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
717 &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
718 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
719 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700720 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
721 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700722 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800723 &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 -0800724 &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 -0800725 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800726 &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 -0800727 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800728 &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 -0800729 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800730 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
731 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800732 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800733 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800734 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800735 &quot;privilegesRequired&quot;: &quot;A String&quot;,
736 &quot;scope&quot;: &quot;A String&quot;,
737 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800738 },
739 &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.
740 { # 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 -0800741 &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.
742 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800743 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
744 &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.
745 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
746 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
747 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800748 &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 -0800749 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
750 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
751 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
752 },
753 },
754 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
755 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
756 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800757 &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 -0800758 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
759 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
760 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
761 },
762 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
763 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800764 &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 -0800765 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
766 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
767 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
768 },
769 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
770 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
771 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800772 &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 -0800773 &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 -0700774 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800775 },
776 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800777 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800778 &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.
779 &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.
780 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800781 &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.
782 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800783 &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.
784 {
785 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
786 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
787 },
788 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800789 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
790 },
791 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800792 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800793}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794
Dan O'Mearadd494642020-05-01 07:42:23 -0700795 noteId: string, Required. The ID to use for this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700796 x__xgafv: string, V1 error format.
797 Allowed values
798 1 - v1 error format
799 2 - v2 error format
800
801Returns:
802 An object of the form:
803
804 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800805 &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.
806 &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.
807 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
808 },
809 },
810 &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.
811 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
812 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
813 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
814 &quot;A String&quot;,
815 ],
816 &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.
817 },
818 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
819 },
820 &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.
821 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
822 &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.
823 &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).
824 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
825 &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`
826 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
827 },
828 },
829 &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.
830 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
831 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800832 &quot;A String&quot;,
833 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800834 },
835 &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.
836 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
837 },
838 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
839 &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.
840 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
841 &quot;A String&quot;,
842 ],
843 &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.
844 { # Defines an object to declare an in-toto artifact rule
845 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800846 &quot;A String&quot;,
847 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800848 },
849 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800850 &quot;expectedProducts&quot;: [
851 { # Defines an object to declare an in-toto artifact rule
852 &quot;artifactRule&quot;: [
853 &quot;A String&quot;,
854 ],
855 },
856 ],
857 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
858 { # 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.
859 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
860 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
861 &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;.
862 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
863 },
864 ],
865 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
866 &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.
867 },
868 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
869 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
870 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
871 &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.
872 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
873 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
874 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
875 &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.
876 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
877 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
878 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800879 &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 -0800880 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
881 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
882 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
883 },
884 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
885 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
886 },
887 ],
888 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
889 },
890 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
891 &quot;A String&quot;,
892 ],
893 &quot;relatedUrl&quot;: [ # URLs associated with this note.
894 { # Metadata for any related URL information.
895 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
896 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
897 },
898 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700899 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700900 &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;)
901 &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
902 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800903 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700904 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700905 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
906 &quot;A String&quot;,
907 ],
908 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
909 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
910 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700911 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700912 &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
913 &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
914 &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
915 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
916 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
917 &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
918 &quot;externalRefs&quot;: [ # ExternalRef
919 { # 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
920 &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
921 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
922 &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
923 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
924 },
925 ],
926 &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
927 &quot;A String&quot;,
928 ],
929 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700930 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
931 &quot;comments&quot;: &quot;A String&quot;, # Comments
932 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
933 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700934 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700935 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700936 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
937 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
938 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
939 &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
940 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
941 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700942 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
943 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700944 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800945 &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.
946 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
947 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
948 &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.
949 &quot;attackComplexity&quot;: &quot;A String&quot;,
950 &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.
951 &quot;availabilityImpact&quot;: &quot;A String&quot;,
952 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
953 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
954 &quot;exploitabilityScore&quot;: 3.14,
955 &quot;impactScore&quot;: 3.14,
956 &quot;integrityImpact&quot;: &quot;A String&quot;,
957 &quot;privilegesRequired&quot;: &quot;A String&quot;,
958 &quot;scope&quot;: &quot;A String&quot;,
959 &quot;userInteraction&quot;: &quot;A String&quot;,
960 },
961 &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.
962 { # 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
963 &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.
964 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
965 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
966 &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.
967 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
968 &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 -0800969 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800970 &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 -0800971 &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 -0800972 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
973 &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 -0800974 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800975 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800976 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
977 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
978 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800979 &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 -0800980 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
981 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
982 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
983 },
984 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
985 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800986 &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 -0800987 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
988 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
989 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
990 },
991 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
992 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
993 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800994 &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 -0800995 &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 -0700996 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800997 },
998 ],
999 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1000 &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.
1001 &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.
1002 {
1003 &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.
1004 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1005 &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.
1006 {
1007 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1008 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1009 },
1010 ],
1011 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1012 },
1013 ],
1014 },
1015}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001016</div>
1017
1018<div class="method">
1019 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1020 <pre>Deletes the specified note.
1021
1022Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001023 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 -07001024 x__xgafv: string, V1 error format.
1025 Allowed values
1026 1 - v1 error format
1027 2 - v2 error format
1028
1029Returns:
1030 An object of the form:
1031
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 { # 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 -08001033}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001034</div>
1035
1036<div class="method">
1037 <code class="details" id="get">get(name, x__xgafv=None)</code>
1038 <pre>Gets the specified note.
1039
1040Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001041 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 -07001042 x__xgafv: string, V1 error format.
1043 Allowed values
1044 1 - v1 error format
1045 2 - v2 error format
1046
1047Returns:
1048 An object of the form:
1049
1050 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001051 &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.
1052 &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.
1053 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1054 },
1055 },
1056 &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.
1057 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1058 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1059 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1060 &quot;A String&quot;,
1061 ],
1062 &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.
1063 },
1064 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1065 },
1066 &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.
1067 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1068 &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.
1069 &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).
1070 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1071 &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`
1072 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1073 },
1074 },
1075 &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.
1076 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1077 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001078 &quot;A String&quot;,
1079 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001080 },
1081 &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.
1082 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1083 },
1084 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1085 &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.
1086 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1087 &quot;A String&quot;,
1088 ],
1089 &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.
1090 { # Defines an object to declare an in-toto artifact rule
1091 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001092 &quot;A String&quot;,
1093 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001094 },
1095 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001096 &quot;expectedProducts&quot;: [
1097 { # Defines an object to declare an in-toto artifact rule
1098 &quot;artifactRule&quot;: [
1099 &quot;A String&quot;,
1100 ],
1101 },
1102 ],
1103 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1104 { # 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.
1105 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1106 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1107 &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;.
1108 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1109 },
1110 ],
1111 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1112 &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.
1113 },
1114 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1115 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1116 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1117 &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.
1118 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1119 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1120 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1121 &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.
1122 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1123 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1124 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001125 &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 -08001126 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1127 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1128 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1129 },
1130 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1131 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1132 },
1133 ],
1134 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1135 },
1136 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1137 &quot;A String&quot;,
1138 ],
1139 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1140 { # Metadata for any related URL information.
1141 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1142 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1143 },
1144 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001145 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001146 &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;)
1147 &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
1148 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001149 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001150 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001151 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1152 &quot;A String&quot;,
1153 ],
1154 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1155 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1156 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001157 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001158 &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
1159 &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
1160 &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
1161 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1162 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1163 &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
1164 &quot;externalRefs&quot;: [ # ExternalRef
1165 { # 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
1166 &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
1167 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1168 &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
1169 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1170 },
1171 ],
1172 &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
1173 &quot;A String&quot;,
1174 ],
1175 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001176 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
1177 &quot;comments&quot;: &quot;A String&quot;, # Comments
1178 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1179 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001180 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001181 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001182 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1183 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1184 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1185 &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
1186 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1187 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001188 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
1189 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001190 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001191 &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.
1192 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1193 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1194 &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.
1195 &quot;attackComplexity&quot;: &quot;A String&quot;,
1196 &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.
1197 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1198 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1199 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1200 &quot;exploitabilityScore&quot;: 3.14,
1201 &quot;impactScore&quot;: 3.14,
1202 &quot;integrityImpact&quot;: &quot;A String&quot;,
1203 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1204 &quot;scope&quot;: &quot;A String&quot;,
1205 &quot;userInteraction&quot;: &quot;A String&quot;,
1206 },
1207 &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.
1208 { # 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
1209 &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.
1210 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1211 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1212 &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.
1213 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1214 &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 -08001215 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001216 &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 -08001217 &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 -08001218 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1219 &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 -08001220 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001221 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001222 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1223 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1224 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001225 &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 -08001226 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1227 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1228 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1229 },
1230 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1231 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001232 &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 -08001233 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1234 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1235 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1236 },
1237 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1238 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1239 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001240 &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 -08001241 &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 -07001242 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001243 },
1244 ],
1245 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1246 &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.
1247 &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.
1248 {
1249 &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.
1250 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1251 &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.
1252 {
1253 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1254 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1255 },
1256 ],
1257 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1258 },
1259 ],
1260 },
1261}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001262</div>
1263
1264<div class="method">
1265 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001266 <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 -07001267
1268Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001269 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 -07001270 body: object, The request body.
1271 The object takes the form of:
1272
1273{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001274 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
yoshi-code-bot815c1ac2021-11-15 23:24:17 -08001275 &quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001276 },
1277}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001278
1279 x__xgafv: string, V1 error format.
1280 Allowed values
1281 1 - v1 error format
1282 2 - v2 error format
1283
1284Returns:
1285 An object of the form:
1286
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001287 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1288 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1289 { # Associates `members`, or principals, with a `role`.
1290 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &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.
1292 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1293 &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.
1294 &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 -07001295 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001296 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001297 &quot;A String&quot;,
1298 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001299 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001300 },
1301 ],
1302 &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.
1303 &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).
1304}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305</div>
1306
1307<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001308 <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 -07001309 <pre>Lists notes for the specified project.
1310
1311Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001312 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 -08001313 filter: string, The filter expression.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001314 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 -08001315 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001316 x__xgafv: string, V1 error format.
1317 Allowed values
1318 1 - v1 error format
1319 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001320
1321Returns:
1322 An object of the form:
1323
1324 { # Response for listing notes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001325 &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.
1326 &quot;notes&quot;: [ # The notes requested.
1327 { # A type of analysis that can be done for a resource.
1328 &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.
1329 &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.
1330 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1331 },
1332 },
1333 &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.
1334 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1335 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1336 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1337 &quot;A String&quot;,
1338 ],
1339 &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.
1340 },
1341 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1342 },
1343 &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.
1344 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1345 &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.
1346 &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).
1347 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1348 &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`
1349 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1350 },
1351 },
1352 &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.
1353 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1354 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001355 &quot;A String&quot;,
1356 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001357 },
1358 &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.
1359 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1360 },
1361 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1362 &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.
1363 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1364 &quot;A String&quot;,
1365 ],
1366 &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.
1367 { # Defines an object to declare an in-toto artifact rule
1368 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001369 &quot;A String&quot;,
1370 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001371 },
1372 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001373 &quot;expectedProducts&quot;: [
1374 { # Defines an object to declare an in-toto artifact rule
1375 &quot;artifactRule&quot;: [
1376 &quot;A String&quot;,
1377 ],
1378 },
1379 ],
1380 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1381 { # 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.
1382 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1383 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1384 &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;.
1385 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1386 },
1387 ],
1388 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1389 &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.
1390 },
1391 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1392 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1393 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1394 &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.
1395 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1396 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1397 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1398 &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.
1399 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1400 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1401 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001402 &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 -08001403 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1404 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1405 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1406 },
1407 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1408 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1409 },
1410 ],
1411 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1412 },
1413 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1414 &quot;A String&quot;,
1415 ],
1416 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1417 { # Metadata for any related URL information.
1418 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1419 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1420 },
1421 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001422 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001423 &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;)
1424 &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
1425 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001426 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001427 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001428 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1429 &quot;A String&quot;,
1430 ],
1431 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1432 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1433 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001434 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001435 &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
1436 &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
1437 &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
1438 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1439 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1440 &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
1441 &quot;externalRefs&quot;: [ # ExternalRef
1442 { # 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
1443 &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
1444 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1445 &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
1446 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1447 },
1448 ],
1449 &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
1450 &quot;A String&quot;,
1451 ],
1452 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001453 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
1454 &quot;comments&quot;: &quot;A String&quot;, # Comments
1455 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1456 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001457 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001458 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001459 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1460 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1461 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1462 &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
1463 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1464 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001465 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
1466 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001467 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001468 &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.
1469 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1470 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1471 &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.
1472 &quot;attackComplexity&quot;: &quot;A String&quot;,
1473 &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.
1474 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1475 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1476 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1477 &quot;exploitabilityScore&quot;: 3.14,
1478 &quot;impactScore&quot;: 3.14,
1479 &quot;integrityImpact&quot;: &quot;A String&quot;,
1480 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1481 &quot;scope&quot;: &quot;A String&quot;,
1482 &quot;userInteraction&quot;: &quot;A String&quot;,
1483 },
1484 &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.
1485 { # 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
1486 &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.
1487 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1488 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1489 &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.
1490 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1491 &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 -08001492 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001493 &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 -08001494 &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 -08001495 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1496 &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 -08001497 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001498 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001499 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1500 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1501 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001502 &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 -08001503 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1504 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1505 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1506 },
1507 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1508 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001509 &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 -08001510 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1511 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1512 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1513 },
1514 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1515 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1516 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001517 &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 -08001518 &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 -07001519 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001520 },
1521 ],
1522 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1523 &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.
1524 &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.
1525 {
1526 &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.
1527 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1528 &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.
1529 {
1530 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1531 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1532 },
1533 ],
1534 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1535 },
1536 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001537 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001538 },
1539 ],
1540}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541</div>
1542
1543<div class="method">
1544 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1545 <pre>Retrieves the next page of results.
1546
1547Args:
1548 previous_request: The request for the previous page. (required)
1549 previous_response: The response from the request for the previous page. (required)
1550
1551Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 page. Returns None if there are no more items in the collection.
1554 </pre>
1555</div>
1556
1557<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001558 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001559 <pre>Updates the specified note.
1560
1561Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001562 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 -07001563 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001564 The object takes the form of:
1565
1566{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001567 &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.
1568 &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.
1569 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1570 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001571 },
1572 &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.
1573 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1574 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1575 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1576 &quot;A String&quot;,
1577 ],
1578 &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.
1579 },
1580 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1581 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001582 &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.
1583 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1584 &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.
1585 &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).
1586 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1587 &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`
1588 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1589 },
1590 },
1591 &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.
1592 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1593 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1594 &quot;A String&quot;,
1595 ],
1596 },
1597 &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.
1598 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1599 },
1600 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1601 &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.
1602 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1603 &quot;A String&quot;,
1604 ],
1605 &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.
1606 { # Defines an object to declare an in-toto artifact rule
1607 &quot;artifactRule&quot;: [
1608 &quot;A String&quot;,
1609 ],
1610 },
1611 ],
1612 &quot;expectedProducts&quot;: [
1613 { # Defines an object to declare an in-toto artifact rule
1614 &quot;artifactRule&quot;: [
1615 &quot;A String&quot;,
1616 ],
1617 },
1618 ],
1619 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1620 { # 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.
1621 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1622 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1623 &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;.
1624 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1625 },
1626 ],
1627 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1628 &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.
1629 },
1630 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1631 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1632 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1633 &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.
1634 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1635 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1636 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1637 &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.
1638 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1639 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1640 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001641 &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 -08001642 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1643 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1644 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1645 },
1646 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1647 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1648 },
1649 ],
1650 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1651 },
1652 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1653 &quot;A String&quot;,
1654 ],
1655 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1656 { # Metadata for any related URL information.
1657 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1658 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1659 },
1660 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001661 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001662 &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;)
1663 &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
1664 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001665 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001666 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001667 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1668 &quot;A String&quot;,
1669 ],
1670 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1671 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1672 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001673 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001674 &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
1675 &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
1676 &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
1677 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1678 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1679 &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
1680 &quot;externalRefs&quot;: [ # ExternalRef
1681 { # 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
1682 &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
1683 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1684 &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
1685 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1686 },
1687 ],
1688 &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
1689 &quot;A String&quot;,
1690 ],
1691 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001692 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
1693 &quot;comments&quot;: &quot;A String&quot;, # Comments
1694 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1695 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001696 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001697 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001698 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1699 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1700 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1701 &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
1702 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1703 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001704 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
1705 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001706 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001707 &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 -08001708 &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 -08001709 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001710 &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 -08001711 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001712 &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 -08001713 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001714 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1715 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001716 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001717 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001718 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001719 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1720 &quot;scope&quot;: &quot;A String&quot;,
1721 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001722 },
1723 &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.
1724 { # 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 -08001725 &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.
1726 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001727 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1728 &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.
1729 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1730 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1731 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001732 &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 -08001733 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1734 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1735 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1736 },
1737 },
1738 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1739 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1740 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001741 &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 -08001742 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1743 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1744 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1745 },
1746 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1747 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001748 &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 -08001749 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1750 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1751 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1752 },
1753 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1754 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1755 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001756 &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 -08001757 &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 -07001758 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001759 },
1760 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001761 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001762 &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.
1763 &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.
1764 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001765 &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.
1766 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001767 &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.
1768 {
1769 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1770 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1771 },
1772 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001773 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1774 },
1775 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001776 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001777}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001778
1779 updateMask: string, The fields to update.
1780 x__xgafv: string, V1 error format.
1781 Allowed values
1782 1 - v1 error format
1783 2 - v2 error format
1784
1785Returns:
1786 An object of the form:
1787
1788 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001789 &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.
1790 &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.
1791 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1792 },
1793 },
1794 &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.
1795 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1796 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1797 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1798 &quot;A String&quot;,
1799 ],
1800 &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.
1801 },
1802 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1803 },
1804 &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.
1805 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1806 &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.
1807 &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).
1808 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1809 &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`
1810 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1811 },
1812 },
1813 &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.
1814 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1815 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001816 &quot;A String&quot;,
1817 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001818 },
1819 &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.
1820 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1821 },
1822 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1823 &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.
1824 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1825 &quot;A String&quot;,
1826 ],
1827 &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.
1828 { # Defines an object to declare an in-toto artifact rule
1829 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001830 &quot;A String&quot;,
1831 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001832 },
1833 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001834 &quot;expectedProducts&quot;: [
1835 { # Defines an object to declare an in-toto artifact rule
1836 &quot;artifactRule&quot;: [
1837 &quot;A String&quot;,
1838 ],
1839 },
1840 ],
1841 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1842 { # 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.
1843 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1844 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1845 &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;.
1846 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1847 },
1848 ],
1849 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1850 &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.
1851 },
1852 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1853 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1854 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1855 &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.
1856 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1857 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1858 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1859 &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.
1860 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1861 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1862 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001863 &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 -08001864 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1865 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1866 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1867 },
1868 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1869 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1870 },
1871 ],
1872 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1873 },
1874 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1875 &quot;A String&quot;,
1876 ],
1877 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1878 { # Metadata for any related URL information.
1879 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1880 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1881 },
1882 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001883 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001884 &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;)
1885 &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
1886 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001887 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001888 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001889 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1890 &quot;A String&quot;,
1891 ],
1892 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1893 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1894 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001895 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001896 &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
1897 &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
1898 &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
1899 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1900 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1901 &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
1902 &quot;externalRefs&quot;: [ # ExternalRef
1903 { # 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
1904 &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
1905 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1906 &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
1907 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1908 },
1909 ],
1910 &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
1911 &quot;A String&quot;,
1912 ],
1913 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001914 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
1915 &quot;comments&quot;: &quot;A String&quot;, # Comments
1916 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1917 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001918 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001919 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001920 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1921 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1922 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1923 &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
1924 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1925 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001926 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing an SPDX File.
1927 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001928 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001929 &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.
1930 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1931 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1932 &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.
1933 &quot;attackComplexity&quot;: &quot;A String&quot;,
1934 &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.
1935 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1936 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1937 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1938 &quot;exploitabilityScore&quot;: 3.14,
1939 &quot;impactScore&quot;: 3.14,
1940 &quot;integrityImpact&quot;: &quot;A String&quot;,
1941 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1942 &quot;scope&quot;: &quot;A String&quot;,
1943 &quot;userInteraction&quot;: &quot;A String&quot;,
1944 },
1945 &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.
1946 { # 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
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;, # A vendor-specific description of this note.
1949 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1950 &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.
1951 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1952 &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 -08001953 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001954 &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 -08001955 &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 -08001956 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1957 &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 -08001958 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001959 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001960 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1961 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1962 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001963 &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 -08001964 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1965 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1966 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1967 },
1968 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1969 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001970 &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 -08001971 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1972 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1973 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1974 },
1975 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1976 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1977 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001978 &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 -08001979 &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 -07001980 &quot;vendor&quot;: &quot;A String&quot;, # The name of the vendor of the product.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001981 },
1982 ],
1983 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1984 &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.
1985 &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.
1986 {
1987 &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.
1988 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1989 &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.
1990 {
1991 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1992 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1993 },
1994 ],
1995 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1996 },
1997 ],
1998 },
1999}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002000</div>
2001
2002<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002003 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002004 <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 -07002005
2006Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002007 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 -07002008 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002009 The object takes the form of:
2010
2011{ # Request message for `SetIamPolicy` method.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002012 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
2013 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
2014 { # Associates `members`, or principals, with a `role`.
2015 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002016 &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.
2017 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2018 &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.
2019 &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 -07002020 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002021 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002022 &quot;A String&quot;,
2023 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002024 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002025 },
2026 ],
2027 &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.
2028 &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).
2029 },
2030}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002031
2032 x__xgafv: string, V1 error format.
2033 Allowed values
2034 1 - v1 error format
2035 2 - v2 error format
2036
2037Returns:
2038 An object of the form:
2039
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002040 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members`, or principals, to a single `role`. Principals can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
2041 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
2042 { # Associates `members`, or principals, with a `role`.
2043 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002044 &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.
2045 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2046 &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.
2047 &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 -07002048 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002049 &quot;members&quot;: [ # Specifies the principals requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002050 &quot;A String&quot;,
2051 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002052 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002053 },
2054 ],
2055 &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.
2056 &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).
2057}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002058</div>
2059
2060<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002061 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002062 <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 -07002063
2064Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002065 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 -07002066 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002067 The object takes the form of:
2068
2069{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002070 &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).
2071 &quot;A String&quot;,
2072 ],
2073}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002074
2075 x__xgafv: string, V1 error format.
2076 Allowed values
2077 1 - v1 error format
2078 2 - v2 error format
2079
2080Returns:
2081 An object of the form:
2082
2083 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002084 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2085 &quot;A String&quot;,
2086 ],
2087}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002088</div>
2089
2090</body></html>