blob: 9e99c58302703562784432e46679c6ebb4e41f63 [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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &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 -0700151 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 &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 -0700153 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700154 &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 -0700155 # findings are valid and unchanged. If `key_type` is empty, this defaults
156 # to PEM encoded public keys.
157 #
158 # This field may be empty if `key_id` references an external key.
159 #
160 # For Cloud Build based signatures, this is a PEM encoded public
161 # key. To verify the Cloud Build signature, place the contents of
162 # this field into a file (public.pem). The signature field is base64-decoded
163 # into its binary representation in signature.bin, and the provenance bytes
164 # from `BuildDetails` are base64-decoded into a binary representation in
165 # signed.bin. OpenSSL can then verify the signature:
166 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700167 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
168 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
169 # CN for a cert), or a reference to an external key (such as a reference to a
170 # key in Cloud Key Management Service).
171 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
172 # `key_id`
173 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -0700174 },
175 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
176 },
177 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700178 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
179 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
180 &quot;A String&quot;,
181 ],
182 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
206 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700207 # vulnerability. One entry per (version range and cpe_uri) the
208 # package vulnerability has manifested in.
209 { # Identifies all occurrences of this vulnerability in the package for a
210 # specific distro/location
211 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &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 -0700214 # filter in list requests.
215 # For a discussion of this in Debian/Ubuntu:
216 # http://serverfault.com/questions/604541/debian-packages-version-convention
217 # For a discussion of this in Redhat/Fedora/Centos:
218 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700219 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
220 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700221 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700222 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
223 &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 -0700224 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700225 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
226 # format. Examples include distro or storage location for vulnerable jar.
227 # This field can be used as a filter in list requests.
228 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 },
230 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
231 # node.js packages etc)
232 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
233 # which the vulnerability manifests. Examples include distro or storage
234 # location for vulnerable jar.
235 # This field can be used as a filter in list requests.
236 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
237 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
238 # For a discussion of this in Debian/Ubuntu:
239 # http://serverfault.com/questions/604541/debian-packages-version-convention
240 # For a discussion of this in Redhat/Fedora/Centos:
241 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
242 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
243 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
244 # If kind is not NORMAL, then the other fields are ignored.
245 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
246 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
247 },
248 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
249 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
250 # This field can be used as a filter in list requests.
251 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
252 # For a discussion of this in Debian/Ubuntu:
253 # http://serverfault.com/questions/604541/debian-packages-version-convention
254 # For a discussion of this in Redhat/Fedora/Centos:
255 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
256 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
257 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
258 # If kind is not NORMAL, then the other fields are ignored.
259 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
260 &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 -0700261 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700262 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
263 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700264 },
265 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700266 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700267 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700271 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
272 # For a discussion of this in Debian/Ubuntu:
273 # http://serverfault.com/questions/604541/debian-packages-version-convention
274 # For a discussion of this in Redhat/Fedora/Centos:
275 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
276 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
277 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
278 # If kind is not NORMAL, then the other fields are ignored.
279 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
280 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
281 },
282 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
283 { # The Upgrade Distribution represents metadata about the Upgrade for each
284 # operating system (CPE). Some distributions have additional metadata around
285 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
287 # upstream operating system upgrade feed.
288 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
289 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
290 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700291 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
292 &quot;A String&quot;,
293 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700294 },
295 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700296 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -0700297 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 &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 -0700306 # this distribution channel.
307 # For a discussion of this in Debian/Ubuntu:
308 # http://serverfault.com/questions/604541/debian-packages-version-convention
309 # For a discussion of this in Redhat/Fedora/Centos:
310 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700311 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
312 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700313 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700314 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
315 &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 -0700316 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700317 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
318 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
319 # denoting the package manager version distributing a package.
320 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
321 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
322 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700323 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
330 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
331 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700332 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700333 # note for a resource indicates that analysis hasn&#x27;t started.
334 &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 -0700335 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700336 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
337 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700338}
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700382 &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 -0700383 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 &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 -0700385 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700386 &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 -0700387 # findings are valid and unchanged. If `key_type` is empty, this defaults
388 # to PEM encoded public keys.
389 #
390 # This field may be empty if `key_id` references an external key.
391 #
392 # For Cloud Build based signatures, this is a PEM encoded public
393 # key. To verify the Cloud Build signature, place the contents of
394 # this field into a file (public.pem). The signature field is base64-decoded
395 # into its binary representation in signature.bin, and the provenance bytes
396 # from `BuildDetails` are base64-decoded into a binary representation in
397 # signed.bin. OpenSSL can then verify the signature:
398 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700399 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
400 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
401 # CN for a cert), or a reference to an external key (such as a reference to a
402 # key in Cloud Key Management Service).
403 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
404 # `key_id`
405 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 },
407 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
408 },
409 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700410 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
411 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
412 &quot;A String&quot;,
413 ],
414 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700415 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
438 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 # vulnerability. One entry per (version range and cpe_uri) the
440 # package vulnerability has manifested in.
441 { # Identifies all occurrences of this vulnerability in the package for a
442 # specific distro/location
443 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700444 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700445 &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 -0700446 # filter in list requests.
447 # For a discussion of this in Debian/Ubuntu:
448 # http://serverfault.com/questions/604541/debian-packages-version-convention
449 # For a discussion of this in Redhat/Fedora/Centos:
450 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700451 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
452 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700453 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700454 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
455 &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 -0700456 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700457 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
458 # format. Examples include distro or storage location for vulnerable jar.
459 # This field can be used as a filter in list requests.
460 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -0700461 },
462 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
463 # node.js packages etc)
464 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
465 # which the vulnerability manifests. Examples include distro or storage
466 # location for vulnerable jar.
467 # This field can be used as a filter in list requests.
468 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
469 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
470 # For a discussion of this in Debian/Ubuntu:
471 # http://serverfault.com/questions/604541/debian-packages-version-convention
472 # For a discussion of this in Redhat/Fedora/Centos:
473 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
474 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
475 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
476 # If kind is not NORMAL, then the other fields are ignored.
477 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
478 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
479 },
480 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
481 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
482 # This field can be used as a filter in list requests.
483 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
484 # For a discussion of this in Debian/Ubuntu:
485 # http://serverfault.com/questions/604541/debian-packages-version-convention
486 # For a discussion of this in Redhat/Fedora/Centos:
487 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
488 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
489 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
490 # If kind is not NORMAL, then the other fields are ignored.
491 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
492 &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 -0700493 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700494 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
495 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700496 },
497 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700498 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700499 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
504 # For a discussion of this in Debian/Ubuntu:
505 # http://serverfault.com/questions/604541/debian-packages-version-convention
506 # For a discussion of this in Redhat/Fedora/Centos:
507 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
508 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
509 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
510 # If kind is not NORMAL, then the other fields are ignored.
511 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
512 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
513 },
514 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
515 { # The Upgrade Distribution represents metadata about the Upgrade for each
516 # operating system (CPE). Some distributions have additional metadata around
517 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
519 # upstream operating system upgrade feed.
520 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
521 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
522 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700523 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
524 &quot;A String&quot;,
525 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700526 },
527 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700528 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -0700529 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -0700537 &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 -0700538 # this distribution channel.
539 # For a discussion of this in Debian/Ubuntu:
540 # http://serverfault.com/questions/604541/debian-packages-version-convention
541 # For a discussion of this in Redhat/Fedora/Centos:
542 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700543 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
544 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700545 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700546 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
547 &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 -0700548 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
550 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
551 # denoting the package manager version distributing a package.
552 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
553 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
554 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700555 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
562 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
563 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700564 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700565 # note for a resource indicates that analysis hasn&#x27;t started.
566 &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 -0700567 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700568 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
569 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700570 }</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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &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 -0700646 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -0700647 &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 -0700648 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &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 -0700650 # findings are valid and unchanged. If `key_type` is empty, this defaults
651 # to PEM encoded public keys.
652 #
653 # This field may be empty if `key_id` references an external key.
654 #
655 # For Cloud Build based signatures, this is a PEM encoded public
656 # key. To verify the Cloud Build signature, place the contents of
657 # this field into a file (public.pem). The signature field is base64-decoded
658 # into its binary representation in signature.bin, and the provenance bytes
659 # from `BuildDetails` are base64-decoded into a binary representation in
660 # signed.bin. OpenSSL can then verify the signature:
661 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700662 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
663 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
664 # CN for a cert), or a reference to an external key (such as a reference to a
665 # key in Cloud Key Management Service).
666 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
667 # `key_id`
668 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -0700669 },
670 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
671 },
672 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700673 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
674 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
675 &quot;A String&quot;,
676 ],
677 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700678 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700700 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
701 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702 # vulnerability. One entry per (version range and cpe_uri) the
703 # package vulnerability has manifested in.
704 { # Identifies all occurrences of this vulnerability in the package for a
705 # specific distro/location
706 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -0700707 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700708 &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 -0700709 # filter in list requests.
710 # For a discussion of this in Debian/Ubuntu:
711 # http://serverfault.com/questions/604541/debian-packages-version-convention
712 # For a discussion of this in Redhat/Fedora/Centos:
713 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700714 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
715 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700716 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
718 &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 -0700719 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700720 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
721 # format. Examples include distro or storage location for vulnerable jar.
722 # This field can be used as a filter in list requests.
723 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -0700724 },
725 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
726 # node.js packages etc)
727 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
728 # which the vulnerability manifests. Examples include distro or storage
729 # location for vulnerable jar.
730 # This field can be used as a filter in list requests.
731 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
732 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
733 # For a discussion of this in Debian/Ubuntu:
734 # http://serverfault.com/questions/604541/debian-packages-version-convention
735 # For a discussion of this in Redhat/Fedora/Centos:
736 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
737 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
738 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
739 # If kind is not NORMAL, then the other fields are ignored.
740 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
741 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
742 },
743 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
744 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
745 # This field can be used as a filter in list requests.
746 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
747 # For a discussion of this in Debian/Ubuntu:
748 # http://serverfault.com/questions/604541/debian-packages-version-convention
749 # For a discussion of this in Redhat/Fedora/Centos:
750 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
751 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
752 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
753 # If kind is not NORMAL, then the other fields are ignored.
754 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
755 &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 -0700756 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700757 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
758 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700759 },
760 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700761 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700762 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
767 # For a discussion of this in Debian/Ubuntu:
768 # http://serverfault.com/questions/604541/debian-packages-version-convention
769 # For a discussion of this in Redhat/Fedora/Centos:
770 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
771 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
772 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
773 # If kind is not NORMAL, then the other fields are ignored.
774 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
775 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
776 },
777 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
778 { # The Upgrade Distribution represents metadata about the Upgrade for each
779 # operating system (CPE). Some distributions have additional metadata around
780 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -0700781 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
782 # upstream operating system upgrade feed.
783 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
784 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
785 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700786 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
787 &quot;A String&quot;,
788 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700789 },
790 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700791 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -0700792 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -0700800 &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 -0700801 # this distribution channel.
802 # For a discussion of this in Debian/Ubuntu:
803 # http://serverfault.com/questions/604541/debian-packages-version-convention
804 # For a discussion of this in Redhat/Fedora/Centos:
805 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -0700806 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
807 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -0700809 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
810 &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 -0700811 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700812 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
813 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
814 # denoting the package manager version distributing a package.
815 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
816 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
817 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700818 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
825 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
826 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700827 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 # note for a resource indicates that analysis hasn&#x27;t started.
829 &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 -0700830 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700831 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
832 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 }</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 Kim4ed7d3f2020-05-27 12:20:54 -0700989 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
990 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700991 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
992 #
993 # If the condition evaluates to `true`, then this binding applies to the
994 # current request.
995 #
996 # If the condition evaluates to `false`, then this binding does not apply to
997 # the current request. However, a different role binding might grant the same
998 # role to one or more of the members in this binding.
999 #
1000 # To learn which resources support conditions in their IAM policies, see the
1001 # [IAM
1002 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1003 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1004 # are documented at https://github.com/google/cel-spec.
1005 #
1006 # Example (Comparison):
1007 #
1008 # title: &quot;Summary size limit&quot;
1009 # description: &quot;Determines if a summary is less than 100 chars&quot;
1010 # expression: &quot;document.summary.size() &lt; 100&quot;
1011 #
1012 # Example (Equality):
1013 #
1014 # title: &quot;Requestor is owner&quot;
1015 # description: &quot;Determines if requestor is the document owner&quot;
1016 # expression: &quot;document.owner == request.auth.claims.email&quot;
1017 #
1018 # Example (Logic):
1019 #
1020 # title: &quot;Public documents&quot;
1021 # description: &quot;Determine whether the document should be publicly visible&quot;
1022 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1023 #
1024 # Example (Data Manipulation):
1025 #
1026 # title: &quot;Notification string&quot;
1027 # description: &quot;Create a notification string with a timestamp.&quot;
1028 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1029 #
1030 # The exact variables and functions that may be referenced within an expression
1031 # are determined by the service that evaluates it. See the service
1032 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001033 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001040 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1041 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 },
1043 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001044 # `members` can have the following values:
1045 #
1046 # * `allUsers`: A special identifier that represents anyone who is
1047 # on the internet; with or without a Google account.
1048 #
1049 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1050 # who is authenticated with a Google account or a service account.
1051 #
1052 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001053 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054 #
1055 #
1056 # * `serviceAccount:{emailid}`: An email address that represents a service
1057 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1058 #
1059 # * `group:{emailid}`: An email address that represents a Google group.
1060 # For example, `admins@example.com`.
1061 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001062 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1063 # identifier) representing a user that has been recently deleted. For
1064 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1065 # recovered, this value reverts to `user:{emailid}` and the recovered user
1066 # retains the role in the binding.
1067 #
1068 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1069 # unique identifier) representing a service account that has been recently
1070 # deleted. For example,
1071 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1072 # If the service account is undeleted, this value reverts to
1073 # `serviceAccount:{emailid}` and the undeleted service account retains the
1074 # role in the binding.
1075 #
1076 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1077 # identifier) representing a Google group that has been recently
1078 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1079 # the group is recovered, this value reverts to `group:{emailid}` and the
1080 # recovered group retains the role in the binding.
1081 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001082 #
1083 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1084 # users of that domain. For example, `google.com` or `example.com`.
1085 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001087 ],
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001145 &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 -07001146 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001147 &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 -07001148 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001149 &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 -07001150 # findings are valid and unchanged. If `key_type` is empty, this defaults
1151 # to PEM encoded public keys.
1152 #
1153 # This field may be empty if `key_id` references an external key.
1154 #
1155 # For Cloud Build based signatures, this is a PEM encoded public
1156 # key. To verify the Cloud Build signature, place the contents of
1157 # this field into a file (public.pem). The signature field is base64-decoded
1158 # into its binary representation in signature.bin, and the provenance bytes
1159 # from `BuildDetails` are base64-decoded into a binary representation in
1160 # signed.bin. OpenSSL can then verify the signature:
1161 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001162 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1163 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1164 # CN for a cert), or a reference to an external key (such as a reference to a
1165 # key in Cloud Key Management Service).
1166 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1167 # `key_id`
1168 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -07001169 },
1170 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1171 },
1172 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001173 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1174 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1175 &quot;A String&quot;,
1176 ],
1177 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001200 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1201 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001202 # vulnerability. One entry per (version range and cpe_uri) the
1203 # package vulnerability has manifested in.
1204 { # Identifies all occurrences of this vulnerability in the package for a
1205 # specific distro/location
1206 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001207 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001208 &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 -07001209 # filter in list requests.
1210 # For a discussion of this in Debian/Ubuntu:
1211 # http://serverfault.com/questions/604541/debian-packages-version-convention
1212 # For a discussion of this in Redhat/Fedora/Centos:
1213 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001214 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1215 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001216 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1218 &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 -07001219 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001220 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1221 # format. Examples include distro or storage location for vulnerable jar.
1222 # This field can be used as a filter in list requests.
1223 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001224 },
1225 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1226 # node.js packages etc)
1227 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1228 # which the vulnerability manifests. Examples include distro or storage
1229 # location for vulnerable jar.
1230 # This field can be used as a filter in list requests.
1231 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1232 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1233 # For a discussion of this in Debian/Ubuntu:
1234 # http://serverfault.com/questions/604541/debian-packages-version-convention
1235 # For a discussion of this in Redhat/Fedora/Centos:
1236 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1237 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1238 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1239 # If kind is not NORMAL, then the other fields are ignored.
1240 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1241 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1242 },
1243 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1244 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1245 # This field can be used as a filter in list requests.
1246 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1247 # For a discussion of this in Debian/Ubuntu:
1248 # http://serverfault.com/questions/604541/debian-packages-version-convention
1249 # For a discussion of this in Redhat/Fedora/Centos:
1250 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1251 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1252 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1253 # If kind is not NORMAL, then the other fields are ignored.
1254 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1255 &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 -07001256 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001257 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
1258 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001259 },
1260 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001261 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001262 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001266 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1267 # For a discussion of this in Debian/Ubuntu:
1268 # http://serverfault.com/questions/604541/debian-packages-version-convention
1269 # For a discussion of this in Redhat/Fedora/Centos:
1270 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1271 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1272 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1273 # If kind is not NORMAL, then the other fields are ignored.
1274 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1275 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1276 },
1277 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1278 { # The Upgrade Distribution represents metadata about the Upgrade for each
1279 # operating system (CPE). Some distributions have additional metadata around
1280 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -07001281 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1282 # upstream operating system upgrade feed.
1283 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1284 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1285 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001286 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1287 &quot;A String&quot;,
1288 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 },
1290 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001291 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -07001300 &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 -07001301 # this distribution channel.
1302 # For a discussion of this in Debian/Ubuntu:
1303 # http://serverfault.com/questions/604541/debian-packages-version-convention
1304 # For a discussion of this in Redhat/Fedora/Centos:
1305 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1307 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001308 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1310 &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 -07001311 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1313 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1314 # denoting the package manager version distributing a package.
1315 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1316 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1317 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001318 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1325 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1326 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001327 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 # note for a resource indicates that analysis hasn&#x27;t started.
1329 &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 -07001330 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001331 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1332 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001333 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 &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 -07001395 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &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 -07001397 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001398 &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 -07001399 # findings are valid and unchanged. If `key_type` is empty, this defaults
1400 # to PEM encoded public keys.
1401 #
1402 # This field may be empty if `key_id` references an external key.
1403 #
1404 # For Cloud Build based signatures, this is a PEM encoded public
1405 # key. To verify the Cloud Build signature, place the contents of
1406 # this field into a file (public.pem). The signature field is base64-decoded
1407 # into its binary representation in signature.bin, and the provenance bytes
1408 # from `BuildDetails` are base64-decoded into a binary representation in
1409 # signed.bin. OpenSSL can then verify the signature:
1410 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001411 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1412 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1413 # CN for a cert), or a reference to an external key (such as a reference to a
1414 # key in Cloud Key Management Service).
1415 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1416 # `key_id`
1417 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -07001418 },
1419 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1420 },
1421 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001422 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1423 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1424 &quot;A String&quot;,
1425 ],
1426 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001427 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001449 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1450 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001451 # vulnerability. One entry per (version range and cpe_uri) the
1452 # package vulnerability has manifested in.
1453 { # Identifies all occurrences of this vulnerability in the package for a
1454 # specific distro/location
1455 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001457 &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 -07001458 # filter in list requests.
1459 # For a discussion of this in Debian/Ubuntu:
1460 # http://serverfault.com/questions/604541/debian-packages-version-convention
1461 # For a discussion of this in Redhat/Fedora/Centos:
1462 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001463 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1464 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001465 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001466 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1467 &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 -07001468 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001469 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1470 # format. Examples include distro or storage location for vulnerable jar.
1471 # This field can be used as a filter in list requests.
1472 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 },
1474 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1475 # node.js packages etc)
1476 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1477 # which the vulnerability manifests. Examples include distro or storage
1478 # location for vulnerable jar.
1479 # This field can be used as a filter in list requests.
1480 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1481 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1482 # For a discussion of this in Debian/Ubuntu:
1483 # http://serverfault.com/questions/604541/debian-packages-version-convention
1484 # For a discussion of this in Redhat/Fedora/Centos:
1485 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1486 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1487 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1488 # If kind is not NORMAL, then the other fields are ignored.
1489 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1490 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1491 },
1492 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1493 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1494 # This field can be used as a filter in list requests.
1495 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1496 # For a discussion of this in Debian/Ubuntu:
1497 # http://serverfault.com/questions/604541/debian-packages-version-convention
1498 # For a discussion of this in Redhat/Fedora/Centos:
1499 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1500 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1501 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1502 # If kind is not NORMAL, then the other fields are ignored.
1503 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1504 &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 -07001505 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001506 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
1507 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508 },
1509 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001510 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001511 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001515 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1516 # For a discussion of this in Debian/Ubuntu:
1517 # http://serverfault.com/questions/604541/debian-packages-version-convention
1518 # For a discussion of this in Redhat/Fedora/Centos:
1519 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1520 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1521 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1522 # If kind is not NORMAL, then the other fields are ignored.
1523 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1524 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1525 },
1526 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1527 { # The Upgrade Distribution represents metadata about the Upgrade for each
1528 # operating system (CPE). Some distributions have additional metadata around
1529 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -07001530 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1531 # upstream operating system upgrade feed.
1532 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1533 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1534 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001535 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1536 &quot;A String&quot;,
1537 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001538 },
1539 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001540 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -07001549 &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 -07001550 # this distribution channel.
1551 # For a discussion of this in Debian/Ubuntu:
1552 # http://serverfault.com/questions/604541/debian-packages-version-convention
1553 # For a discussion of this in Redhat/Fedora/Centos:
1554 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001555 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1556 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001557 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001558 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1559 &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 -07001560 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001561 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1562 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1563 # denoting the package manager version distributing a package.
1564 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1565 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1566 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001567 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1574 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1575 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001576 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001577 # note for a resource indicates that analysis hasn&#x27;t started.
1578 &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 -07001579 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001580 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1581 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001582}
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001623 &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 -07001624 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001625 &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 -07001626 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001627 &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 -07001628 # findings are valid and unchanged. If `key_type` is empty, this defaults
1629 # to PEM encoded public keys.
1630 #
1631 # This field may be empty if `key_id` references an external key.
1632 #
1633 # For Cloud Build based signatures, this is a PEM encoded public
1634 # key. To verify the Cloud Build signature, place the contents of
1635 # this field into a file (public.pem). The signature field is base64-decoded
1636 # into its binary representation in signature.bin, and the provenance bytes
1637 # from `BuildDetails` are base64-decoded into a binary representation in
1638 # signed.bin. OpenSSL can then verify the signature:
1639 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001640 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1641 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1642 # CN for a cert), or a reference to an external key (such as a reference to a
1643 # key in Cloud Key Management Service).
1644 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1645 # `key_id`
1646 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -07001647 },
1648 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1649 },
1650 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001651 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1652 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1653 &quot;A String&quot;,
1654 ],
1655 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001656 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001678 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1679 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001680 # vulnerability. One entry per (version range and cpe_uri) the
1681 # package vulnerability has manifested in.
1682 { # Identifies all occurrences of this vulnerability in the package for a
1683 # specific distro/location
1684 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07001685 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001686 &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 -07001687 # filter in list requests.
1688 # For a discussion of this in Debian/Ubuntu:
1689 # http://serverfault.com/questions/604541/debian-packages-version-convention
1690 # For a discussion of this in Redhat/Fedora/Centos:
1691 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001692 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1693 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001694 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001695 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1696 &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 -07001697 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001698 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1699 # format. Examples include distro or storage location for vulnerable jar.
1700 # This field can be used as a filter in list requests.
1701 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001702 },
1703 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1704 # node.js packages etc)
1705 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
1706 # which the vulnerability manifests. Examples include distro or storage
1707 # location for vulnerable jar.
1708 # This field can be used as a filter in list requests.
1709 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1710 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
1711 # For a discussion of this in Debian/Ubuntu:
1712 # http://serverfault.com/questions/604541/debian-packages-version-convention
1713 # For a discussion of this in Redhat/Fedora/Centos:
1714 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1715 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1716 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1717 # If kind is not NORMAL, then the other fields are ignored.
1718 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1719 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1720 },
1721 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1722 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
1723 # This field can be used as a filter in list requests.
1724 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
1725 # For a discussion of this in Debian/Ubuntu:
1726 # http://serverfault.com/questions/604541/debian-packages-version-convention
1727 # For a discussion of this in Redhat/Fedora/Centos:
1728 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1729 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1730 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1731 # If kind is not NORMAL, then the other fields are ignored.
1732 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1733 &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 -07001734 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001735 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
1736 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001737 },
1738 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001739 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001740 },
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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001744 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
1745 # For a discussion of this in Debian/Ubuntu:
1746 # http://serverfault.com/questions/604541/debian-packages-version-convention
1747 # For a discussion of this in Redhat/Fedora/Centos:
1748 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1749 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1750 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1751 # If kind is not NORMAL, then the other fields are ignored.
1752 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1753 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1754 },
1755 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1756 { # The Upgrade Distribution represents metadata about the Upgrade for each
1757 # operating system (CPE). Some distributions have additional metadata around
1758 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1760 # upstream operating system upgrade feed.
1761 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1762 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1763 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001764 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1765 &quot;A String&quot;,
1766 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001767 },
1768 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001769 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 },
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
Bu Sun Kim65020912020-05-20 12:08:20 -07001778 &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 -07001779 # this distribution channel.
1780 # For a discussion of this in Debian/Ubuntu:
1781 # http://serverfault.com/questions/604541/debian-packages-version-convention
1782 # For a discussion of this in Redhat/Fedora/Centos:
1783 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07001784 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1785 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001786 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07001787 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1788 &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 -07001789 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001790 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1791 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1792 # denoting the package manager version distributing a package.
1793 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1794 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
1795 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001796 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
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;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
1803 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1804 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001805 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07001806 # note for a resource indicates that analysis hasn&#x27;t started.
1807 &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 -07001808 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001809 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1810 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001811 }</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 Kim4ed7d3f2020-05-27 12:20:54 -07001946 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1947 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001948 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1949 #
1950 # If the condition evaluates to `true`, then this binding applies to the
1951 # current request.
1952 #
1953 # If the condition evaluates to `false`, then this binding does not apply to
1954 # the current request. However, a different role binding might grant the same
1955 # role to one or more of the members in this binding.
1956 #
1957 # To learn which resources support conditions in their IAM policies, see the
1958 # [IAM
1959 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1960 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1961 # are documented at https://github.com/google/cel-spec.
1962 #
1963 # Example (Comparison):
1964 #
1965 # title: &quot;Summary size limit&quot;
1966 # description: &quot;Determines if a summary is less than 100 chars&quot;
1967 # expression: &quot;document.summary.size() &lt; 100&quot;
1968 #
1969 # Example (Equality):
1970 #
1971 # title: &quot;Requestor is owner&quot;
1972 # description: &quot;Determines if requestor is the document owner&quot;
1973 # expression: &quot;document.owner == request.auth.claims.email&quot;
1974 #
1975 # Example (Logic):
1976 #
1977 # title: &quot;Public documents&quot;
1978 # description: &quot;Determine whether the document should be publicly visible&quot;
1979 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1980 #
1981 # Example (Data Manipulation):
1982 #
1983 # title: &quot;Notification string&quot;
1984 # description: &quot;Create a notification string with a timestamp.&quot;
1985 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1986 #
1987 # The exact variables and functions that may be referenced within an expression
1988 # are determined by the service that evaluates it. See the service
1989 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001990 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001997 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1998 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001999 },
2000 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002001 # `members` can have the following values:
2002 #
2003 # * `allUsers`: A special identifier that represents anyone who is
2004 # on the internet; with or without a Google account.
2005 #
2006 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2007 # who is authenticated with a Google account or a service account.
2008 #
2009 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002010 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002011 #
2012 #
2013 # * `serviceAccount:{emailid}`: An email address that represents a service
2014 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2015 #
2016 # * `group:{emailid}`: An email address that represents a Google group.
2017 # For example, `admins@example.com`.
2018 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002019 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2020 # identifier) representing a user that has been recently deleted. For
2021 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2022 # recovered, this value reverts to `user:{emailid}` and the recovered user
2023 # retains the role in the binding.
2024 #
2025 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2026 # unique identifier) representing a service account that has been recently
2027 # deleted. For example,
2028 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2029 # If the service account is undeleted, this value reverts to
2030 # `serviceAccount:{emailid}` and the undeleted service account retains the
2031 # role in the binding.
2032 #
2033 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2034 # identifier) representing a Google group that has been recently
2035 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2036 # the group is recovered, this value reverts to `group:{emailid}` and the
2037 # recovered group retains the role in the binding.
2038 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002039 #
2040 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2041 # users of that domain. For example, `google.com` or `example.com`.
2042 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002043 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002044 ],
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 Kim4ed7d3f2020-05-27 12:20:54 -07002165 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2166 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002167 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2168 #
2169 # If the condition evaluates to `true`, then this binding applies to the
2170 # current request.
2171 #
2172 # If the condition evaluates to `false`, then this binding does not apply to
2173 # the current request. However, a different role binding might grant the same
2174 # role to one or more of the members in this binding.
2175 #
2176 # To learn which resources support conditions in their IAM policies, see the
2177 # [IAM
2178 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2179 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2180 # are documented at https://github.com/google/cel-spec.
2181 #
2182 # Example (Comparison):
2183 #
2184 # title: &quot;Summary size limit&quot;
2185 # description: &quot;Determines if a summary is less than 100 chars&quot;
2186 # expression: &quot;document.summary.size() &lt; 100&quot;
2187 #
2188 # Example (Equality):
2189 #
2190 # title: &quot;Requestor is owner&quot;
2191 # description: &quot;Determines if requestor is the document owner&quot;
2192 # expression: &quot;document.owner == request.auth.claims.email&quot;
2193 #
2194 # Example (Logic):
2195 #
2196 # title: &quot;Public documents&quot;
2197 # description: &quot;Determine whether the document should be publicly visible&quot;
2198 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2199 #
2200 # Example (Data Manipulation):
2201 #
2202 # title: &quot;Notification string&quot;
2203 # description: &quot;Create a notification string with a timestamp.&quot;
2204 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2205 #
2206 # The exact variables and functions that may be referenced within an expression
2207 # are determined by the service that evaluates it. See the service
2208 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002209 &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.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002216 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2217 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07002218 },
2219 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002220 # `members` can have the following values:
2221 #
2222 # * `allUsers`: A special identifier that represents anyone who is
2223 # on the internet; with or without a Google account.
2224 #
2225 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2226 # who is authenticated with a Google account or a service account.
2227 #
2228 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002229 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002230 #
2231 #
2232 # * `serviceAccount:{emailid}`: An email address that represents a service
2233 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2234 #
2235 # * `group:{emailid}`: An email address that represents a Google group.
2236 # For example, `admins@example.com`.
2237 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002238 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2239 # identifier) representing a user that has been recently deleted. For
2240 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2241 # recovered, this value reverts to `user:{emailid}` and the recovered user
2242 # retains the role in the binding.
2243 #
2244 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2245 # unique identifier) representing a service account that has been recently
2246 # deleted. For example,
2247 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2248 # If the service account is undeleted, this value reverts to
2249 # `serviceAccount:{emailid}` and the undeleted service account retains the
2250 # role in the binding.
2251 #
2252 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2253 # identifier) representing a Google group that has been recently
2254 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2255 # the group is recovered, this value reverts to `group:{emailid}` and the
2256 # recovered group retains the role in the binding.
2257 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002258 #
2259 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2260 # users of that domain. For example, `google.com` or `example.com`.
2261 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002262 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002263 ],
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>