blob: f5e84b136ddeae5e764e1b0aaea0de00d14dfbb0 [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <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 -070084<p class="firstline">Creates a new `Note`.</p>
85<p class="toc_element">
86 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
87<p class="firstline">Deletes the given `Note` from the system.</p>
88<p class="toc_element">
89 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Returns the requested `Note`.</p>
91<p class="toc_element">
92 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the access control policy for a note or an `Occurrence` resource.</p>
94<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070095 <code><a href="#list">list(parent, filter=None, name=None, pageToken=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070096<p class="firstline">Lists all `Notes` for a given project.</p>
97<p class="toc_element">
98 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
99<p class="firstline">Retrieves the next page of results.</p>
100<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700101 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Updates an existing `Note`.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Returns the permissions that a caller has on the specified note or</p>
109<h3>Method Details</h3>
110<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <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 -0700112 <pre>Creates a new `Note`.
113
114Args:
115 parent: string, This field contains the project Id for example:
Bu Sun Kim65020912020-05-20 12:08:20 -0700116&quot;projects/{project_id} (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 The object takes the form of:
119
120{ # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700121 &quot;relatedUrl&quot;: [ # URLs associated with this note
122 { # Metadata for any related URL information
123 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
124 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
125 },
126 ],
127 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
128 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
129 # relationship. Linked occurrences are derived from this or an
130 # equivalent image via:
131 # FROM &lt;Basis.resource_url&gt;
132 # Or an equivalent reference, e.g. a tag of the resource_url.
133 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
134 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
135 &quot;A String&quot;,
136 ],
137 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
138 # representation.
139 # This field can be used as a filter in list requests.
140 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
141 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
142 # Only the name of the final blob is kept.
143 # This field can be used as a filter in list requests.
144 },
145 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
146 # associated occurrence images.
147 },
148 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
149 # field can be used as a filter in list requests.
150 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
151 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
152 &quot;A String&quot;,
153 ],
154 },
155 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700156 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700157 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700158 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700159 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
160 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
161 # CN for a cert), or a reference to an external key (such as a reference to a
162 # key in Cloud Key Management Service).
163 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
164 # `key_id`
165 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
166 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700167 # findings are valid and unchanged. If `key_type` is empty, this defaults
168 # to PEM encoded public keys.
169 #
170 # This field may be empty if `key_id` references an external key.
171 #
172 # For Cloud Build based signatures, this is a PEM encoded public
173 # key. To verify the Cloud Build signature, place the contents of
174 # this field into a file (public.pem). The signature field is base64-decoded
175 # into its binary representation in signature.bin, and the provenance bytes
176 # from `BuildDetails` are base64-decoded into a binary representation in
177 # signed.bin. OpenSSL can then verify the signature:
178 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700179 },
180 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
181 },
182 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
183 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
184 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
185 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
186 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
187 # mechanism for the attached Occurrences (Attestations). This grouping
188 # mechanism also provides a security boundary, since IAM ACLs gate the ability
189 # for a principle to attach an Occurrence to a given Note. It also provides a
190 # single point of lookup to find all attached Attestation Occurrences, even if
191 # they don&#x27;t all live in the same project.
192 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
193 # AttestationAuthority. Because the name of a Note acts as its resource
194 # reference, it is important to disambiguate the canonical name of the Note
195 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
196 # suitable for debug output. Note that these hints should NOT be used to
197 # look up AttestationAuthorities in security sensitive contexts, such as when
198 # looking up Attestations to verify.
199 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700200 },
201 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
203 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
204 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
205 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
206 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
207 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700208 # vulnerability. One entry per (version range and cpe_uri) the
209 # package vulnerability has manifested in.
210 { # Identifies all occurrences of this vulnerability in the package for a
211 # specific distro/location
212 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700214 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700215 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
216 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700217 # format. Examples include distro or storage location for vulnerable jar.
218 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;package&quot;: &quot;A String&quot;, # The package being described.
220 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 # filter in list requests.
222 # For a discussion of this in Debian/Ubuntu:
223 # http://serverfault.com/questions/604541/debian-packages-version-convention
224 # For a discussion of this in Redhat/Fedora/Centos:
225 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700226 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
227 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700228 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
230 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700231 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 },
233 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
234 # node.js packages etc)
235 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
236 # which the vulnerability manifests. Examples include distro or storage
237 # location for vulnerable jar.
238 # This field can be used as a filter in list requests.
239 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
240 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
241 # For a discussion of this in Debian/Ubuntu:
242 # http://serverfault.com/questions/604541/debian-packages-version-convention
243 # For a discussion of this in Redhat/Fedora/Centos:
244 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
245 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
246 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
247 # If kind is not NORMAL, then the other fields are ignored.
248 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
249 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
250 },
251 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
252 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
253 # This field can be used as a filter in list requests.
254 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
255 # For a discussion of this in Debian/Ubuntu:
256 # http://serverfault.com/questions/604541/debian-packages-version-convention
257 # For a discussion of this in Redhat/Fedora/Centos:
258 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
259 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
260 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
261 # If kind is not NORMAL, then the other fields are ignored.
262 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
263 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 },
265 },
266 ],
267 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
269 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
270 # bash 4.1.2), there will be a Upgrade Note.
271 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
272 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
273 # For a discussion of this in Debian/Ubuntu:
274 # http://serverfault.com/questions/604541/debian-packages-version-convention
275 # For a discussion of this in Redhat/Fedora/Centos:
276 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
277 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
278 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
279 # If kind is not NORMAL, then the other fields are ignored.
280 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
281 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
282 },
283 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
284 { # The Upgrade Distribution represents metadata about the Upgrade for each
285 # operating system (CPE). Some distributions have additional metadata around
286 # updates, classifying them into various categories and severities.
287 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
288 &quot;A String&quot;,
289 ],
290 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
291 # upstream operating system upgrade feed.
292 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
293 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
294 # https://cpe.mitre.org/specification/.
295 },
296 ],
297 },
298 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700299 # various channels.
300 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700301 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
302 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700303 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700304 # e.g. Debian&#x27;s jessie-backports dpkg mirror
305 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
306 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700307 # this distribution channel.
308 # For a discussion of this in Debian/Ubuntu:
309 # http://serverfault.com/questions/604541/debian-packages-version-convention
310 # For a discussion of this in Redhat/Fedora/Centos:
311 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700312 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
313 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700314 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700315 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
316 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700317 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700318 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
319 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
320 # denoting the package manager version distributing a package.
321 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
322 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
323 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700324 },
325 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700326 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700328 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
330 # a filter in list requests.
331 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
332 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
333 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700334 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700335 # note for a resource indicates that analysis hasn&#x27;t started.
336 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700337 },
338}
339
340 name: string, The name of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700341Should be of the form &quot;providers/{provider_id}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700342@Deprecated
343 noteId: string, The ID to use for this note.
344 x__xgafv: string, V1 error format.
345 Allowed values
346 1 - v1 error format
347 2 - v2 error format
348
349Returns:
350 An object of the form:
351
352 { # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;relatedUrl&quot;: [ # URLs associated with this note
354 { # Metadata for any related URL information
355 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
356 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
357 },
358 ],
359 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
360 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
361 # relationship. Linked occurrences are derived from this or an
362 # equivalent image via:
363 # FROM &lt;Basis.resource_url&gt;
364 # Or an equivalent reference, e.g. a tag of the resource_url.
365 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
366 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
367 &quot;A String&quot;,
368 ],
369 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
370 # representation.
371 # This field can be used as a filter in list requests.
372 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
373 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
374 # Only the name of the final blob is kept.
375 # This field can be used as a filter in list requests.
376 },
377 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
378 # associated occurrence images.
379 },
380 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
381 # field can be used as a filter in list requests.
382 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
383 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
384 &quot;A String&quot;,
385 ],
386 },
387 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700389 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700391 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
392 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
393 # CN for a cert), or a reference to an external key (such as a reference to a
394 # key in Cloud Key Management Service).
395 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
396 # `key_id`
397 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
398 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700399 # findings are valid and unchanged. If `key_type` is empty, this defaults
400 # to PEM encoded public keys.
401 #
402 # This field may be empty if `key_id` references an external key.
403 #
404 # For Cloud Build based signatures, this is a PEM encoded public
405 # key. To verify the Cloud Build signature, place the contents of
406 # this field into a file (public.pem). The signature field is base64-decoded
407 # into its binary representation in signature.bin, and the provenance bytes
408 # from `BuildDetails` are base64-decoded into a binary representation in
409 # signed.bin. OpenSSL can then verify the signature:
410 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 },
412 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
413 },
414 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
415 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
416 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
417 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
418 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
419 # mechanism for the attached Occurrences (Attestations). This grouping
420 # mechanism also provides a security boundary, since IAM ACLs gate the ability
421 # for a principle to attach an Occurrence to a given Note. It also provides a
422 # single point of lookup to find all attached Attestation Occurrences, even if
423 # they don&#x27;t all live in the same project.
424 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
425 # AttestationAuthority. Because the name of a Note acts as its resource
426 # reference, it is important to disambiguate the canonical name of the Note
427 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
428 # suitable for debug output. Note that these hints should NOT be used to
429 # look up AttestationAuthorities in security sensitive contexts, such as when
430 # looking up Attestations to verify.
431 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700432 },
433 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700434 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
435 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
436 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
437 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
438 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
439 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 # vulnerability. One entry per (version range and cpe_uri) the
441 # package vulnerability has manifested in.
442 { # Identifies all occurrences of this vulnerability in the package for a
443 # specific distro/location
444 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700446 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700447 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
448 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700449 # format. Examples include distro or storage location for vulnerable jar.
450 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;package&quot;: &quot;A String&quot;, # The package being described.
452 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 # filter in list requests.
454 # For a discussion of this in Debian/Ubuntu:
455 # http://serverfault.com/questions/604541/debian-packages-version-convention
456 # For a discussion of this in Redhat/Fedora/Centos:
457 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700458 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
459 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700460 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
462 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700463 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 },
465 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
466 # node.js packages etc)
467 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
468 # which the vulnerability manifests. Examples include distro or storage
469 # location for vulnerable jar.
470 # This field can be used as a filter in list requests.
471 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
472 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
473 # For a discussion of this in Debian/Ubuntu:
474 # http://serverfault.com/questions/604541/debian-packages-version-convention
475 # For a discussion of this in Redhat/Fedora/Centos:
476 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
477 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
478 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
479 # If kind is not NORMAL, then the other fields are ignored.
480 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
481 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
482 },
483 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
484 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
485 # This field can be used as a filter in list requests.
486 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
487 # For a discussion of this in Debian/Ubuntu:
488 # http://serverfault.com/questions/604541/debian-packages-version-convention
489 # For a discussion of this in Redhat/Fedora/Centos:
490 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
491 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
492 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
493 # If kind is not NORMAL, then the other fields are ignored.
494 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
495 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496 },
497 },
498 ],
499 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700500 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
501 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
502 # bash 4.1.2), there will be a Upgrade Note.
503 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
504 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
505 # For a discussion of this in Debian/Ubuntu:
506 # http://serverfault.com/questions/604541/debian-packages-version-convention
507 # For a discussion of this in Redhat/Fedora/Centos:
508 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
509 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
510 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
511 # If kind is not NORMAL, then the other fields are ignored.
512 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
513 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
514 },
515 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
516 { # The Upgrade Distribution represents metadata about the Upgrade for each
517 # operating system (CPE). Some distributions have additional metadata around
518 # updates, classifying them into various categories and severities.
519 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
520 &quot;A String&quot;,
521 ],
522 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
523 # upstream operating system upgrade feed.
524 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
525 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
526 # https://cpe.mitre.org/specification/.
527 },
528 ],
529 },
530 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700531 # various channels.
532 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
534 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700535 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700536 # e.g. Debian&#x27;s jessie-backports dpkg mirror
537 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
538 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700539 # this distribution channel.
540 # For a discussion of this in Debian/Ubuntu:
541 # http://serverfault.com/questions/604541/debian-packages-version-convention
542 # For a discussion of this in Redhat/Fedora/Centos:
543 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700544 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
545 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700546 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
548 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700549 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700550 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
551 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
552 # denoting the package manager version distributing a package.
553 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
554 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
555 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700556 },
557 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700558 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700559 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700560 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700561 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
562 # a filter in list requests.
563 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
564 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
565 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700566 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 # note for a resource indicates that analysis hasn&#x27;t started.
568 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569 },
570 }</pre>
571</div>
572
573<div class="method">
574 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
575 <pre>Deletes the given `Note` from the system.
576
577Args:
578 name: string, The name of the note in the form of
Bu Sun Kim65020912020-05-20 12:08:20 -0700579&quot;providers/{provider_id}/notes/{NOTE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700580 x__xgafv: string, V1 error format.
581 Allowed values
582 1 - v1 error format
583 2 - v2 error format
584
585Returns:
586 An object of the form:
587
588 { # A generic empty message that you can re-use to avoid defining duplicated
589 # empty messages in your APIs. A typical example is to use it as the request
590 # or the response type of an API method. For instance:
591 #
592 # service Foo {
593 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
594 # }
595 #
596 # The JSON representation for `Empty` is empty JSON object `{}`.
597 }</pre>
598</div>
599
600<div class="method">
601 <code class="details" id="get">get(name, x__xgafv=None)</code>
602 <pre>Returns the requested `Note`.
603
604Args:
605 name: string, The name of the note in the form of
Bu Sun Kim65020912020-05-20 12:08:20 -0700606&quot;providers/{provider_id}/notes/{NOTE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700607 x__xgafv: string, V1 error format.
608 Allowed values
609 1 - v1 error format
610 2 - v2 error format
611
612Returns:
613 An object of the form:
614
615 { # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700616 &quot;relatedUrl&quot;: [ # URLs associated with this note
617 { # Metadata for any related URL information
618 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
619 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
620 },
621 ],
622 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
623 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
624 # relationship. Linked occurrences are derived from this or an
625 # equivalent image via:
626 # FROM &lt;Basis.resource_url&gt;
627 # Or an equivalent reference, e.g. a tag of the resource_url.
628 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
629 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
630 &quot;A String&quot;,
631 ],
632 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
633 # representation.
634 # This field can be used as a filter in list requests.
635 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
636 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
637 # Only the name of the final blob is kept.
638 # This field can be used as a filter in list requests.
639 },
640 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
641 # associated occurrence images.
642 },
643 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
644 # field can be used as a filter in list requests.
645 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
646 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
647 &quot;A String&quot;,
648 ],
649 },
650 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700651 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700652 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700653 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700654 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
655 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
656 # CN for a cert), or a reference to an external key (such as a reference to a
657 # key in Cloud Key Management Service).
658 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
659 # `key_id`
660 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
661 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700662 # findings are valid and unchanged. If `key_type` is empty, this defaults
663 # to PEM encoded public keys.
664 #
665 # This field may be empty if `key_id` references an external key.
666 #
667 # For Cloud Build based signatures, this is a PEM encoded public
668 # key. To verify the Cloud Build signature, place the contents of
669 # this field into a file (public.pem). The signature field is base64-decoded
670 # into its binary representation in signature.bin, and the provenance bytes
671 # from `BuildDetails` are base64-decoded into a binary representation in
672 # signed.bin. OpenSSL can then verify the signature:
673 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700674 },
675 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
676 },
677 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
678 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
679 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
680 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
681 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
682 # mechanism for the attached Occurrences (Attestations). This grouping
683 # mechanism also provides a security boundary, since IAM ACLs gate the ability
684 # for a principle to attach an Occurrence to a given Note. It also provides a
685 # single point of lookup to find all attached Attestation Occurrences, even if
686 # they don&#x27;t all live in the same project.
687 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
688 # AttestationAuthority. Because the name of a Note acts as its resource
689 # reference, it is important to disambiguate the canonical name of the Note
690 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
691 # suitable for debug output. Note that these hints should NOT be used to
692 # look up AttestationAuthorities in security sensitive contexts, such as when
693 # looking up Attestations to verify.
694 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700695 },
696 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700697 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
698 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
699 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
700 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
701 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
702 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700703 # vulnerability. One entry per (version range and cpe_uri) the
704 # package vulnerability has manifested in.
705 { # Identifies all occurrences of this vulnerability in the package for a
706 # specific distro/location
707 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
711 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700712 # format. Examples include distro or storage location for vulnerable jar.
713 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;package&quot;: &quot;A String&quot;, # The package being described.
715 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700716 # filter in list requests.
717 # For a discussion of this in Debian/Ubuntu:
718 # http://serverfault.com/questions/604541/debian-packages-version-convention
719 # For a discussion of this in Redhat/Fedora/Centos:
720 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700721 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
722 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700723 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
725 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700726 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700727 },
728 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
729 # node.js packages etc)
730 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
731 # which the vulnerability manifests. Examples include distro or storage
732 # location for vulnerable jar.
733 # This field can be used as a filter in list requests.
734 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
735 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
736 # For a discussion of this in Debian/Ubuntu:
737 # http://serverfault.com/questions/604541/debian-packages-version-convention
738 # For a discussion of this in Redhat/Fedora/Centos:
739 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
740 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
741 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
742 # If kind is not NORMAL, then the other fields are ignored.
743 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
744 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
745 },
746 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
747 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
748 # This field can be used as a filter in list requests.
749 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
750 # For a discussion of this in Debian/Ubuntu:
751 # http://serverfault.com/questions/604541/debian-packages-version-convention
752 # For a discussion of this in Redhat/Fedora/Centos:
753 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
754 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
755 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
756 # If kind is not NORMAL, then the other fields are ignored.
757 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
758 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 },
760 },
761 ],
762 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700763 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
764 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
765 # bash 4.1.2), there will be a Upgrade Note.
766 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
767 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
768 # For a discussion of this in Debian/Ubuntu:
769 # http://serverfault.com/questions/604541/debian-packages-version-convention
770 # For a discussion of this in Redhat/Fedora/Centos:
771 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
772 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
773 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
774 # If kind is not NORMAL, then the other fields are ignored.
775 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
776 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
777 },
778 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
779 { # The Upgrade Distribution represents metadata about the Upgrade for each
780 # operating system (CPE). Some distributions have additional metadata around
781 # updates, classifying them into various categories and severities.
782 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
783 &quot;A String&quot;,
784 ],
785 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
786 # upstream operating system upgrade feed.
787 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
788 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
789 # https://cpe.mitre.org/specification/.
790 },
791 ],
792 },
793 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794 # various channels.
795 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
797 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700798 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700799 # e.g. Debian&#x27;s jessie-backports dpkg mirror
800 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
801 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700802 # this distribution channel.
803 # For a discussion of this in Debian/Ubuntu:
804 # http://serverfault.com/questions/604541/debian-packages-version-convention
805 # For a discussion of this in Redhat/Fedora/Centos:
806 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700807 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
808 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
811 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700813 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
814 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
815 # denoting the package manager version distributing a package.
816 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
817 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
818 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700819 },
820 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700821 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700823 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700824 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
825 # a filter in list requests.
826 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
827 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
828 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700829 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700830 # note for a resource indicates that analysis hasn&#x27;t started.
831 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700832 },
833 }</pre>
834</div>
835
836<div class="method">
837 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
838 <pre>Gets the access control policy for a note or an `Occurrence` resource.
839Requires `containeranalysis.notes.setIamPolicy` or
840`containeranalysis.occurrences.setIamPolicy` permission if the resource is
841a note or occurrence, respectively.
842Attempting to call this method on a resource without the required
843permission will result in a `PERMISSION_DENIED` error. Attempting to call
844this method on a non-existent resource will result in a `NOT_FOUND` error
845if the user has list permission on the project, or a `PERMISSION_DENIED`
846error otherwise. The resource takes the following formats:
847`projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and
848projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
849
850Args:
851 resource: string, REQUIRED: The resource for which the policy is being requested.
852See the operation documentation for the appropriate value for this field. (required)
853 body: object, The request body.
854 The object takes the form of:
855
856{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -0700857 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -0700858 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700859 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -0700860 #
861 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
862 # rejected.
863 #
864 # Requests for policies with any conditional bindings must specify version 3.
865 # Policies without any conditional bindings may specify any valid value or
866 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -0700867 #
868 # To learn which resources support conditions in their IAM policies, see the
869 # [IAM
870 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 }
873
874 x__xgafv: string, V1 error format.
875 Allowed values
876 1 - v1 error format
877 2 - v2 error format
878
879Returns:
880 An object of the form:
881
Dan O'Mearadd494642020-05-01 07:42:23 -0700882 { # An Identity and Access Management (IAM) policy, which specifies access
883 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700884 #
885 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700886 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
887 # `members` to a single `role`. Members can be user accounts, service accounts,
888 # Google groups, and domains (such as G Suite). A `role` is a named list of
889 # permissions; each `role` can be an IAM predefined role or a user-created
890 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700891 #
Bu Sun Kim65020912020-05-20 12:08:20 -0700892 # For some types of Google Cloud resources, a `binding` can also specify a
893 # `condition`, which is a logical expression that allows access to a resource
894 # only if the expression evaluates to `true`. A condition can add constraints
895 # based on attributes of the request, the resource, or both. To learn which
896 # resources support conditions in their IAM policies, see the
897 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -0700898 #
899 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700900 #
901 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700902 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700903 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700904 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
905 # &quot;members&quot;: [
906 # &quot;user:mike@example.com&quot;,
907 # &quot;group:admins@example.com&quot;,
908 # &quot;domain:google.com&quot;,
909 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 # ]
911 # },
912 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700913 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
914 # &quot;members&quot;: [
915 # &quot;user:eve@example.com&quot;
916 # ],
917 # &quot;condition&quot;: {
918 # &quot;title&quot;: &quot;expirable access&quot;,
919 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
920 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700921 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700922 # }
Dan O'Mearadd494642020-05-01 07:42:23 -0700923 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700924 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
925 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700926 # }
927 #
Dan O'Mearadd494642020-05-01 07:42:23 -0700928 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700929 #
930 # bindings:
931 # - members:
932 # - user:mike@example.com
933 # - group:admins@example.com
934 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -0700935 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
936 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700937 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -0700938 # - user:eve@example.com
939 # role: roles/resourcemanager.organizationViewer
940 # condition:
941 # title: expirable access
942 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -0700944 # - etag: BwWWja0YfJA=
945 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700946 #
947 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -0700948 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -0700949 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
950 # prevent simultaneous updates of a policy from overwriting each other.
951 # It is strongly suggested that systems make use of the `etag` in the
952 # read-modify-write cycle to perform policy updates in order to avoid race
953 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
954 # systems are expected to put that etag in the request to `setIamPolicy` to
955 # ensure that their change will be applied to the same version of the policy.
956 #
957 # **Important:** If you use IAM Conditions, you must include the `etag` field
958 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
959 # you to overwrite a version `3` policy with a version `1` policy, and all of
960 # the conditions in the version `3` policy are lost.
961 &quot;version&quot;: 42, # Specifies the format of the policy.
962 #
963 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
964 # are rejected.
965 #
966 # Any operation that affects conditional role bindings must specify version
967 # `3`. This requirement applies to the following operations:
968 #
969 # * Getting a policy that includes a conditional role binding
970 # * Adding a conditional role binding to a policy
971 # * Changing a conditional role binding in a policy
972 # * Removing any role binding, with or without a condition, from a policy
973 # that includes conditions
974 #
975 # **Important:** If you use IAM Conditions, you must include the `etag` field
976 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
977 # you to overwrite a version `3` policy with a version `1` policy, and all of
978 # the conditions in the version `3` policy are lost.
979 #
980 # If a policy does not include any conditions, operations on that policy may
981 # specify any valid version or leave the field unset.
982 #
983 # To learn which resources support conditions in their IAM policies, see the
984 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
985 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -0700986 # `condition` that determines how and when the `bindings` are applied. Each
987 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700988 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700989 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
990 #
991 # If the condition evaluates to `true`, then this binding applies to the
992 # current request.
993 #
994 # If the condition evaluates to `false`, then this binding does not apply to
995 # the current request. However, a different role binding might grant the same
996 # role to one or more of the members in this binding.
997 #
998 # To learn which resources support conditions in their IAM policies, see the
999 # [IAM
1000 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1001 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1002 # are documented at https://github.com/google/cel-spec.
1003 #
1004 # Example (Comparison):
1005 #
1006 # title: &quot;Summary size limit&quot;
1007 # description: &quot;Determines if a summary is less than 100 chars&quot;
1008 # expression: &quot;document.summary.size() &lt; 100&quot;
1009 #
1010 # Example (Equality):
1011 #
1012 # title: &quot;Requestor is owner&quot;
1013 # description: &quot;Determines if requestor is the document owner&quot;
1014 # expression: &quot;document.owner == request.auth.claims.email&quot;
1015 #
1016 # Example (Logic):
1017 #
1018 # title: &quot;Public documents&quot;
1019 # description: &quot;Determine whether the document should be publicly visible&quot;
1020 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1021 #
1022 # Example (Data Manipulation):
1023 #
1024 # title: &quot;Notification string&quot;
1025 # description: &quot;Create a notification string with a timestamp.&quot;
1026 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1027 #
1028 # The exact variables and functions that may be referenced within an expression
1029 # are determined by the service that evaluates it. See the service
1030 # documentation for additional information.
1031 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1032 # syntax.
1033 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1034 # its purpose. This can be used e.g. in UIs which allow to enter the
1035 # expression.
1036 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1037 # reporting, e.g. a file name and a position in the file.
1038 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1039 # describes the expression, e.g. when hovered over it in a UI.
1040 },
1041 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001042 # `members` can have the following values:
1043 #
1044 # * `allUsers`: A special identifier that represents anyone who is
1045 # on the internet; with or without a Google account.
1046 #
1047 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1048 # who is authenticated with a Google account or a service account.
1049 #
1050 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001051 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001052 #
1053 #
1054 # * `serviceAccount:{emailid}`: An email address that represents a service
1055 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1056 #
1057 # * `group:{emailid}`: An email address that represents a Google group.
1058 # For example, `admins@example.com`.
1059 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001060 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1061 # identifier) representing a user that has been recently deleted. For
1062 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1063 # recovered, this value reverts to `user:{emailid}` and the recovered user
1064 # retains the role in the binding.
1065 #
1066 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1067 # unique identifier) representing a service account that has been recently
1068 # deleted. For example,
1069 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1070 # If the service account is undeleted, this value reverts to
1071 # `serviceAccount:{emailid}` and the undeleted service account retains the
1072 # role in the binding.
1073 #
1074 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1075 # identifier) representing a Google group that has been recently
1076 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1077 # the group is recovered, this value reverts to `group:{emailid}` and the
1078 # recovered group retains the role in the binding.
1079 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001080 #
1081 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1082 # users of that domain. For example, `google.com` or `example.com`.
1083 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001084 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001085 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1087 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001088 },
1089 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001090 }</pre>
1091</div>
1092
1093<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001094 <code class="details" id="list">list(parent, filter=None, name=None, pageToken=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001095 <pre>Lists all `Notes` for a given project.
1096
1097Args:
Bu Sun Kim65020912020-05-20 12:08:20 -07001098 parent: string, This field contains the project Id for example: &quot;projects/{PROJECT_ID}&quot;. (required)
1099 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001100 name: string, The name field will contain the project Id for example:
Bu Sun Kim65020912020-05-20 12:08:20 -07001101&quot;providers/{provider_id}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001102@Deprecated
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001103 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001104 pageSize: integer, Number of notes to return in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001105 x__xgafv: string, V1 error format.
1106 Allowed values
1107 1 - v1 error format
1108 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001109
1110Returns:
1111 An object of the form:
1112
1113 { # Response including listed notes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001114 &quot;notes&quot;: [ # The occurrences requested
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001115 { # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001116 &quot;relatedUrl&quot;: [ # URLs associated with this note
1117 { # Metadata for any related URL information
1118 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1119 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1120 },
1121 ],
1122 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1123 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1124 # relationship. Linked occurrences are derived from this or an
1125 # equivalent image via:
1126 # FROM &lt;Basis.resource_url&gt;
1127 # Or an equivalent reference, e.g. a tag of the resource_url.
1128 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1129 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1130 &quot;A String&quot;,
1131 ],
1132 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1133 # representation.
1134 # This field can be used as a filter in list requests.
1135 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1136 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1137 # Only the name of the final blob is kept.
1138 # This field can be used as a filter in list requests.
1139 },
1140 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
1141 # associated occurrence images.
1142 },
1143 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
1144 # field can be used as a filter in list requests.
1145 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1146 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1147 &quot;A String&quot;,
1148 ],
1149 },
1150 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001151 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001152 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001153 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001154 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1155 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1156 # CN for a cert), or a reference to an external key (such as a reference to a
1157 # key in Cloud Key Management Service).
1158 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1159 # `key_id`
1160 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1161 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001162 # findings are valid and unchanged. If `key_type` is empty, this defaults
1163 # to PEM encoded public keys.
1164 #
1165 # This field may be empty if `key_id` references an external key.
1166 #
1167 # For Cloud Build based signatures, this is a PEM encoded public
1168 # key. To verify the Cloud Build signature, place the contents of
1169 # this field into a file (public.pem). The signature field is base64-decoded
1170 # into its binary representation in signature.bin, and the provenance bytes
1171 # from `BuildDetails` are base64-decoded into a binary representation in
1172 # signed.bin. OpenSSL can then verify the signature:
1173 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001174 },
1175 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1176 },
1177 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1178 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1179 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1180 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
1181 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
1182 # mechanism for the attached Occurrences (Attestations). This grouping
1183 # mechanism also provides a security boundary, since IAM ACLs gate the ability
1184 # for a principle to attach an Occurrence to a given Note. It also provides a
1185 # single point of lookup to find all attached Attestation Occurrences, even if
1186 # they don&#x27;t all live in the same project.
1187 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
1188 # AttestationAuthority. Because the name of a Note acts as its resource
1189 # reference, it is important to disambiguate the canonical name of the Note
1190 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
1191 # suitable for debug output. Note that these hints should NOT be used to
1192 # look up AttestationAuthorities in security sensitive contexts, such as when
1193 # looking up Attestations to verify.
1194 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001195 },
1196 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
1198 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1199 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1200 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1201 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1202 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001203 # vulnerability. One entry per (version range and cpe_uri) the
1204 # package vulnerability has manifested in.
1205 { # Identifies all occurrences of this vulnerability in the package for a
1206 # specific distro/location
1207 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001209 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001210 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1211 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001212 # format. Examples include distro or storage location for vulnerable jar.
1213 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1215 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001216 # filter in list requests.
1217 # For a discussion of this in Debian/Ubuntu:
1218 # http://serverfault.com/questions/604541/debian-packages-version-convention
1219 # For a discussion of this in Redhat/Fedora/Centos:
1220 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001221 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1222 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001223 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1225 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001226 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 },
1228 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1229 # node.js packages etc)
1230 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1231 # which the vulnerability manifests. Examples include distro or storage
1232 # location for vulnerable jar.
1233 # This field can be used as a filter in list requests.
1234 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1235 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1236 # For a discussion of this in Debian/Ubuntu:
1237 # http://serverfault.com/questions/604541/debian-packages-version-convention
1238 # For a discussion of this in Redhat/Fedora/Centos:
1239 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1240 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1241 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1242 # If kind is not NORMAL, then the other fields are ignored.
1243 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1244 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1245 },
1246 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1247 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1248 # This field can be used as a filter in list requests.
1249 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1250 # For a discussion of this in Debian/Ubuntu:
1251 # http://serverfault.com/questions/604541/debian-packages-version-convention
1252 # For a discussion of this in Redhat/Fedora/Centos:
1253 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1254 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1255 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1256 # If kind is not NORMAL, then the other fields are ignored.
1257 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1258 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 },
1260 },
1261 ],
1262 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001263 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
1264 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
1265 # bash 4.1.2), there will be a Upgrade Note.
1266 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1267 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1268 # For a discussion of this in Debian/Ubuntu:
1269 # http://serverfault.com/questions/604541/debian-packages-version-convention
1270 # For a discussion of this in Redhat/Fedora/Centos:
1271 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1272 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1273 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1274 # If kind is not NORMAL, then the other fields are ignored.
1275 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1276 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1277 },
1278 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1279 { # The Upgrade Distribution represents metadata about the Upgrade for each
1280 # operating system (CPE). Some distributions have additional metadata around
1281 # updates, classifying them into various categories and severities.
1282 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1283 &quot;A String&quot;,
1284 ],
1285 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1286 # upstream operating system upgrade feed.
1287 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1288 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1289 # https://cpe.mitre.org/specification/.
1290 },
1291 ],
1292 },
1293 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001294 # various channels.
1295 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001296 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1297 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001298 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001299 # e.g. Debian&#x27;s jessie-backports dpkg mirror
1300 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1301 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001302 # this distribution channel.
1303 # For a discussion of this in Debian/Ubuntu:
1304 # http://serverfault.com/questions/604541/debian-packages-version-convention
1305 # For a discussion of this in Redhat/Fedora/Centos:
1306 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001307 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1308 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001309 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001310 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1311 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001312 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001313 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1314 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1315 # denoting the package manager version distributing a package.
1316 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1317 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1318 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001319 },
1320 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001321 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001322 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001323 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001324 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1325 # a filter in list requests.
1326 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1327 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1328 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001329 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001330 # note for a resource indicates that analysis hasn&#x27;t started.
1331 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001332 },
1333 },
1334 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as
1336 # page_token for the following request. An empty value means no more result.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001337 }</pre>
1338</div>
1339
1340<div class="method">
1341 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1342 <pre>Retrieves the next page of results.
1343
1344Args:
1345 previous_request: The request for the previous page. (required)
1346 previous_response: The response from the request for the previous page. (required)
1347
1348Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001349 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001350 page. Returns None if there are no more items in the collection.
1351 </pre>
1352</div>
1353
1354<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001355 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001356 <pre>Updates an existing `Note`.
1357
1358Args:
1359 name: string, The name of the note.
Bu Sun Kim65020912020-05-20 12:08:20 -07001360Should be of the form &quot;projects/{provider_id}/notes/{note_id}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001361 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001362 The object takes the form of:
1363
1364{ # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001365 &quot;relatedUrl&quot;: [ # URLs associated with this note
1366 { # Metadata for any related URL information
1367 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1368 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1369 },
1370 ],
1371 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1372 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1373 # relationship. Linked occurrences are derived from this or an
1374 # equivalent image via:
1375 # FROM &lt;Basis.resource_url&gt;
1376 # Or an equivalent reference, e.g. a tag of the resource_url.
1377 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1378 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1379 &quot;A String&quot;,
1380 ],
1381 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1382 # representation.
1383 # This field can be used as a filter in list requests.
1384 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1385 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1386 # Only the name of the final blob is kept.
1387 # This field can be used as a filter in list requests.
1388 },
1389 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
1390 # associated occurrence images.
1391 },
1392 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
1393 # field can be used as a filter in list requests.
1394 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1395 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1396 &quot;A String&quot;,
1397 ],
1398 },
1399 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001400 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001401 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001402 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001403 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1404 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1405 # CN for a cert), or a reference to an external key (such as a reference to a
1406 # key in Cloud Key Management Service).
1407 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1408 # `key_id`
1409 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1410 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001411 # findings are valid and unchanged. If `key_type` is empty, this defaults
1412 # to PEM encoded public keys.
1413 #
1414 # This field may be empty if `key_id` references an external key.
1415 #
1416 # For Cloud Build based signatures, this is a PEM encoded public
1417 # key. To verify the Cloud Build signature, place the contents of
1418 # this field into a file (public.pem). The signature field is base64-decoded
1419 # into its binary representation in signature.bin, and the provenance bytes
1420 # from `BuildDetails` are base64-decoded into a binary representation in
1421 # signed.bin. OpenSSL can then verify the signature:
1422 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001423 },
1424 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1425 },
1426 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1427 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1428 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1429 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
1430 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
1431 # mechanism for the attached Occurrences (Attestations). This grouping
1432 # mechanism also provides a security boundary, since IAM ACLs gate the ability
1433 # for a principle to attach an Occurrence to a given Note. It also provides a
1434 # single point of lookup to find all attached Attestation Occurrences, even if
1435 # they don&#x27;t all live in the same project.
1436 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
1437 # AttestationAuthority. Because the name of a Note acts as its resource
1438 # reference, it is important to disambiguate the canonical name of the Note
1439 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
1440 # suitable for debug output. Note that these hints should NOT be used to
1441 # look up AttestationAuthorities in security sensitive contexts, such as when
1442 # looking up Attestations to verify.
1443 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001444 },
1445 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001446 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
1447 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1448 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1449 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1450 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1451 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001452 # vulnerability. One entry per (version range and cpe_uri) the
1453 # package vulnerability has manifested in.
1454 { # Identifies all occurrences of this vulnerability in the package for a
1455 # specific distro/location
1456 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001457 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001458 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001459 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1460 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001461 # format. Examples include distro or storage location for vulnerable jar.
1462 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1464 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001465 # filter in list requests.
1466 # For a discussion of this in Debian/Ubuntu:
1467 # http://serverfault.com/questions/604541/debian-packages-version-convention
1468 # For a discussion of this in Redhat/Fedora/Centos:
1469 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001470 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1471 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001472 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1474 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001475 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001476 },
1477 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1478 # node.js packages etc)
1479 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1480 # which the vulnerability manifests. Examples include distro or storage
1481 # location for vulnerable jar.
1482 # This field can be used as a filter in list requests.
1483 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1484 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1485 # For a discussion of this in Debian/Ubuntu:
1486 # http://serverfault.com/questions/604541/debian-packages-version-convention
1487 # For a discussion of this in Redhat/Fedora/Centos:
1488 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1489 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1490 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1491 # If kind is not NORMAL, then the other fields are ignored.
1492 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1493 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1494 },
1495 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1496 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1497 # This field can be used as a filter in list requests.
1498 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1499 # For a discussion of this in Debian/Ubuntu:
1500 # http://serverfault.com/questions/604541/debian-packages-version-convention
1501 # For a discussion of this in Redhat/Fedora/Centos:
1502 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1503 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1504 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1505 # If kind is not NORMAL, then the other fields are ignored.
1506 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1507 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508 },
1509 },
1510 ],
1511 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001512 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
1513 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
1514 # bash 4.1.2), there will be a Upgrade Note.
1515 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1516 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1517 # For a discussion of this in Debian/Ubuntu:
1518 # http://serverfault.com/questions/604541/debian-packages-version-convention
1519 # For a discussion of this in Redhat/Fedora/Centos:
1520 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1521 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1522 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1523 # If kind is not NORMAL, then the other fields are ignored.
1524 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1525 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1526 },
1527 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1528 { # The Upgrade Distribution represents metadata about the Upgrade for each
1529 # operating system (CPE). Some distributions have additional metadata around
1530 # updates, classifying them into various categories and severities.
1531 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1532 &quot;A String&quot;,
1533 ],
1534 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1535 # upstream operating system upgrade feed.
1536 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1537 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1538 # https://cpe.mitre.org/specification/.
1539 },
1540 ],
1541 },
1542 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001543 # various channels.
1544 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001545 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1546 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001547 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 # e.g. Debian&#x27;s jessie-backports dpkg mirror
1549 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1550 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001551 # this distribution channel.
1552 # For a discussion of this in Debian/Ubuntu:
1553 # http://serverfault.com/questions/604541/debian-packages-version-convention
1554 # For a discussion of this in Redhat/Fedora/Centos:
1555 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1557 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001558 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001559 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1560 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001561 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001562 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1563 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1564 # denoting the package manager version distributing a package.
1565 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1566 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1567 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001568 },
1569 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001570 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001571 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001572 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001573 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1574 # a filter in list requests.
1575 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1576 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1577 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001578 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001579 # note for a resource indicates that analysis hasn&#x27;t started.
1580 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001581 },
1582}
1583
1584 updateMask: string, The fields to update.
1585 x__xgafv: string, V1 error format.
1586 Allowed values
1587 1 - v1 error format
1588 2 - v2 error format
1589
1590Returns:
1591 An object of the form:
1592
1593 { # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001594 &quot;relatedUrl&quot;: [ # URLs associated with this note
1595 { # Metadata for any related URL information
1596 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1597 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1598 },
1599 ],
1600 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1601 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1602 # relationship. Linked occurrences are derived from this or an
1603 # equivalent image via:
1604 # FROM &lt;Basis.resource_url&gt;
1605 # Or an equivalent reference, e.g. a tag of the resource_url.
1606 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1607 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1608 &quot;A String&quot;,
1609 ],
1610 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1611 # representation.
1612 # This field can be used as a filter in list requests.
1613 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1614 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1615 # Only the name of the final blob is kept.
1616 # This field can be used as a filter in list requests.
1617 },
1618 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
1619 # associated occurrence images.
1620 },
1621 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
1622 # field can be used as a filter in list requests.
1623 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1624 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1625 &quot;A String&quot;,
1626 ],
1627 },
1628 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001629 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001630 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001631 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001632 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1633 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1634 # CN for a cert), or a reference to an external key (such as a reference to a
1635 # key in Cloud Key Management Service).
1636 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1637 # `key_id`
1638 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1639 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640 # findings are valid and unchanged. If `key_type` is empty, this defaults
1641 # to PEM encoded public keys.
1642 #
1643 # This field may be empty if `key_id` references an external key.
1644 #
1645 # For Cloud Build based signatures, this is a PEM encoded public
1646 # key. To verify the Cloud Build signature, place the contents of
1647 # this field into a file (public.pem). The signature field is base64-decoded
1648 # into its binary representation in signature.bin, and the provenance bytes
1649 # from `BuildDetails` are base64-decoded into a binary representation in
1650 # signed.bin. OpenSSL can then verify the signature:
1651 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001652 },
1653 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1654 },
1655 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1656 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1657 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1658 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
1659 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
1660 # mechanism for the attached Occurrences (Attestations). This grouping
1661 # mechanism also provides a security boundary, since IAM ACLs gate the ability
1662 # for a principle to attach an Occurrence to a given Note. It also provides a
1663 # single point of lookup to find all attached Attestation Occurrences, even if
1664 # they don&#x27;t all live in the same project.
1665 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
1666 # AttestationAuthority. Because the name of a Note acts as its resource
1667 # reference, it is important to disambiguate the canonical name of the Note
1668 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
1669 # suitable for debug output. Note that these hints should NOT be used to
1670 # look up AttestationAuthorities in security sensitive contexts, such as when
1671 # looking up Attestations to verify.
1672 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001673 },
1674 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001675 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
1676 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1677 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1678 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1679 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1680 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001681 # vulnerability. One entry per (version range and cpe_uri) the
1682 # package vulnerability has manifested in.
1683 { # Identifies all occurrences of this vulnerability in the package for a
1684 # specific distro/location
1685 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001686 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001687 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001688 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1689 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001690 # format. Examples include distro or storage location for vulnerable jar.
1691 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001692 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1693 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001694 # filter in list requests.
1695 # For a discussion of this in Debian/Ubuntu:
1696 # http://serverfault.com/questions/604541/debian-packages-version-convention
1697 # For a discussion of this in Redhat/Fedora/Centos:
1698 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001699 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1700 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001701 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001702 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1703 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001704 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001705 },
1706 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1707 # node.js packages etc)
1708 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1709 # which the vulnerability manifests. Examples include distro or storage
1710 # location for vulnerable jar.
1711 # This field can be used as a filter in list requests.
1712 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1713 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1714 # For a discussion of this in Debian/Ubuntu:
1715 # http://serverfault.com/questions/604541/debian-packages-version-convention
1716 # For a discussion of this in Redhat/Fedora/Centos:
1717 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1718 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1719 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1720 # If kind is not NORMAL, then the other fields are ignored.
1721 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1722 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1723 },
1724 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1725 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1726 # This field can be used as a filter in list requests.
1727 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1728 # For a discussion of this in Debian/Ubuntu:
1729 # http://serverfault.com/questions/604541/debian-packages-version-convention
1730 # For a discussion of this in Redhat/Fedora/Centos:
1731 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1732 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1733 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1734 # If kind is not NORMAL, then the other fields are ignored.
1735 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1736 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 },
1738 },
1739 ],
1740 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001741 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
1742 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
1743 # bash 4.1.2), there will be a Upgrade Note.
1744 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1745 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1746 # For a discussion of this in Debian/Ubuntu:
1747 # http://serverfault.com/questions/604541/debian-packages-version-convention
1748 # For a discussion of this in Redhat/Fedora/Centos:
1749 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1750 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1751 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1752 # If kind is not NORMAL, then the other fields are ignored.
1753 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1754 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1755 },
1756 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1757 { # The Upgrade Distribution represents metadata about the Upgrade for each
1758 # operating system (CPE). Some distributions have additional metadata around
1759 # updates, classifying them into various categories and severities.
1760 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1761 &quot;A String&quot;,
1762 ],
1763 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1764 # upstream operating system upgrade feed.
1765 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1766 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1767 # https://cpe.mitre.org/specification/.
1768 },
1769 ],
1770 },
1771 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001772 # various channels.
1773 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001774 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1775 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001776 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 # e.g. Debian&#x27;s jessie-backports dpkg mirror
1778 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1779 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001780 # this distribution channel.
1781 # For a discussion of this in Debian/Ubuntu:
1782 # http://serverfault.com/questions/604541/debian-packages-version-convention
1783 # For a discussion of this in Redhat/Fedora/Centos:
1784 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001785 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1786 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001787 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001788 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1789 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001790 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001791 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1792 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1793 # denoting the package manager version distributing a package.
1794 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1795 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1796 # channel were built
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001797 },
1798 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001799 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001800 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001801 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001802 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1803 # a filter in list requests.
1804 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1805 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1806 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001807 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001808 # note for a resource indicates that analysis hasn&#x27;t started.
1809 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001810 },
1811 }</pre>
1812</div>
1813
1814<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001815 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001816 <pre>Sets the access control policy on the specified `Note` or `Occurrence`.
1817Requires `containeranalysis.notes.setIamPolicy` or
1818`containeranalysis.occurrences.setIamPolicy` permission if the resource is
1819a `Note` or an `Occurrence`, respectively.
1820Attempting to call this method without these permissions will result in a `
1821`PERMISSION_DENIED` error.
1822Attempting to call this method on a non-existent resource will result in a
1823`NOT_FOUND` error if the user has `containeranalysis.notes.list` permission
1824on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or
1825a `PERMISSION_DENIED` error otherwise. The resource takes the following
1826formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences
1827and projects/{projectid}/notes/{noteid} for notes
1828
1829Args:
1830 resource: string, REQUIRED: The resource for which the policy is being specified.
1831See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001832 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001833 The object takes the form of:
1834
1835{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001836 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001837 # the policy is limited to a few 10s of KB. An empty policy is a
1838 # valid policy but certain Cloud Platform services (such as Projects)
1839 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07001840 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001841 #
1842 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001843 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1844 # `members` to a single `role`. Members can be user accounts, service accounts,
1845 # Google groups, and domains (such as G Suite). A `role` is a named list of
1846 # permissions; each `role` can be an IAM predefined role or a user-created
1847 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001848 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001849 # For some types of Google Cloud resources, a `binding` can also specify a
1850 # `condition`, which is a logical expression that allows access to a resource
1851 # only if the expression evaluates to `true`. A condition can add constraints
1852 # based on attributes of the request, the resource, or both. To learn which
1853 # resources support conditions in their IAM policies, see the
1854 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001855 #
1856 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001857 #
1858 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001859 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001860 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001861 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1862 # &quot;members&quot;: [
1863 # &quot;user:mike@example.com&quot;,
1864 # &quot;group:admins@example.com&quot;,
1865 # &quot;domain:google.com&quot;,
1866 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001867 # ]
1868 # },
1869 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001870 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1871 # &quot;members&quot;: [
1872 # &quot;user:eve@example.com&quot;
1873 # ],
1874 # &quot;condition&quot;: {
1875 # &quot;title&quot;: &quot;expirable access&quot;,
1876 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1877 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001878 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001879 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001880 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001881 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1882 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001883 # }
1884 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001885 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001886 #
1887 # bindings:
1888 # - members:
1889 # - user:mike@example.com
1890 # - group:admins@example.com
1891 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001892 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1893 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001894 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001895 # - user:eve@example.com
1896 # role: roles/resourcemanager.organizationViewer
1897 # condition:
1898 # title: expirable access
1899 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001900 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001901 # - etag: BwWWja0YfJA=
1902 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001903 #
1904 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001905 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001906 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1907 # prevent simultaneous updates of a policy from overwriting each other.
1908 # It is strongly suggested that systems make use of the `etag` in the
1909 # read-modify-write cycle to perform policy updates in order to avoid race
1910 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1911 # systems are expected to put that etag in the request to `setIamPolicy` to
1912 # ensure that their change will be applied to the same version of the policy.
1913 #
1914 # **Important:** If you use IAM Conditions, you must include the `etag` field
1915 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1916 # you to overwrite a version `3` policy with a version `1` policy, and all of
1917 # the conditions in the version `3` policy are lost.
1918 &quot;version&quot;: 42, # Specifies the format of the policy.
1919 #
1920 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1921 # are rejected.
1922 #
1923 # Any operation that affects conditional role bindings must specify version
1924 # `3`. This requirement applies to the following operations:
1925 #
1926 # * Getting a policy that includes a conditional role binding
1927 # * Adding a conditional role binding to a policy
1928 # * Changing a conditional role binding in a policy
1929 # * Removing any role binding, with or without a condition, from a policy
1930 # that includes conditions
1931 #
1932 # **Important:** If you use IAM Conditions, you must include the `etag` field
1933 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1934 # you to overwrite a version `3` policy with a version `1` policy, and all of
1935 # the conditions in the version `3` policy are lost.
1936 #
1937 # If a policy does not include any conditions, operations on that policy may
1938 # specify any valid version or leave the field unset.
1939 #
1940 # To learn which resources support conditions in their IAM policies, see the
1941 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1942 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001943 # `condition` that determines how and when the `bindings` are applied. Each
1944 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001945 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001946 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1947 #
1948 # If the condition evaluates to `true`, then this binding applies to the
1949 # current request.
1950 #
1951 # If the condition evaluates to `false`, then this binding does not apply to
1952 # the current request. However, a different role binding might grant the same
1953 # role to one or more of the members in this binding.
1954 #
1955 # To learn which resources support conditions in their IAM policies, see the
1956 # [IAM
1957 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1958 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1959 # are documented at https://github.com/google/cel-spec.
1960 #
1961 # Example (Comparison):
1962 #
1963 # title: &quot;Summary size limit&quot;
1964 # description: &quot;Determines if a summary is less than 100 chars&quot;
1965 # expression: &quot;document.summary.size() &lt; 100&quot;
1966 #
1967 # Example (Equality):
1968 #
1969 # title: &quot;Requestor is owner&quot;
1970 # description: &quot;Determines if requestor is the document owner&quot;
1971 # expression: &quot;document.owner == request.auth.claims.email&quot;
1972 #
1973 # Example (Logic):
1974 #
1975 # title: &quot;Public documents&quot;
1976 # description: &quot;Determine whether the document should be publicly visible&quot;
1977 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1978 #
1979 # Example (Data Manipulation):
1980 #
1981 # title: &quot;Notification string&quot;
1982 # description: &quot;Create a notification string with a timestamp.&quot;
1983 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1984 #
1985 # The exact variables and functions that may be referenced within an expression
1986 # are determined by the service that evaluates it. See the service
1987 # documentation for additional information.
1988 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1989 # syntax.
1990 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1991 # its purpose. This can be used e.g. in UIs which allow to enter the
1992 # expression.
1993 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1994 # reporting, e.g. a file name and a position in the file.
1995 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1996 # describes the expression, e.g. when hovered over it in a UI.
1997 },
1998 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001999 # `members` can have the following values:
2000 #
2001 # * `allUsers`: A special identifier that represents anyone who is
2002 # on the internet; with or without a Google account.
2003 #
2004 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2005 # who is authenticated with a Google account or a service account.
2006 #
2007 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002008 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002009 #
2010 #
2011 # * `serviceAccount:{emailid}`: An email address that represents a service
2012 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2013 #
2014 # * `group:{emailid}`: An email address that represents a Google group.
2015 # For example, `admins@example.com`.
2016 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002017 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2018 # identifier) representing a user that has been recently deleted. For
2019 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2020 # recovered, this value reverts to `user:{emailid}` and the recovered user
2021 # retains the role in the binding.
2022 #
2023 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2024 # unique identifier) representing a service account that has been recently
2025 # deleted. For example,
2026 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2027 # If the service account is undeleted, this value reverts to
2028 # `serviceAccount:{emailid}` and the undeleted service account retains the
2029 # role in the binding.
2030 #
2031 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2032 # identifier) representing a Google group that has been recently
2033 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2034 # the group is recovered, this value reverts to `group:{emailid}` and the
2035 # recovered group retains the role in the binding.
2036 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002037 #
2038 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2039 # users of that domain. For example, `google.com` or `example.com`.
2040 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002041 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002042 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2044 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002045 },
2046 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002047 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002048 }
2049
2050 x__xgafv: string, V1 error format.
2051 Allowed values
2052 1 - v1 error format
2053 2 - v2 error format
2054
2055Returns:
2056 An object of the form:
2057
Dan O'Mearadd494642020-05-01 07:42:23 -07002058 { # An Identity and Access Management (IAM) policy, which specifies access
2059 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002060 #
2061 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002062 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2063 # `members` to a single `role`. Members can be user accounts, service accounts,
2064 # Google groups, and domains (such as G Suite). A `role` is a named list of
2065 # permissions; each `role` can be an IAM predefined role or a user-created
2066 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002067 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002068 # For some types of Google Cloud resources, a `binding` can also specify a
2069 # `condition`, which is a logical expression that allows access to a resource
2070 # only if the expression evaluates to `true`. A condition can add constraints
2071 # based on attributes of the request, the resource, or both. To learn which
2072 # resources support conditions in their IAM policies, see the
2073 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002074 #
2075 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002076 #
2077 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002078 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002079 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002080 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2081 # &quot;members&quot;: [
2082 # &quot;user:mike@example.com&quot;,
2083 # &quot;group:admins@example.com&quot;,
2084 # &quot;domain:google.com&quot;,
2085 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002086 # ]
2087 # },
2088 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002089 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2090 # &quot;members&quot;: [
2091 # &quot;user:eve@example.com&quot;
2092 # ],
2093 # &quot;condition&quot;: {
2094 # &quot;title&quot;: &quot;expirable access&quot;,
2095 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2096 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002097 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002098 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07002099 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002100 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2101 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002102 # }
2103 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002104 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002105 #
2106 # bindings:
2107 # - members:
2108 # - user:mike@example.com
2109 # - group:admins@example.com
2110 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07002111 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
2112 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002113 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07002114 # - user:eve@example.com
2115 # role: roles/resourcemanager.organizationViewer
2116 # condition:
2117 # title: expirable access
2118 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07002119 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07002120 # - etag: BwWWja0YfJA=
2121 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002122 #
2123 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07002124 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07002125 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2126 # prevent simultaneous updates of a policy from overwriting each other.
2127 # It is strongly suggested that systems make use of the `etag` in the
2128 # read-modify-write cycle to perform policy updates in order to avoid race
2129 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2130 # systems are expected to put that etag in the request to `setIamPolicy` to
2131 # ensure that their change will be applied to the same version of the policy.
2132 #
2133 # **Important:** If you use IAM Conditions, you must include the `etag` field
2134 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2135 # you to overwrite a version `3` policy with a version `1` policy, and all of
2136 # the conditions in the version `3` policy are lost.
2137 &quot;version&quot;: 42, # Specifies the format of the policy.
2138 #
2139 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2140 # are rejected.
2141 #
2142 # Any operation that affects conditional role bindings must specify version
2143 # `3`. This requirement applies to the following operations:
2144 #
2145 # * Getting a policy that includes a conditional role binding
2146 # * Adding a conditional role binding to a policy
2147 # * Changing a conditional role binding in a policy
2148 # * Removing any role binding, with or without a condition, from a policy
2149 # that includes conditions
2150 #
2151 # **Important:** If you use IAM Conditions, you must include the `etag` field
2152 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2153 # you to overwrite a version `3` policy with a version `1` policy, and all of
2154 # the conditions in the version `3` policy are lost.
2155 #
2156 # If a policy does not include any conditions, operations on that policy may
2157 # specify any valid version or leave the field unset.
2158 #
2159 # To learn which resources support conditions in their IAM policies, see the
2160 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2161 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002162 # `condition` that determines how and when the `bindings` are applied. Each
2163 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002164 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002165 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2166 #
2167 # If the condition evaluates to `true`, then this binding applies to the
2168 # current request.
2169 #
2170 # If the condition evaluates to `false`, then this binding does not apply to
2171 # the current request. However, a different role binding might grant the same
2172 # role to one or more of the members in this binding.
2173 #
2174 # To learn which resources support conditions in their IAM policies, see the
2175 # [IAM
2176 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2177 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2178 # are documented at https://github.com/google/cel-spec.
2179 #
2180 # Example (Comparison):
2181 #
2182 # title: &quot;Summary size limit&quot;
2183 # description: &quot;Determines if a summary is less than 100 chars&quot;
2184 # expression: &quot;document.summary.size() &lt; 100&quot;
2185 #
2186 # Example (Equality):
2187 #
2188 # title: &quot;Requestor is owner&quot;
2189 # description: &quot;Determines if requestor is the document owner&quot;
2190 # expression: &quot;document.owner == request.auth.claims.email&quot;
2191 #
2192 # Example (Logic):
2193 #
2194 # title: &quot;Public documents&quot;
2195 # description: &quot;Determine whether the document should be publicly visible&quot;
2196 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2197 #
2198 # Example (Data Manipulation):
2199 #
2200 # title: &quot;Notification string&quot;
2201 # description: &quot;Create a notification string with a timestamp.&quot;
2202 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2203 #
2204 # The exact variables and functions that may be referenced within an expression
2205 # are determined by the service that evaluates it. See the service
2206 # documentation for additional information.
2207 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2208 # syntax.
2209 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2210 # its purpose. This can be used e.g. in UIs which allow to enter the
2211 # expression.
2212 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2213 # reporting, e.g. a file name and a position in the file.
2214 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2215 # describes the expression, e.g. when hovered over it in a UI.
2216 },
2217 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002218 # `members` can have the following values:
2219 #
2220 # * `allUsers`: A special identifier that represents anyone who is
2221 # on the internet; with or without a Google account.
2222 #
2223 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2224 # who is authenticated with a Google account or a service account.
2225 #
2226 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002227 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002228 #
2229 #
2230 # * `serviceAccount:{emailid}`: An email address that represents a service
2231 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2232 #
2233 # * `group:{emailid}`: An email address that represents a Google group.
2234 # For example, `admins@example.com`.
2235 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002236 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2237 # identifier) representing a user that has been recently deleted. For
2238 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2239 # recovered, this value reverts to `user:{emailid}` and the recovered user
2240 # retains the role in the binding.
2241 #
2242 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2243 # unique identifier) representing a service account that has been recently
2244 # deleted. For example,
2245 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2246 # If the service account is undeleted, this value reverts to
2247 # `serviceAccount:{emailid}` and the undeleted service account retains the
2248 # role in the binding.
2249 #
2250 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2251 # identifier) representing a Google group that has been recently
2252 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2253 # the group is recovered, this value reverts to `group:{emailid}` and the
2254 # recovered group retains the role in the binding.
2255 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002256 #
2257 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2258 # users of that domain. For example, `google.com` or `example.com`.
2259 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002260 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002261 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2263 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002264 },
2265 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002266 }</pre>
2267</div>
2268
2269<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002270 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002271 <pre>Returns the permissions that a caller has on the specified note or
2272occurrence resource. Requires list permission on the project (for example,
Bu Sun Kim65020912020-05-20 12:08:20 -07002273&quot;storage.objects.list&quot; on the containing bucket for testing permission of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002274an object). Attempting to call this method on a non-existent resource will
2275result in a `NOT_FOUND` error if the user has list permission on the
2276project, or a `PERMISSION_DENIED` error otherwise. The resource takes the
2277following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for
2278`Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
2279
2280Args:
2281 resource: string, REQUIRED: The resource for which the policy detail is being requested.
2282See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002283 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002284 The object takes the form of:
2285
2286{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002287 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
2288 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002289 # information see
2290 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07002291 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002292 ],
2293 }
2294
2295 x__xgafv: string, V1 error format.
2296 Allowed values
2297 1 - v1 error format
2298 2 - v2 error format
2299
2300Returns:
2301 An object of the form:
2302
2303 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002304 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002305 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002306 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002307 ],
2308 }</pre>
2309</div>
2310
2311</body></html>