blob: 2ff086d7a728e693cf8533a9bdd9696148ded026 [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_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.notes.html">notes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="containeranalysis_v1alpha1.projects.notes.occurrences.html">occurrences()</a></code>
79</p>
80<p class="firstline">Returns the occurrences Resource.</p>
81
82<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070083 <code><a href="#close">close()</a></code></p>
84<p class="firstline">Close httplib2 connections.</p>
85<p class="toc_element">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -080086 <code><a href="#create">create(parent, body=None, name=None, noteId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Creates a new `Note`.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes the given `Note` from the system.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Returns the requested `Note`.</p>
94<p class="toc_element">
95 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070096<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. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080098 <code><a href="#list">list(parent, filter=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Lists all `Notes` for a given project.</p>
100<p class="toc_element">
101 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
102<p class="firstline">Retrieves the next page of results.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Updates an existing `Note`.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700108<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. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<h3>Method Details</h3>
113<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114 <code class="details" id="close">close()</code>
115 <pre>Close httplib2 connections.</pre>
116</div>
117
118<div class="method">
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800119 <code class="details" id="create">create(parent, body=None, name=None, noteId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700120 <pre>Creates a new `Note`.
121
122Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700123 parent: string, This field contains the project Id for example: &quot;projects/{project_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700124 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700125 The object takes the form of:
126
127{ # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800128 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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 AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
130 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700131 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800132 },
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. # The fingerprint of the base image.
135 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
136 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800137 &quot;A String&quot;,
138 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800139 &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. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800140 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800141 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
142 },
143 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
144 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
145 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
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;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
150 },
151 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700152 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
153 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
154 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
155 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
156 },
157 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
158 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
159 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
160 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
161 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
162 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
163 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
164 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
165 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
166 },
167 ],
168 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800169 &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.
170 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
171 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
172 &quot;A String&quot;,
173 ],
174 },
175 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
176 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
177 },
178 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
179 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
180 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
181 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
182 &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.
183 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
184 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
185 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
186 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
187 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
188 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
189 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800190 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
192 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
193 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
194 },
195 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
196 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
197 },
198 ],
199 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
200 },
201 &quot;relatedUrl&quot;: [ # URLs associated with this note
202 { # Metadata for any related URL information
203 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
204 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
205 },
206 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700207 &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.
208 &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;)
209 &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
210 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800211 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700212 &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.
213 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
214 &quot;A String&quot;,
215 ],
216 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
217 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
218 },
219 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
220 &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
221 &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
222 &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
223 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
224 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
225 &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
226 &quot;externalRefs&quot;: [ # ExternalRef
227 { # 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
228 &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
229 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
230 &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
231 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
232 },
233 ],
234 &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
235 &quot;A String&quot;,
236 ],
237 &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
238 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
239 &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
240 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
241 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
242 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
243 &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
244 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
245 },
246 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
247 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800248 &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.
249 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
250 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
251 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
252 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
253 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
254 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
255 &quot;A String&quot;,
256 ],
257 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
258 },
259 ],
260 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
261 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
262 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800263 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800264 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
265 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
266 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
267 },
268 },
269 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
270 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
271 &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.
272 { # Identifies all occurrences 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
273 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
274 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
275 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
276 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
277 &quot;package&quot;: &quot;A String&quot;, # The package being described.
278 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800279 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800280 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800281 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800282 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800283 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
284 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800285 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800286 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
287 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
288 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800289 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800290 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
291 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
292 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
293 },
294 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
295 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800296 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800297 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
298 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
299 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
300 },
301 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
302 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
303 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800304 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700305 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800306 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800307 ],
308 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
309 },
310}
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700311
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800312 name: string, The name of the project. Should be of the form &quot;providers/{provider_id}&quot;. @Deprecated
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800313 noteId: string, The ID to use for this note.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700314 x__xgafv: string, V1 error format.
315 Allowed values
316 1 - v1 error format
317 2 - v2 error format
318
319Returns:
320 An object of the form:
321
322 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800323 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
324 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
325 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
326 },
327 },
328 &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.
329 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
330 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
331 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
332 &quot;A String&quot;,
333 ],
334 &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. This field can be used as a filter in list requests.
335 },
336 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
337 },
338 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
339 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
340 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
341 &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).
342 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
343 &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`
344 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
345 },
346 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700347 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
348 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
349 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
350 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
351 },
352 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
353 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
354 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
355 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
356 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
357 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
358 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
359 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
360 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
361 },
362 ],
363 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800364 &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.
365 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
366 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
367 &quot;A String&quot;,
368 ],
369 },
370 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
371 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
372 },
373 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
374 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
375 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
376 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
377 &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.
378 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
379 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
380 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
381 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
382 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
383 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800384 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800385 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800386 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800387 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800388 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
389 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800390 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
391 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800392 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800393 ],
394 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
395 },
396 &quot;relatedUrl&quot;: [ # URLs associated with this note
397 { # Metadata for any related URL information
398 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
399 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
400 },
401 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700402 &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.
403 &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;)
404 &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
405 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800406 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700407 &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.
408 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
409 &quot;A String&quot;,
410 ],
411 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
412 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
413 },
414 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
415 &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
416 &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
417 &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
418 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
419 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
420 &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
421 &quot;externalRefs&quot;: [ # ExternalRef
422 { # 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
423 &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
424 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
425 &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
426 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
427 },
428 ],
429 &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
430 &quot;A String&quot;,
431 ],
432 &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
433 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
434 &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
435 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
436 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
437 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
438 &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
439 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
440 },
441 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
442 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800443 &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.
444 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
445 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
446 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
447 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
448 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
449 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800450 &quot;A String&quot;,
451 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800452 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800453 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800454 ],
455 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
456 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
457 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800458 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800459 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
460 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
461 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
462 },
463 },
464 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
465 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
466 &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.
467 { # Identifies all occurrences 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
468 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
469 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
470 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
471 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
472 &quot;package&quot;: &quot;A String&quot;, # The package being described.
473 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
474 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800475 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800476 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
477 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
478 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800479 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800480 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800481 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
482 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
483 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800484 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
486 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
487 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
488 },
489 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
490 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800491 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800492 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
493 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
494 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
495 },
496 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
497 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
498 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800499 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700500 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800501 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800502 ],
503 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
504 },
505}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700506</div>
507
508<div class="method">
509 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
510 <pre>Deletes the given `Note` from the system.
511
512Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700513 name: string, The name of the note in the form of &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700514 x__xgafv: string, V1 error format.
515 Allowed values
516 1 - v1 error format
517 2 - v2 error format
518
519Returns:
520 An object of the form:
521
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700522 { # 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 -0800523}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700524</div>
525
526<div class="method">
527 <code class="details" id="get">get(name, x__xgafv=None)</code>
528 <pre>Returns the requested `Note`.
529
530Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700531 name: string, The name of the note in the form of &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700532 x__xgafv: string, V1 error format.
533 Allowed values
534 1 - v1 error format
535 2 - v2 error format
536
537Returns:
538 An object of the form:
539
540 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800541 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
542 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
543 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
544 },
545 },
546 &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.
547 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
548 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
549 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
550 &quot;A String&quot;,
551 ],
552 &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. This field can be used as a filter in list requests.
553 },
554 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
555 },
556 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
557 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
558 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
559 &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).
560 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
561 &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`
562 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
563 },
564 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700565 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
566 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
567 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
568 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
569 },
570 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
571 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
572 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
573 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
574 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
575 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
576 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
577 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
578 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
579 },
580 ],
581 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800582 &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.
583 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
584 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
585 &quot;A String&quot;,
586 ],
587 },
588 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
589 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
590 },
591 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
592 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
593 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
594 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
595 &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.
596 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
597 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
598 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
599 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
600 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
601 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800602 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800603 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800604 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800605 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800606 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
607 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800608 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
609 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800610 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800611 ],
612 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
613 },
614 &quot;relatedUrl&quot;: [ # URLs associated with this note
615 { # Metadata for any related URL information
616 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
617 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
618 },
619 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700620 &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.
621 &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;)
622 &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
623 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800624 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700625 &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.
626 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
627 &quot;A String&quot;,
628 ],
629 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
630 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
631 },
632 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
633 &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
634 &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
635 &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
636 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
637 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
638 &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
639 &quot;externalRefs&quot;: [ # ExternalRef
640 { # 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
641 &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
642 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
643 &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
644 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
645 },
646 ],
647 &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
648 &quot;A String&quot;,
649 ],
650 &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
651 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
652 &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
653 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
654 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
655 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
656 &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
657 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
658 },
659 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
660 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800661 &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.
662 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
663 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
664 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
665 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
666 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
667 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800668 &quot;A String&quot;,
669 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800670 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800671 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800672 ],
673 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
674 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
675 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800676 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800677 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
678 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
679 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
680 },
681 },
682 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
683 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
684 &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.
685 { # Identifies all occurrences 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
686 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
687 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
688 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
689 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
690 &quot;package&quot;: &quot;A String&quot;, # The package being described.
691 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
692 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800693 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800694 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
695 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
696 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800697 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800698 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800699 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
700 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
701 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800702 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800703 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
704 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
705 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
706 },
707 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
708 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800709 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800710 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
711 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
712 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
713 },
714 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
715 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
716 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800717 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700718 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800719 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800720 ],
721 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
722 },
723}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724</div>
725
726<div class="method">
727 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700728 <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. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700729
730Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700731 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 -0700732 body: object, The request body.
733 The object takes the form of:
734
735{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800736 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
737 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
738 },
739}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700740
741 x__xgafv: string, V1 error format.
742 Allowed values
743 1 - v1 error format
744 2 - v2 error format
745
746Returns:
747 An object of the form:
748
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700749 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800750 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
751 { # Associates `members` with a `role`.
752 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
753 &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.
754 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
755 &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.
756 &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 -0700757 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800758 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
759 &quot;A String&quot;,
760 ],
761 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
762 },
763 ],
764 &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.
765 &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).
766}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700767</div>
768
769<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800770 <code class="details" id="list">list(parent, filter=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700771 <pre>Lists all `Notes` for a given project.
772
773Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700774 parent: string, This field contains the project Id for example: &quot;projects/{PROJECT_ID}&quot;. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800775 filter: string, The filter expression.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800776 name: string, The name field will contain the project Id for example: &quot;providers/{provider_id} @Deprecated
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800777 pageSize: integer, Number of notes to return in the list.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800778 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700779 x__xgafv: string, V1 error format.
780 Allowed values
781 1 - v1 error format
782 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700783
784Returns:
785 An object of the form:
786
787 { # Response including listed notes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800788 &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 result.
789 &quot;notes&quot;: [ # The occurrences requested
790 { # Provides a detailed description of a `Note`.
791 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
792 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
793 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
794 },
795 },
796 &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.
797 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
798 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
799 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
800 &quot;A String&quot;,
801 ],
802 &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. This field can be used as a filter in list requests.
803 },
804 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
805 },
806 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
807 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
808 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
809 &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).
810 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
811 &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`
812 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
813 },
814 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700815 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
816 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
817 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
818 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
819 },
820 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
821 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
822 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
823 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
824 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
825 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
826 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
827 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
828 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
829 },
830 ],
831 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800832 &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.
833 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
834 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
835 &quot;A String&quot;,
836 ],
837 },
838 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
839 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
840 },
841 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
842 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
843 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
844 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
845 &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.
846 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
847 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
848 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
849 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
850 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
851 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800852 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800853 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800854 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800855 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800856 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
857 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800858 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
859 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800860 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800861 ],
862 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
863 },
864 &quot;relatedUrl&quot;: [ # URLs associated with this note
865 { # Metadata for any related URL information
866 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
867 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
868 },
869 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -0700870 &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.
871 &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;)
872 &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
873 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800874 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700875 &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.
876 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
877 &quot;A String&quot;,
878 ],
879 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
880 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
881 },
882 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
883 &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
884 &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
885 &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
886 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
887 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
888 &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
889 &quot;externalRefs&quot;: [ # ExternalRef
890 { # 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
891 &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
892 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
893 &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
894 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
895 },
896 ],
897 &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
898 &quot;A String&quot;,
899 ],
900 &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
901 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
902 &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
903 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
904 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
905 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
906 &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
907 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
908 },
909 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
910 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800911 &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.
912 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
913 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
914 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
915 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
916 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
917 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800918 &quot;A String&quot;,
919 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800920 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800921 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800922 ],
923 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
924 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
925 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800926 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800927 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
928 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
929 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800930 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800931 },
932 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
933 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
934 &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.
935 { # Identifies all occurrences 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
936 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
937 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
938 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
939 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
940 &quot;package&quot;: &quot;A String&quot;, # The package being described.
941 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
942 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800943 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800944 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
945 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
946 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
947 },
948 },
949 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
950 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
951 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800952 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800953 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
954 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
955 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
956 },
957 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
958 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800959 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800960 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
961 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
962 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
963 },
964 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
965 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
966 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800967 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -0700968 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800969 },
970 ],
971 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
972 },
973 },
974 ],
975}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700976</div>
977
978<div class="method">
979 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
980 <pre>Retrieves the next page of results.
981
982Args:
983 previous_request: The request for the previous page. (required)
984 previous_response: The response from the request for the previous page. (required)
985
986Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700987 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700988 page. Returns None if there are no more items in the collection.
989 </pre>
990</div>
991
992<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700993 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700994 <pre>Updates an existing `Note`.
995
996Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700997 name: string, The name of the note. Should be of the form &quot;projects/{provider_id}/notes/{note_id}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700998 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700999 The object takes the form of:
1000
1001{ # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001002 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
1003 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
1004 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001005 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001006 },
1007 &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.
1008 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1009 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1010 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001011 &quot;A String&quot;,
1012 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001013 &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. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001014 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1016 },
1017 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
1018 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1019 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1020 &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).
1021 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1022 &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`
1023 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1024 },
1025 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001026 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1027 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
1028 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1029 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1030 },
1031 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1032 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1033 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1034 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1035 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1036 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1037 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1038 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1039 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
1040 },
1041 ],
1042 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001043 &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.
1044 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1045 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1046 &quot;A String&quot;,
1047 ],
1048 },
1049 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
1050 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1051 },
1052 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1053 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
1054 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1055 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1056 &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.
1057 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1058 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1059 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1060 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1061 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1062 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
1063 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001064 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001065 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1066 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1067 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1068 },
1069 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1070 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1071 },
1072 ],
1073 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1074 },
1075 &quot;relatedUrl&quot;: [ # URLs associated with this note
1076 { # Metadata for any related URL information
1077 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1078 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1079 },
1080 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001081 &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.
1082 &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;)
1083 &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
1084 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001085 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001086 &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.
1087 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1088 &quot;A String&quot;,
1089 ],
1090 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1091 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1092 },
1093 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
1094 &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
1095 &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
1096 &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
1097 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1098 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1099 &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
1100 &quot;externalRefs&quot;: [ # ExternalRef
1101 { # 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
1102 &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
1103 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1104 &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
1105 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1106 },
1107 ],
1108 &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
1109 &quot;A String&quot;,
1110 ],
1111 &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
1112 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1113 &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
1114 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1115 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1116 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1117 &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
1118 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1119 },
1120 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
1121 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001122 &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.
1123 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
1124 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1125 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
1126 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1127 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1128 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1129 &quot;A String&quot;,
1130 ],
1131 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1132 },
1133 ],
1134 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1135 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
1136 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001137 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001138 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1139 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1140 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1141 },
1142 },
1143 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1144 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1145 &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.
1146 { # Identifies all occurrences 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
1147 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
1148 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1149 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1150 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1151 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1152 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001153 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001154 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001155 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001156 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001157 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1158 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001159 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001160 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1161 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
1162 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001163 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001164 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1165 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1166 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1167 },
1168 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
1169 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001170 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001171 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1172 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1173 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1174 },
1175 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
1176 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1177 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001178 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001179 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001180 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001181 ],
1182 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1183 },
1184}
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001185
1186 updateMask: string, The fields to update.
1187 x__xgafv: string, V1 error format.
1188 Allowed values
1189 1 - v1 error format
1190 2 - v2 error format
1191
1192Returns:
1193 An object of the form:
1194
1195 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001196 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
1197 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
1198 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1199 },
1200 },
1201 &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.
1202 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1203 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1204 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1205 &quot;A String&quot;,
1206 ],
1207 &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. This field can be used as a filter in list requests.
1208 },
1209 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1210 },
1211 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
1212 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1213 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1214 &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).
1215 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1216 &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`
1217 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1218 },
1219 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001220 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1221 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
1222 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1223 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1224 },
1225 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1226 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1227 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1228 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1229 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1230 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1231 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1232 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1233 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
1234 },
1235 ],
1236 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001237 &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.
1238 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1239 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1240 &quot;A String&quot;,
1241 ],
1242 },
1243 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
1244 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1245 },
1246 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1247 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
1248 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1249 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1250 &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.
1251 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1252 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1253 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1254 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1255 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1256 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001257 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001258 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001259 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001260 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001261 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1262 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001263 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1264 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001265 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001266 ],
1267 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1268 },
1269 &quot;relatedUrl&quot;: [ # URLs associated with this note
1270 { # Metadata for any related URL information
1271 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1272 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1273 },
1274 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001275 &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.
1276 &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;)
1277 &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
1278 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001279 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001280 &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.
1281 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1282 &quot;A String&quot;,
1283 ],
1284 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1285 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1286 },
1287 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
1288 &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
1289 &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
1290 &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
1291 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1292 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1293 &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
1294 &quot;externalRefs&quot;: [ # ExternalRef
1295 { # 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
1296 &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
1297 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1298 &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
1299 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1300 },
1301 ],
1302 &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
1303 &quot;A String&quot;,
1304 ],
1305 &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
1306 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1307 &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
1308 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1309 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1310 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1311 &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
1312 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1313 },
1314 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
1315 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001316 &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.
1317 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
1318 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1319 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
1320 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1321 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1322 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001323 &quot;A String&quot;,
1324 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001325 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001326 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001327 ],
1328 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1329 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
1330 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001331 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001332 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1333 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1334 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1335 },
1336 },
1337 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1338 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1339 &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.
1340 { # Identifies all occurrences 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
1341 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
1342 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1343 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1344 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1345 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1346 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1347 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001348 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001349 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1350 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1351 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001352 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001353 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001354 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1355 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
1356 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001357 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001358 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1359 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1360 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1361 },
1362 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
1363 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001364 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001365 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1366 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1367 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1368 },
1369 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
1370 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1371 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001372 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001373 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001374 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001375 ],
1376 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1377 },
1378}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001379</div>
1380
1381<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001382 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001383 <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. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001384
1385Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001386 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 -07001387 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001388 The object takes the form of:
1389
1390{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001391 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
1392 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1393 { # Associates `members` with a `role`.
1394 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1395 &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.
1396 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1397 &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.
1398 &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 -07001399 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001400 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1401 &quot;A String&quot;,
1402 ],
1403 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1404 },
1405 ],
1406 &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.
1407 &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).
1408 },
1409}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001410
1411 x__xgafv: string, V1 error format.
1412 Allowed values
1413 1 - v1 error format
1414 2 - v2 error format
1415
1416Returns:
1417 An object of the form:
1418
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001419 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001420 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1421 { # Associates `members` with a `role`.
1422 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1423 &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.
1424 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1425 &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.
1426 &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 -07001427 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001428 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1429 &quot;A String&quot;,
1430 ],
1431 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1432 },
1433 ],
1434 &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.
1435 &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).
1436}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001437</div>
1438
1439<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001440 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001441 <pre>Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, &quot;storage.objects.list&quot; on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001442
1443Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001444 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 -07001445 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001446 The object takes the form of:
1447
1448{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001449 &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).
1450 &quot;A String&quot;,
1451 ],
1452}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453
1454 x__xgafv: string, V1 error format.
1455 Allowed values
1456 1 - v1 error format
1457 2 - v2 error format
1458
1459Returns:
1460 An object of the form:
1461
1462 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001463 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1464 &quot;A String&quot;,
1465 ],
1466}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001467</div>
1468
1469</body></html>