blob: 05db2ae96547b26fe5bd90d389110cb9c8752f04 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1beta1.html">Container Analysis API</a> . <a href="containeranalysis_v1beta1.projects.html">projects</a> . <a href="containeranalysis_v1beta1.projects.notes.html">notes</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="containeranalysis_v1beta1.projects.notes.occurrences.html">occurrences()</a></code>
79</p>
80<p class="firstline">Returns the occurrences Resource.</p>
81
82<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070083 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070084<p class="firstline">Creates new notes in batch.</p>
85<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070086 <code><a href="#create">create(parent, body=None, noteId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070087<p class="firstline">Creates a new note.</p>
88<p class="toc_element">
89 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
90<p class="firstline">Deletes the specified note.</p>
91<p class="toc_element">
92 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Gets the specified note.</p>
94<p class="toc_element">
95 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
96<p class="firstline">Gets the access control policy for a note or an occurrence resource.</p>
97<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070098 <code><a href="#list">list(parent, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070099<p class="firstline">Lists notes for the specified project.</p>
100<p class="toc_element">
101 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
102<p class="firstline">Retrieves the next page of results.</p>
103<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700104 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700105<p class="firstline">Updates the specified note.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Sets the access control policy on the specified note or occurrence.</p>
109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700111<p class="firstline">Returns the permissions that a caller has on the specified note or</p>
112<h3>Method Details</h3>
113<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115 <pre>Creates new notes in batch.
116
117Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119the notes are to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700121 The object takes the form of:
122
123{ # Request to create notes in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 &quot;notes&quot;: { # Required. The notes to create. Max allowed length is 1000.
125 &quot;a_key&quot;: { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700126 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
127 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
128 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
129 # the attached occurrences (Attestations). This grouping mechanism also
130 # provides a security boundary, since IAM ACLs gate the ability for a principle
131 # to attach an occurrence to a given note. It also provides a single point of
132 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
133 # live in the same project.
134 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
135 # authority. Because the name of a note acts as its resource reference, it is
136 # important to disambiguate the canonical name of the Note (which might be a
137 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
138 # output. Note that these hints should not be used to look up authorities in
139 # security sensitive contexts, such as when looking up attestations to
140 # verify.
141 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
142 # example &quot;qa&quot;.
143 },
144 },
145 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
146 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
147 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700148 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
149 # For details, see https://www.first.org/cvss/specification-document
150 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
151 &quot;scope&quot;: &quot;A String&quot;,
152 &quot;integrityImpact&quot;: &quot;A String&quot;,
153 &quot;exploitabilityScore&quot;: 3.14,
154 &quot;impactScore&quot;: 3.14,
155 &quot;attackComplexity&quot;: &quot;A String&quot;,
156 &quot;availabilityImpact&quot;: &quot;A String&quot;,
157 &quot;privilegesRequired&quot;: &quot;A String&quot;,
158 &quot;userInteraction&quot;: &quot;A String&quot;,
159 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
160 # Represents the intrinsic characteristics of a vulnerability that are
161 # constant over time and across user environments.
162 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
163 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700164 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
165 # upstream timestamp from the underlying information source - e.g. Ubuntu
166 # security tracker.
167 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
168 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
169 # patches, thus Windows vulnerabilities really are a missing package, rather
170 # than a package being at an incorrect version.
171 {
172 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
173 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
174 # [cpe format](https://cpe.mitre.org/specification/) in which the
175 # vulnerability manifests. Examples include distro or storage location for
176 # vulnerable jar.
177 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
178 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
179 # vulnerability. Note that there may be multiple hotfixes (and thus
180 # multiple KBs) that mitigate a given vulnerability. Currently any listed
181 # kb&#x27;s presence is considered a fix.
182 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700183 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -0700184 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
185 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -0700186 },
187 ],
188 },
189 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700190 &quot;details&quot;: [ # All information about the package to specifically identify this
191 # vulnerability. One entry per (version range and cpe_uri) the package
192 # vulnerability has manifested in.
193 { # Identifies all appearances of this vulnerability in the package for a
194 # specific distro/location. For example: glibc in
195 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
196 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
197 # obsolete details.
198 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
199 # upstream timestamp from the underlying information source - e.g. Ubuntu
200 # security tracker.
201 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
202 # packages etc).
203 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
204 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
205 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700206 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700207 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
208 # name.
209 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
210 # versions.
211 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700212 },
213 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
214 # format. Examples include distro or storage location for vulnerable jar.
215 },
216 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
217 # [cpe format](https://cpe.mitre.org/specification/) in which the
218 # vulnerability manifests. Examples include distro or storage location for
219 # vulnerable jar.
220 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
221 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
222 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700223 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700224 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
225 # name.
226 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
227 # versions.
228 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700229 },
230 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700231 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700232 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
233 # name.
234 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
235 # versions.
236 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700237 },
238 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
239 },
240 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700241 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700243 },
244 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
245 &quot;A String&quot;,
246 ],
247 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700248 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700249 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700250 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700251 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
252 # `key_id`.
253 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
254 # base-64 encoded.
255 &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 -0700256 # findings are valid and unchanged. If `key_type` is empty, this defaults
257 # to PEM encoded public keys.
258 #
259 # This field may be empty if `key_id` references an external key.
260 #
261 # For Cloud Build based signatures, this is a PEM encoded public
262 # key. To verify the Cloud Build signature, place the contents of
263 # this field into a file (public.pem). The signature field is base64-decoded
264 # into its binary representation in signature.bin, and the provenance bytes
265 # from `BuildDetails` are base64-decoded into a binary representation in
266 # signed.bin. OpenSSL can then verify the signature:
267 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700268 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700269 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
270 # CN for a cert), or a reference to an external key (such as a reference to a
271 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700272 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700273 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700274 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700275 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
276 # channels. E.g., glibc (aka libc6) is distributed by many, at various
277 # versions.
278 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
279 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
280 { # This represents a particular channel of distribution for a given package.
281 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
282 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
283 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
284 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
285 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
286 # name.
287 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
288 # versions.
289 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
290 },
291 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
292 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
293 # denoting the package manager version distributing a package.
294 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
295 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
296 # built.
297 },
298 ],
299 },
300 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
301 # filter in list requests.
302 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
303 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
304 # consumer&#x27;s project at the start of analysis.
305 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
306 # discovery.
307 },
308 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
309 # a filter in list requests.
310 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
311 # chain step in an in-toto layout. This information goes into a Grafeas note.
312 &quot;expectedProducts&quot;: [
313 { # Defines an object to declare an in-toto artifact rule
314 &quot;artifactRule&quot;: [
315 &quot;A String&quot;,
316 ],
317 },
318 ],
319 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
320 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
321 # signatures on the step metadata.
322 { # This defines the format used to record keys used in the software supply
323 # chain. An in-toto link is attested using one or more keys defined in the
324 # in-toto layout. An example of this is:
325 # {
326 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
327 # &quot;key_type&quot;: &quot;rsa&quot;,
328 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
329 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
330 # }
331 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
332 # in-toto specification.
333 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
334 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
335 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
336 # and &quot;ecdsa&quot;.
337 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
338 # Eg: &quot;rsassa-pss-sha256&quot;.
339 },
340 ],
341 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
342 # need to be used to sign the step&#x27;s in-toto link.
343 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
344 # artifacts that enter this supply chain step, and exit the supply chain
345 # step, i.e. materials and products of the step.
346 { # Defines an object to declare an in-toto artifact rule
347 &quot;artifactRule&quot;: [
348 &quot;A String&quot;,
349 ],
350 },
351 ],
352 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
353 &quot;A String&quot;,
354 ],
355 },
356 &quot;relatedUrl&quot;: [ # URLs associated with this note.
357 { # Metadata for any related URL information.
358 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
359 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
360 },
361 ],
362 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
363 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
364 # relationship. Linked occurrences are derived from this or an
365 # equivalent image via:
366 # FROM &lt;Basis.resource_url&gt;
367 # Or an equivalent reference, e.g. a tag of the resource_url.
368 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
369 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
370 &quot;A String&quot;,
371 ],
372 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
373 # representation.
374 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
375 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
376 # Only the name of the final blob is kept.
377 },
378 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
379 # basis of associated occurrence images.
380 },
381 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
382 # list requests.
383 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
384 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
385 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
386 &quot;A String&quot;,
387 ],
388 },
389 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700390 },
391 },
392 }
393
394 x__xgafv: string, V1 error format.
395 Allowed values
396 1 - v1 error format
397 2 - v2 error format
398
399Returns:
400 An object of the form:
401
402 { # Response for creating notes in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700403 &quot;notes&quot;: [ # The notes that were created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700405 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
406 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
407 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
408 # the attached occurrences (Attestations). This grouping mechanism also
409 # provides a security boundary, since IAM ACLs gate the ability for a principle
410 # to attach an occurrence to a given note. It also provides a single point of
411 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
412 # live in the same project.
413 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
414 # authority. Because the name of a note acts as its resource reference, it is
415 # important to disambiguate the canonical name of the Note (which might be a
416 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
417 # output. Note that these hints should not be used to look up authorities in
418 # security sensitive contexts, such as when looking up attestations to
419 # verify.
420 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
421 # example &quot;qa&quot;.
422 },
423 },
424 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
425 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
426 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700427 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
428 # For details, see https://www.first.org/cvss/specification-document
429 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
430 &quot;scope&quot;: &quot;A String&quot;,
431 &quot;integrityImpact&quot;: &quot;A String&quot;,
432 &quot;exploitabilityScore&quot;: 3.14,
433 &quot;impactScore&quot;: 3.14,
434 &quot;attackComplexity&quot;: &quot;A String&quot;,
435 &quot;availabilityImpact&quot;: &quot;A String&quot;,
436 &quot;privilegesRequired&quot;: &quot;A String&quot;,
437 &quot;userInteraction&quot;: &quot;A String&quot;,
438 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
439 # Represents the intrinsic characteristics of a vulnerability that are
440 # constant over time and across user environments.
441 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
442 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700443 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
444 # upstream timestamp from the underlying information source - e.g. Ubuntu
445 # security tracker.
446 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
447 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
448 # patches, thus Windows vulnerabilities really are a missing package, rather
449 # than a package being at an incorrect version.
450 {
451 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
452 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
453 # [cpe format](https://cpe.mitre.org/specification/) in which the
454 # vulnerability manifests. Examples include distro or storage location for
455 # vulnerable jar.
456 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
457 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
458 # vulnerability. Note that there may be multiple hotfixes (and thus
459 # multiple KBs) that mitigate a given vulnerability. Currently any listed
460 # kb&#x27;s presence is considered a fix.
461 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700462 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -0700463 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
464 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -0700465 },
466 ],
467 },
468 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700469 &quot;details&quot;: [ # All information about the package to specifically identify this
470 # vulnerability. One entry per (version range and cpe_uri) the package
471 # vulnerability has manifested in.
472 { # Identifies all appearances of this vulnerability in the package for a
473 # specific distro/location. For example: glibc in
474 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
475 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
476 # obsolete details.
477 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
478 # upstream timestamp from the underlying information source - e.g. Ubuntu
479 # security tracker.
480 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
481 # packages etc).
482 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
483 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
484 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700485 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700486 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
487 # name.
488 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
489 # versions.
490 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700491 },
492 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
493 # format. Examples include distro or storage location for vulnerable jar.
494 },
495 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
496 # [cpe format](https://cpe.mitre.org/specification/) in which the
497 # vulnerability manifests. Examples include distro or storage location for
498 # vulnerable jar.
499 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
500 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
501 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700502 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700503 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
504 # name.
505 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
506 # versions.
507 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700508 },
509 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
512 # name.
513 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
514 # versions.
515 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 },
517 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
518 },
519 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700520 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700521 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 },
523 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
524 &quot;A String&quot;,
525 ],
526 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700527 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700528 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700529 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700530 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
531 # `key_id`.
532 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
533 # base-64 encoded.
534 &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 -0700535 # findings are valid and unchanged. If `key_type` is empty, this defaults
536 # to PEM encoded public keys.
537 #
538 # This field may be empty if `key_id` references an external key.
539 #
540 # For Cloud Build based signatures, this is a PEM encoded public
541 # key. To verify the Cloud Build signature, place the contents of
542 # this field into a file (public.pem). The signature field is base64-decoded
543 # into its binary representation in signature.bin, and the provenance bytes
544 # from `BuildDetails` are base64-decoded into a binary representation in
545 # signed.bin. OpenSSL can then verify the signature:
546 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700547 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700548 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
549 # CN for a cert), or a reference to an external key (such as a reference to a
550 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700551 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700552 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700553 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700554 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
555 # channels. E.g., glibc (aka libc6) is distributed by many, at various
556 # versions.
557 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
558 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
559 { # This represents a particular channel of distribution for a given package.
560 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
561 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
562 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
563 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
564 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
565 # name.
566 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
567 # versions.
568 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
569 },
570 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
571 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
572 # denoting the package manager version distributing a package.
573 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
574 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
575 # built.
576 },
577 ],
578 },
579 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
580 # filter in list requests.
581 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
582 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
583 # consumer&#x27;s project at the start of analysis.
584 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
585 # discovery.
586 },
587 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
588 # a filter in list requests.
589 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
590 # chain step in an in-toto layout. This information goes into a Grafeas note.
591 &quot;expectedProducts&quot;: [
592 { # Defines an object to declare an in-toto artifact rule
593 &quot;artifactRule&quot;: [
594 &quot;A String&quot;,
595 ],
596 },
597 ],
598 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
599 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
600 # signatures on the step metadata.
601 { # This defines the format used to record keys used in the software supply
602 # chain. An in-toto link is attested using one or more keys defined in the
603 # in-toto layout. An example of this is:
604 # {
605 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
606 # &quot;key_type&quot;: &quot;rsa&quot;,
607 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
608 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
609 # }
610 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
611 # in-toto specification.
612 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
613 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
614 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
615 # and &quot;ecdsa&quot;.
616 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
617 # Eg: &quot;rsassa-pss-sha256&quot;.
618 },
619 ],
620 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
621 # need to be used to sign the step&#x27;s in-toto link.
622 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
623 # artifacts that enter this supply chain step, and exit the supply chain
624 # step, i.e. materials and products of the step.
625 { # Defines an object to declare an in-toto artifact rule
626 &quot;artifactRule&quot;: [
627 &quot;A String&quot;,
628 ],
629 },
630 ],
631 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
632 &quot;A String&quot;,
633 ],
634 },
635 &quot;relatedUrl&quot;: [ # URLs associated with this note.
636 { # Metadata for any related URL information.
637 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
638 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
639 },
640 ],
641 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
642 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
643 # relationship. Linked occurrences are derived from this or an
644 # equivalent image via:
645 # FROM &lt;Basis.resource_url&gt;
646 # Or an equivalent reference, e.g. a tag of the resource_url.
647 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
648 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
649 &quot;A String&quot;,
650 ],
651 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
652 # representation.
653 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
654 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
655 # Only the name of the final blob is kept.
656 },
657 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
658 # basis of associated occurrence images.
659 },
660 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
661 # list requests.
662 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
663 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
664 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
665 &quot;A String&quot;,
666 ],
667 },
668 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700669 },
670 ],
671 }</pre>
672</div>
673
674<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700675 <code class="details" id="create">create(parent, body=None, noteId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700676 <pre>Creates a new note.
677
678Args:
Dan O'Mearadd494642020-05-01 07:42:23 -0700679 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700680the note is to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700681 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700682 The object takes the form of:
683
684{ # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700685 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
686 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
687 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
688 # the attached occurrences (Attestations). This grouping mechanism also
689 # provides a security boundary, since IAM ACLs gate the ability for a principle
690 # to attach an occurrence to a given note. It also provides a single point of
691 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
692 # live in the same project.
693 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
694 # authority. Because the name of a note acts as its resource reference, it is
695 # important to disambiguate the canonical name of the Note (which might be a
696 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
697 # output. Note that these hints should not be used to look up authorities in
698 # security sensitive contexts, such as when looking up attestations to
699 # verify.
700 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
701 # example &quot;qa&quot;.
702 },
703 },
704 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
705 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
706 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700707 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
708 # For details, see https://www.first.org/cvss/specification-document
709 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
710 &quot;scope&quot;: &quot;A String&quot;,
711 &quot;integrityImpact&quot;: &quot;A String&quot;,
712 &quot;exploitabilityScore&quot;: 3.14,
713 &quot;impactScore&quot;: 3.14,
714 &quot;attackComplexity&quot;: &quot;A String&quot;,
715 &quot;availabilityImpact&quot;: &quot;A String&quot;,
716 &quot;privilegesRequired&quot;: &quot;A String&quot;,
717 &quot;userInteraction&quot;: &quot;A String&quot;,
718 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
719 # Represents the intrinsic characteristics of a vulnerability that are
720 # constant over time and across user environments.
721 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
722 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700723 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
724 # upstream timestamp from the underlying information source - e.g. Ubuntu
725 # security tracker.
726 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
727 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
728 # patches, thus Windows vulnerabilities really are a missing package, rather
729 # than a package being at an incorrect version.
730 {
731 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
732 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
733 # [cpe format](https://cpe.mitre.org/specification/) in which the
734 # vulnerability manifests. Examples include distro or storage location for
735 # vulnerable jar.
736 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
737 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
738 # vulnerability. Note that there may be multiple hotfixes (and thus
739 # multiple KBs) that mitigate a given vulnerability. Currently any listed
740 # kb&#x27;s presence is considered a fix.
741 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700742 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
744 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -0700745 },
746 ],
747 },
748 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700749 &quot;details&quot;: [ # All information about the package to specifically identify this
750 # vulnerability. One entry per (version range and cpe_uri) the package
751 # vulnerability has manifested in.
752 { # Identifies all appearances of this vulnerability in the package for a
753 # specific distro/location. For example: glibc in
754 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
755 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
756 # obsolete details.
757 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
758 # upstream timestamp from the underlying information source - e.g. Ubuntu
759 # security tracker.
760 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
761 # packages etc).
762 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
763 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
764 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700765 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700766 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
767 # name.
768 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
769 # versions.
770 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700771 },
772 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
773 # format. Examples include distro or storage location for vulnerable jar.
774 },
775 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
776 # [cpe format](https://cpe.mitre.org/specification/) in which the
777 # vulnerability manifests. Examples include distro or storage location for
778 # vulnerable jar.
779 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
780 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
781 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700782 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700783 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
784 # name.
785 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
786 # versions.
787 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700788 },
789 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700790 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -0700791 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
792 # name.
793 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
794 # versions.
795 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -0700796 },
797 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
798 },
799 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700800 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700802 },
803 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
804 &quot;A String&quot;,
805 ],
806 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700807 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700808 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700810 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
811 # `key_id`.
812 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
813 # base-64 encoded.
814 &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 -0700815 # findings are valid and unchanged. If `key_type` is empty, this defaults
816 # to PEM encoded public keys.
817 #
818 # This field may be empty if `key_id` references an external key.
819 #
820 # For Cloud Build based signatures, this is a PEM encoded public
821 # key. To verify the Cloud Build signature, place the contents of
822 # this field into a file (public.pem). The signature field is base64-decoded
823 # into its binary representation in signature.bin, and the provenance bytes
824 # from `BuildDetails` are base64-decoded into a binary representation in
825 # signed.bin. OpenSSL can then verify the signature:
826 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700827 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700828 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
829 # CN for a cert), or a reference to an external key (such as a reference to a
830 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700831 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700832 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700833 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700834 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
835 # channels. E.g., glibc (aka libc6) is distributed by many, at various
836 # versions.
837 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
838 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
839 { # This represents a particular channel of distribution for a given package.
840 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
841 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
842 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
843 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
844 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
845 # name.
846 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
847 # versions.
848 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
849 },
850 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
851 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
852 # denoting the package manager version distributing a package.
853 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
854 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
855 # built.
856 },
857 ],
858 },
859 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
860 # filter in list requests.
861 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
862 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
863 # consumer&#x27;s project at the start of analysis.
864 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
865 # discovery.
866 },
867 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
868 # a filter in list requests.
869 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
870 # chain step in an in-toto layout. This information goes into a Grafeas note.
871 &quot;expectedProducts&quot;: [
872 { # Defines an object to declare an in-toto artifact rule
873 &quot;artifactRule&quot;: [
874 &quot;A String&quot;,
875 ],
876 },
877 ],
878 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
879 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
880 # signatures on the step metadata.
881 { # This defines the format used to record keys used in the software supply
882 # chain. An in-toto link is attested using one or more keys defined in the
883 # in-toto layout. An example of this is:
884 # {
885 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
886 # &quot;key_type&quot;: &quot;rsa&quot;,
887 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
888 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
889 # }
890 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
891 # in-toto specification.
892 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
893 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
894 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
895 # and &quot;ecdsa&quot;.
896 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
897 # Eg: &quot;rsassa-pss-sha256&quot;.
898 },
899 ],
900 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
901 # need to be used to sign the step&#x27;s in-toto link.
902 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
903 # artifacts that enter this supply chain step, and exit the supply chain
904 # step, i.e. materials and products of the step.
905 { # Defines an object to declare an in-toto artifact rule
906 &quot;artifactRule&quot;: [
907 &quot;A String&quot;,
908 ],
909 },
910 ],
911 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
912 &quot;A String&quot;,
913 ],
914 },
915 &quot;relatedUrl&quot;: [ # URLs associated with this note.
916 { # Metadata for any related URL information.
917 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
918 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
919 },
920 ],
921 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
922 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
923 # relationship. Linked occurrences are derived from this or an
924 # equivalent image via:
925 # FROM &lt;Basis.resource_url&gt;
926 # Or an equivalent reference, e.g. a tag of the resource_url.
927 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
928 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
929 &quot;A String&quot;,
930 ],
931 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
932 # representation.
933 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
934 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
935 # Only the name of the final blob is kept.
936 },
937 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
938 # basis of associated occurrence images.
939 },
940 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
941 # list requests.
942 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
943 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
944 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
945 &quot;A String&quot;,
946 ],
947 },
948 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700949}
950
Dan O'Mearadd494642020-05-01 07:42:23 -0700951 noteId: string, Required. The ID to use for this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700952 x__xgafv: string, V1 error format.
953 Allowed values
954 1 - v1 error format
955 2 - v2 error format
956
957Returns:
958 An object of the form:
959
960 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -0700961 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
962 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
963 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
964 # the attached occurrences (Attestations). This grouping mechanism also
965 # provides a security boundary, since IAM ACLs gate the ability for a principle
966 # to attach an occurrence to a given note. It also provides a single point of
967 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
968 # live in the same project.
969 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
970 # authority. Because the name of a note acts as its resource reference, it is
971 # important to disambiguate the canonical name of the Note (which might be a
972 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
973 # output. Note that these hints should not be used to look up authorities in
974 # security sensitive contexts, such as when looking up attestations to
975 # verify.
976 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
977 # example &quot;qa&quot;.
978 },
979 },
980 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
981 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
982 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700983 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
984 # For details, see https://www.first.org/cvss/specification-document
985 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
986 &quot;scope&quot;: &quot;A String&quot;,
987 &quot;integrityImpact&quot;: &quot;A String&quot;,
988 &quot;exploitabilityScore&quot;: 3.14,
989 &quot;impactScore&quot;: 3.14,
990 &quot;attackComplexity&quot;: &quot;A String&quot;,
991 &quot;availabilityImpact&quot;: &quot;A String&quot;,
992 &quot;privilegesRequired&quot;: &quot;A String&quot;,
993 &quot;userInteraction&quot;: &quot;A String&quot;,
994 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
995 # Represents the intrinsic characteristics of a vulnerability that are
996 # constant over time and across user environments.
997 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
998 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700999 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1000 # upstream timestamp from the underlying information source - e.g. Ubuntu
1001 # security tracker.
1002 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1003 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1004 # patches, thus Windows vulnerabilities really are a missing package, rather
1005 # than a package being at an incorrect version.
1006 {
1007 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1008 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1009 # [cpe format](https://cpe.mitre.org/specification/) in which the
1010 # vulnerability manifests. Examples include distro or storage location for
1011 # vulnerable jar.
1012 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1013 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1014 # vulnerability. Note that there may be multiple hotfixes (and thus
1015 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1016 # kb&#x27;s presence is considered a fix.
1017 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001018 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1020 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 },
1022 ],
1023 },
1024 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001025 &quot;details&quot;: [ # All information about the package to specifically identify this
1026 # vulnerability. One entry per (version range and cpe_uri) the package
1027 # vulnerability has manifested in.
1028 { # Identifies all appearances of this vulnerability in the package for a
1029 # specific distro/location. For example: glibc in
1030 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1031 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1032 # obsolete details.
1033 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1034 # upstream timestamp from the underlying information source - e.g. Ubuntu
1035 # security tracker.
1036 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1037 # packages etc).
1038 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1039 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1040 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001041 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001042 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1043 # name.
1044 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1045 # versions.
1046 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001047 },
1048 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
1049 # format. Examples include distro or storage location for vulnerable jar.
1050 },
1051 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1052 # [cpe format](https://cpe.mitre.org/specification/) in which the
1053 # vulnerability manifests. Examples include distro or storage location for
1054 # vulnerable jar.
1055 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1056 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1057 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001058 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001059 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1060 # name.
1061 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1062 # versions.
1063 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001064 },
1065 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001066 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1068 # name.
1069 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1070 # versions.
1071 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001072 },
1073 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1074 },
1075 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001076 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001077 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001078 },
1079 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1080 &quot;A String&quot;,
1081 ],
1082 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001083 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001084 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001085 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001086 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1087 # `key_id`.
1088 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
1089 # base-64 encoded.
1090 &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 -07001091 # findings are valid and unchanged. If `key_type` is empty, this defaults
1092 # to PEM encoded public keys.
1093 #
1094 # This field may be empty if `key_id` references an external key.
1095 #
1096 # For Cloud Build based signatures, this is a PEM encoded public
1097 # key. To verify the Cloud Build signature, place the contents of
1098 # this field into a file (public.pem). The signature field is base64-decoded
1099 # into its binary representation in signature.bin, and the provenance bytes
1100 # from `BuildDetails` are base64-decoded into a binary representation in
1101 # signed.bin. OpenSSL can then verify the signature:
1102 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001103 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001104 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
1105 # CN for a cert), or a reference to an external key (such as a reference to a
1106 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001107 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001108 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001109 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001110 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
1111 # channels. E.g., glibc (aka libc6) is distributed by many, at various
1112 # versions.
1113 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1114 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1115 { # This represents a particular channel of distribution for a given package.
1116 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
1117 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1118 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1119 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1120 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1121 # name.
1122 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1123 # versions.
1124 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1125 },
1126 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1127 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
1128 # denoting the package manager version distributing a package.
1129 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1130 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
1131 # built.
1132 },
1133 ],
1134 },
1135 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
1136 # filter in list requests.
1137 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
1138 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1139 # consumer&#x27;s project at the start of analysis.
1140 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
1141 # discovery.
1142 },
1143 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1144 # a filter in list requests.
1145 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
1146 # chain step in an in-toto layout. This information goes into a Grafeas note.
1147 &quot;expectedProducts&quot;: [
1148 { # Defines an object to declare an in-toto artifact rule
1149 &quot;artifactRule&quot;: [
1150 &quot;A String&quot;,
1151 ],
1152 },
1153 ],
1154 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1155 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
1156 # signatures on the step metadata.
1157 { # This defines the format used to record keys used in the software supply
1158 # chain. An in-toto link is attested using one or more keys defined in the
1159 # in-toto layout. An example of this is:
1160 # {
1161 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
1162 # &quot;key_type&quot;: &quot;rsa&quot;,
1163 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
1164 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
1165 # }
1166 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
1167 # in-toto specification.
1168 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1169 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1170 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
1171 # and &quot;ecdsa&quot;.
1172 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
1173 # Eg: &quot;rsassa-pss-sha256&quot;.
1174 },
1175 ],
1176 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
1177 # need to be used to sign the step&#x27;s in-toto link.
1178 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
1179 # artifacts that enter this supply chain step, and exit the supply chain
1180 # step, i.e. materials and products of the step.
1181 { # Defines an object to declare an in-toto artifact rule
1182 &quot;artifactRule&quot;: [
1183 &quot;A String&quot;,
1184 ],
1185 },
1186 ],
1187 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1188 &quot;A String&quot;,
1189 ],
1190 },
1191 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1192 { # Metadata for any related URL information.
1193 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1194 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1195 },
1196 ],
1197 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1198 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1199 # relationship. Linked occurrences are derived from this or an
1200 # equivalent image via:
1201 # FROM &lt;Basis.resource_url&gt;
1202 # Or an equivalent reference, e.g. a tag of the resource_url.
1203 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1204 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1205 &quot;A String&quot;,
1206 ],
1207 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
1208 # representation.
1209 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1210 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1211 # Only the name of the final blob is kept.
1212 },
1213 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
1214 # basis of associated occurrence images.
1215 },
1216 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
1217 # list requests.
1218 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1219 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1220 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1221 &quot;A String&quot;,
1222 ],
1223 },
1224 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001225 }</pre>
1226</div>
1227
1228<div class="method">
1229 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1230 <pre>Deletes the specified note.
1231
1232Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001233 name: string, Required. The name of the note in the form of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001234`projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
1235 x__xgafv: string, V1 error format.
1236 Allowed values
1237 1 - v1 error format
1238 2 - v2 error format
1239
1240Returns:
1241 An object of the form:
1242
1243 { # A generic empty message that you can re-use to avoid defining duplicated
1244 # empty messages in your APIs. A typical example is to use it as the request
1245 # or the response type of an API method. For instance:
1246 #
1247 # service Foo {
1248 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1249 # }
1250 #
1251 # The JSON representation for `Empty` is empty JSON object `{}`.
1252 }</pre>
1253</div>
1254
1255<div class="method">
1256 <code class="details" id="get">get(name, x__xgafv=None)</code>
1257 <pre>Gets the specified note.
1258
1259Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001260 name: string, Required. The name of the note in the form of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001261`projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
1262 x__xgafv: string, V1 error format.
1263 Allowed values
1264 1 - v1 error format
1265 2 - v2 error format
1266
1267Returns:
1268 An object of the form:
1269
1270 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001271 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1272 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
1273 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
1274 # the attached occurrences (Attestations). This grouping mechanism also
1275 # provides a security boundary, since IAM ACLs gate the ability for a principle
1276 # to attach an occurrence to a given note. It also provides a single point of
1277 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
1278 # live in the same project.
1279 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
1280 # authority. Because the name of a note acts as its resource reference, it is
1281 # important to disambiguate the canonical name of the Note (which might be a
1282 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
1283 # output. Note that these hints should not be used to look up authorities in
1284 # security sensitive contexts, such as when looking up attestations to
1285 # verify.
1286 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
1287 # example &quot;qa&quot;.
1288 },
1289 },
1290 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
1291 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1292 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001293 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
1294 # For details, see https://www.first.org/cvss/specification-document
1295 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1296 &quot;scope&quot;: &quot;A String&quot;,
1297 &quot;integrityImpact&quot;: &quot;A String&quot;,
1298 &quot;exploitabilityScore&quot;: 3.14,
1299 &quot;impactScore&quot;: 3.14,
1300 &quot;attackComplexity&quot;: &quot;A String&quot;,
1301 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1302 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1303 &quot;userInteraction&quot;: &quot;A String&quot;,
1304 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
1305 # Represents the intrinsic characteristics of a vulnerability that are
1306 # constant over time and across user environments.
1307 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1308 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001309 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1310 # upstream timestamp from the underlying information source - e.g. Ubuntu
1311 # security tracker.
1312 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1313 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1314 # patches, thus Windows vulnerabilities really are a missing package, rather
1315 # than a package being at an incorrect version.
1316 {
1317 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1318 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1319 # [cpe format](https://cpe.mitre.org/specification/) in which the
1320 # vulnerability manifests. Examples include distro or storage location for
1321 # vulnerable jar.
1322 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1323 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1324 # vulnerability. Note that there may be multiple hotfixes (and thus
1325 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1326 # kb&#x27;s presence is considered a fix.
1327 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001328 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -07001329 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1330 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -07001331 },
1332 ],
1333 },
1334 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001335 &quot;details&quot;: [ # All information about the package to specifically identify this
1336 # vulnerability. One entry per (version range and cpe_uri) the package
1337 # vulnerability has manifested in.
1338 { # Identifies all appearances of this vulnerability in the package for a
1339 # specific distro/location. For example: glibc in
1340 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1341 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1342 # obsolete details.
1343 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1344 # upstream timestamp from the underlying information source - e.g. Ubuntu
1345 # security tracker.
1346 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1347 # packages etc).
1348 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1349 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1350 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001351 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001352 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1353 # name.
1354 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1355 # versions.
1356 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001357 },
1358 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
1359 # format. Examples include distro or storage location for vulnerable jar.
1360 },
1361 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1362 # [cpe format](https://cpe.mitre.org/specification/) in which the
1363 # vulnerability manifests. Examples include distro or storage location for
1364 # vulnerable jar.
1365 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1366 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1367 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001368 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001369 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1370 # name.
1371 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1372 # versions.
1373 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001374 },
1375 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001376 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001377 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1378 # name.
1379 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1380 # versions.
1381 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001382 },
1383 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1384 },
1385 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001386 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001387 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001388 },
1389 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1390 &quot;A String&quot;,
1391 ],
1392 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001393 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001394 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001395 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1397 # `key_id`.
1398 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
1399 # base-64 encoded.
1400 &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 -07001401 # findings are valid and unchanged. If `key_type` is empty, this defaults
1402 # to PEM encoded public keys.
1403 #
1404 # This field may be empty if `key_id` references an external key.
1405 #
1406 # For Cloud Build based signatures, this is a PEM encoded public
1407 # key. To verify the Cloud Build signature, place the contents of
1408 # this field into a file (public.pem). The signature field is base64-decoded
1409 # into its binary representation in signature.bin, and the provenance bytes
1410 # from `BuildDetails` are base64-decoded into a binary representation in
1411 # signed.bin. OpenSSL can then verify the signature:
1412 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001413 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001414 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
1415 # CN for a cert), or a reference to an external key (such as a reference to a
1416 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001417 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001418 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001419 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001420 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
1421 # channels. E.g., glibc (aka libc6) is distributed by many, at various
1422 # versions.
1423 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1424 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1425 { # This represents a particular channel of distribution for a given package.
1426 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
1427 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1428 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1429 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1430 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1431 # name.
1432 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1433 # versions.
1434 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1435 },
1436 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1437 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
1438 # denoting the package manager version distributing a package.
1439 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1440 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
1441 # built.
1442 },
1443 ],
1444 },
1445 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
1446 # filter in list requests.
1447 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
1448 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1449 # consumer&#x27;s project at the start of analysis.
1450 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
1451 # discovery.
1452 },
1453 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1454 # a filter in list requests.
1455 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
1456 # chain step in an in-toto layout. This information goes into a Grafeas note.
1457 &quot;expectedProducts&quot;: [
1458 { # Defines an object to declare an in-toto artifact rule
1459 &quot;artifactRule&quot;: [
1460 &quot;A String&quot;,
1461 ],
1462 },
1463 ],
1464 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1465 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
1466 # signatures on the step metadata.
1467 { # This defines the format used to record keys used in the software supply
1468 # chain. An in-toto link is attested using one or more keys defined in the
1469 # in-toto layout. An example of this is:
1470 # {
1471 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
1472 # &quot;key_type&quot;: &quot;rsa&quot;,
1473 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
1474 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
1475 # }
1476 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
1477 # in-toto specification.
1478 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1479 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1480 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
1481 # and &quot;ecdsa&quot;.
1482 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
1483 # Eg: &quot;rsassa-pss-sha256&quot;.
1484 },
1485 ],
1486 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
1487 # need to be used to sign the step&#x27;s in-toto link.
1488 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
1489 # artifacts that enter this supply chain step, and exit the supply chain
1490 # step, i.e. materials and products of the step.
1491 { # Defines an object to declare an in-toto artifact rule
1492 &quot;artifactRule&quot;: [
1493 &quot;A String&quot;,
1494 ],
1495 },
1496 ],
1497 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1498 &quot;A String&quot;,
1499 ],
1500 },
1501 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1502 { # Metadata for any related URL information.
1503 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1504 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1505 },
1506 ],
1507 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1508 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1509 # relationship. Linked occurrences are derived from this or an
1510 # equivalent image via:
1511 # FROM &lt;Basis.resource_url&gt;
1512 # Or an equivalent reference, e.g. a tag of the resource_url.
1513 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1514 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1515 &quot;A String&quot;,
1516 ],
1517 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
1518 # representation.
1519 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1520 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1521 # Only the name of the final blob is kept.
1522 },
1523 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
1524 # basis of associated occurrence images.
1525 },
1526 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
1527 # list requests.
1528 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1529 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1530 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1531 &quot;A String&quot;,
1532 ],
1533 },
1534 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001535 }</pre>
1536</div>
1537
1538<div class="method">
1539 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
1540 <pre>Gets the access control policy for a note or an occurrence resource.
1541Requires `containeranalysis.notes.setIamPolicy` or
1542`containeranalysis.occurrences.setIamPolicy` permission if the resource is
1543a note or occurrence, respectively.
1544
1545The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
1546notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
1547occurrences.
1548
1549Args:
1550 resource: string, REQUIRED: The resource for which the policy is being requested.
1551See the operation documentation for the appropriate value for this field. (required)
1552 body: object, The request body.
1553 The object takes the form of:
1554
1555{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -07001557 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001558 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -07001559 #
1560 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1561 # rejected.
1562 #
1563 # Requests for policies with any conditional bindings must specify version 3.
1564 # Policies without any conditional bindings may specify any valid value or
1565 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001566 #
1567 # To learn which resources support conditions in their IAM policies, see the
1568 # [IAM
1569 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001570 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001571 }
1572
1573 x__xgafv: string, V1 error format.
1574 Allowed values
1575 1 - v1 error format
1576 2 - v2 error format
1577
1578Returns:
1579 An object of the form:
1580
Dan O'Mearadd494642020-05-01 07:42:23 -07001581 { # An Identity and Access Management (IAM) policy, which specifies access
1582 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001583 #
1584 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001585 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1586 # `members` to a single `role`. Members can be user accounts, service accounts,
1587 # Google groups, and domains (such as G Suite). A `role` is a named list of
1588 # permissions; each `role` can be an IAM predefined role or a user-created
1589 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001590 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001591 # For some types of Google Cloud resources, a `binding` can also specify a
1592 # `condition`, which is a logical expression that allows access to a resource
1593 # only if the expression evaluates to `true`. A condition can add constraints
1594 # based on attributes of the request, the resource, or both. To learn which
1595 # resources support conditions in their IAM policies, see the
1596 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001597 #
1598 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001599 #
1600 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001601 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001602 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001603 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1604 # &quot;members&quot;: [
1605 # &quot;user:mike@example.com&quot;,
1606 # &quot;group:admins@example.com&quot;,
1607 # &quot;domain:google.com&quot;,
1608 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001609 # ]
1610 # },
1611 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001612 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1613 # &quot;members&quot;: [
1614 # &quot;user:eve@example.com&quot;
1615 # ],
1616 # &quot;condition&quot;: {
1617 # &quot;title&quot;: &quot;expirable access&quot;,
1618 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1619 # &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 -07001620 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001621 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001622 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001623 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1624 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001625 # }
1626 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001627 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001628 #
1629 # bindings:
1630 # - members:
1631 # - user:mike@example.com
1632 # - group:admins@example.com
1633 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001634 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1635 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001636 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001637 # - user:eve@example.com
1638 # role: roles/resourcemanager.organizationViewer
1639 # condition:
1640 # title: expirable access
1641 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001642 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001643 # - etag: BwWWja0YfJA=
1644 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001645 #
1646 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001647 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001648 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1649 # prevent simultaneous updates of a policy from overwriting each other.
1650 # It is strongly suggested that systems make use of the `etag` in the
1651 # read-modify-write cycle to perform policy updates in order to avoid race
1652 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1653 # systems are expected to put that etag in the request to `setIamPolicy` to
1654 # ensure that their change will be applied to the same version of the policy.
1655 #
1656 # **Important:** If you use IAM Conditions, you must include the `etag` field
1657 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1658 # you to overwrite a version `3` policy with a version `1` policy, and all of
1659 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07001660 &quot;version&quot;: 42, # Specifies the format of the policy.
1661 #
1662 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1663 # are rejected.
1664 #
1665 # Any operation that affects conditional role bindings must specify version
1666 # `3`. This requirement applies to the following operations:
1667 #
1668 # * Getting a policy that includes a conditional role binding
1669 # * Adding a conditional role binding to a policy
1670 # * Changing a conditional role binding in a policy
1671 # * Removing any role binding, with or without a condition, from a policy
1672 # that includes conditions
1673 #
1674 # **Important:** If you use IAM Conditions, you must include the `etag` field
1675 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1676 # you to overwrite a version `3` policy with a version `1` policy, and all of
1677 # the conditions in the version `3` policy are lost.
1678 #
1679 # If a policy does not include any conditions, operations on that policy may
1680 # specify any valid version or leave the field unset.
1681 #
1682 # To learn which resources support conditions in their IAM policies, see the
1683 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1684 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001685 # `condition` that determines how and when the `bindings` are applied. Each
1686 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001687 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001688 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1689 #
1690 # If the condition evaluates to `true`, then this binding applies to the
1691 # current request.
1692 #
1693 # If the condition evaluates to `false`, then this binding does not apply to
1694 # the current request. However, a different role binding might grant the same
1695 # role to one or more of the members in this binding.
1696 #
1697 # To learn which resources support conditions in their IAM policies, see the
1698 # [IAM
1699 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1700 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1701 # are documented at https://github.com/google/cel-spec.
1702 #
1703 # Example (Comparison):
1704 #
1705 # title: &quot;Summary size limit&quot;
1706 # description: &quot;Determines if a summary is less than 100 chars&quot;
1707 # expression: &quot;document.summary.size() &lt; 100&quot;
1708 #
1709 # Example (Equality):
1710 #
1711 # title: &quot;Requestor is owner&quot;
1712 # description: &quot;Determines if requestor is the document owner&quot;
1713 # expression: &quot;document.owner == request.auth.claims.email&quot;
1714 #
1715 # Example (Logic):
1716 #
1717 # title: &quot;Public documents&quot;
1718 # description: &quot;Determine whether the document should be publicly visible&quot;
1719 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1720 #
1721 # Example (Data Manipulation):
1722 #
1723 # title: &quot;Notification string&quot;
1724 # description: &quot;Create a notification string with a timestamp.&quot;
1725 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1726 #
1727 # The exact variables and functions that may be referenced within an expression
1728 # are determined by the service that evaluates it. See the service
1729 # documentation for additional information.
1730 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1731 # describes the expression, e.g. when hovered over it in a UI.
1732 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1733 # syntax.
1734 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1735 # its purpose. This can be used e.g. in UIs which allow to enter the
1736 # expression.
1737 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1738 # reporting, e.g. a file name and a position in the file.
1739 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001740 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001741 # `members` can have the following values:
1742 #
1743 # * `allUsers`: A special identifier that represents anyone who is
1744 # on the internet; with or without a Google account.
1745 #
1746 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1747 # who is authenticated with a Google account or a service account.
1748 #
1749 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001750 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001751 #
1752 #
1753 # * `serviceAccount:{emailid}`: An email address that represents a service
1754 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1755 #
1756 # * `group:{emailid}`: An email address that represents a Google group.
1757 # For example, `admins@example.com`.
1758 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001759 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1760 # identifier) representing a user that has been recently deleted. For
1761 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1762 # recovered, this value reverts to `user:{emailid}` and the recovered user
1763 # retains the role in the binding.
1764 #
1765 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1766 # unique identifier) representing a service account that has been recently
1767 # deleted. For example,
1768 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1769 # If the service account is undeleted, this value reverts to
1770 # `serviceAccount:{emailid}` and the undeleted service account retains the
1771 # role in the binding.
1772 #
1773 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1774 # identifier) representing a Google group that has been recently
1775 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1776 # the group is recovered, this value reverts to `group:{emailid}` and the
1777 # recovered group retains the role in the binding.
1778 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001779 #
1780 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1781 # users of that domain. For example, `google.com` or `example.com`.
1782 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001783 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001784 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001785 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1786 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001787 },
1788 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001789 }</pre>
1790</div>
1791
1792<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001793 <code class="details" id="list">list(parent, pageToken=None, pageSize=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001794 <pre>Lists notes for the specified project.
1795
1796Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07001797 parent: string, Required. The name of the project to list notes for in the form of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001798`projects/[PROJECT_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001799 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07001800 pageSize: integer, Number of notes to return in the list. Must be positive. Max allowed page
1801size is 1000. If not specified, page size defaults to 20.
1802 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001803 x__xgafv: string, V1 error format.
1804 Allowed values
1805 1 - v1 error format
1806 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001807
1808Returns:
1809 An object of the form:
1810
1811 { # Response for listing notes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001812 &quot;notes&quot;: [ # The notes requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001813 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001814 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1815 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
1816 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
1817 # the attached occurrences (Attestations). This grouping mechanism also
1818 # provides a security boundary, since IAM ACLs gate the ability for a principle
1819 # to attach an occurrence to a given note. It also provides a single point of
1820 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
1821 # live in the same project.
1822 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
1823 # authority. Because the name of a note acts as its resource reference, it is
1824 # important to disambiguate the canonical name of the Note (which might be a
1825 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
1826 # output. Note that these hints should not be used to look up authorities in
1827 # security sensitive contexts, such as when looking up attestations to
1828 # verify.
1829 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
1830 # example &quot;qa&quot;.
1831 },
1832 },
1833 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
1834 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1835 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001836 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
1837 # For details, see https://www.first.org/cvss/specification-document
1838 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1839 &quot;scope&quot;: &quot;A String&quot;,
1840 &quot;integrityImpact&quot;: &quot;A String&quot;,
1841 &quot;exploitabilityScore&quot;: 3.14,
1842 &quot;impactScore&quot;: 3.14,
1843 &quot;attackComplexity&quot;: &quot;A String&quot;,
1844 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1845 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1846 &quot;userInteraction&quot;: &quot;A String&quot;,
1847 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
1848 # Represents the intrinsic characteristics of a vulnerability that are
1849 # constant over time and across user environments.
1850 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1851 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1853 # upstream timestamp from the underlying information source - e.g. Ubuntu
1854 # security tracker.
1855 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1856 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1857 # patches, thus Windows vulnerabilities really are a missing package, rather
1858 # than a package being at an incorrect version.
1859 {
1860 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1861 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1862 # [cpe format](https://cpe.mitre.org/specification/) in which the
1863 # vulnerability manifests. Examples include distro or storage location for
1864 # vulnerable jar.
1865 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1866 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1867 # vulnerability. Note that there may be multiple hotfixes (and thus
1868 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1869 # kb&#x27;s presence is considered a fix.
1870 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001871 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -07001872 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1873 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -07001874 },
1875 ],
1876 },
1877 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001878 &quot;details&quot;: [ # All information about the package to specifically identify this
1879 # vulnerability. One entry per (version range and cpe_uri) the package
1880 # vulnerability has manifested in.
1881 { # Identifies all appearances of this vulnerability in the package for a
1882 # specific distro/location. For example: glibc in
1883 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1884 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1885 # obsolete details.
1886 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1887 # upstream timestamp from the underlying information source - e.g. Ubuntu
1888 # security tracker.
1889 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1890 # packages etc).
1891 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1892 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1893 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001894 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001895 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1896 # name.
1897 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1898 # versions.
1899 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001900 },
1901 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
1902 # format. Examples include distro or storage location for vulnerable jar.
1903 },
1904 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1905 # [cpe format](https://cpe.mitre.org/specification/) in which the
1906 # vulnerability manifests. Examples include distro or storage location for
1907 # vulnerable jar.
1908 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1909 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1910 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001911 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001912 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1913 # name.
1914 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1915 # versions.
1916 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001917 },
1918 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001919 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1921 # name.
1922 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1923 # versions.
1924 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 },
1926 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1927 },
1928 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001929 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001930 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001931 },
1932 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1933 &quot;A String&quot;,
1934 ],
1935 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001936 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001937 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001938 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001939 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1940 # `key_id`.
1941 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
1942 # base-64 encoded.
1943 &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 -07001944 # findings are valid and unchanged. If `key_type` is empty, this defaults
1945 # to PEM encoded public keys.
1946 #
1947 # This field may be empty if `key_id` references an external key.
1948 #
1949 # For Cloud Build based signatures, this is a PEM encoded public
1950 # key. To verify the Cloud Build signature, place the contents of
1951 # this field into a file (public.pem). The signature field is base64-decoded
1952 # into its binary representation in signature.bin, and the provenance bytes
1953 # from `BuildDetails` are base64-decoded into a binary representation in
1954 # signed.bin. OpenSSL can then verify the signature:
1955 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001956 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001957 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
1958 # CN for a cert), or a reference to an external key (such as a reference to a
1959 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001960 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001961 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001962 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001963 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
1964 # channels. E.g., glibc (aka libc6) is distributed by many, at various
1965 # versions.
1966 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1967 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1968 { # This represents a particular channel of distribution for a given package.
1969 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
1970 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1971 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1972 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1973 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1974 # name.
1975 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1976 # versions.
1977 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1978 },
1979 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1980 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
1981 # denoting the package manager version distributing a package.
1982 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1983 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
1984 # built.
1985 },
1986 ],
1987 },
1988 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
1989 # filter in list requests.
1990 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
1991 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1992 # consumer&#x27;s project at the start of analysis.
1993 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
1994 # discovery.
1995 },
1996 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1997 # a filter in list requests.
1998 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
1999 # chain step in an in-toto layout. This information goes into a Grafeas note.
2000 &quot;expectedProducts&quot;: [
2001 { # Defines an object to declare an in-toto artifact rule
2002 &quot;artifactRule&quot;: [
2003 &quot;A String&quot;,
2004 ],
2005 },
2006 ],
2007 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2008 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
2009 # signatures on the step metadata.
2010 { # This defines the format used to record keys used in the software supply
2011 # chain. An in-toto link is attested using one or more keys defined in the
2012 # in-toto layout. An example of this is:
2013 # {
2014 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
2015 # &quot;key_type&quot;: &quot;rsa&quot;,
2016 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
2017 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
2018 # }
2019 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
2020 # in-toto specification.
2021 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2022 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
2023 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
2024 # and &quot;ecdsa&quot;.
2025 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
2026 # Eg: &quot;rsassa-pss-sha256&quot;.
2027 },
2028 ],
2029 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
2030 # need to be used to sign the step&#x27;s in-toto link.
2031 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
2032 # artifacts that enter this supply chain step, and exit the supply chain
2033 # step, i.e. materials and products of the step.
2034 { # Defines an object to declare an in-toto artifact rule
2035 &quot;artifactRule&quot;: [
2036 &quot;A String&quot;,
2037 ],
2038 },
2039 ],
2040 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2041 &quot;A String&quot;,
2042 ],
2043 },
2044 &quot;relatedUrl&quot;: [ # URLs associated with this note.
2045 { # Metadata for any related URL information.
2046 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2047 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2048 },
2049 ],
2050 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2051 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
2052 # relationship. Linked occurrences are derived from this or an
2053 # equivalent image via:
2054 # FROM &lt;Basis.resource_url&gt;
2055 # Or an equivalent reference, e.g. a tag of the resource_url.
2056 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2057 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2058 &quot;A String&quot;,
2059 ],
2060 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
2061 # representation.
2062 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2063 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2064 # Only the name of the final blob is kept.
2065 },
2066 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
2067 # basis of associated occurrence images.
2068 },
2069 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
2070 # list requests.
2071 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2072 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2073 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2074 &quot;A String&quot;,
2075 ],
2076 },
2077 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002078 },
2079 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002080 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as
2081 # `page_token` for the following request. An empty value means no more
2082 # results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002083 }</pre>
2084</div>
2085
2086<div class="method">
2087 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2088 <pre>Retrieves the next page of results.
2089
2090Args:
2091 previous_request: The request for the previous page. (required)
2092 previous_response: The response from the request for the previous page. (required)
2093
2094Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002095 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002096 page. Returns None if there are no more items in the collection.
2097 </pre>
2098</div>
2099
2100<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002101 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002102 <pre>Updates the specified note.
2103
2104Args:
Dan O'Mearadd494642020-05-01 07:42:23 -07002105 name: string, Required. The name of the note in the form of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002106`projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002107 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002108 The object takes the form of:
2109
2110{ # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002111 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
2112 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
2113 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
2114 # the attached occurrences (Attestations). This grouping mechanism also
2115 # provides a security boundary, since IAM ACLs gate the ability for a principle
2116 # to attach an occurrence to a given note. It also provides a single point of
2117 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
2118 # live in the same project.
2119 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
2120 # authority. Because the name of a note acts as its resource reference, it is
2121 # important to disambiguate the canonical name of the Note (which might be a
2122 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
2123 # output. Note that these hints should not be used to look up authorities in
2124 # security sensitive contexts, such as when looking up attestations to
2125 # verify.
2126 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
2127 # example &quot;qa&quot;.
2128 },
2129 },
2130 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
2131 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2132 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002133 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
2134 # For details, see https://www.first.org/cvss/specification-document
2135 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2136 &quot;scope&quot;: &quot;A String&quot;,
2137 &quot;integrityImpact&quot;: &quot;A String&quot;,
2138 &quot;exploitabilityScore&quot;: 3.14,
2139 &quot;impactScore&quot;: 3.14,
2140 &quot;attackComplexity&quot;: &quot;A String&quot;,
2141 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2142 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2143 &quot;userInteraction&quot;: &quot;A String&quot;,
2144 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
2145 # Represents the intrinsic characteristics of a vulnerability that are
2146 # constant over time and across user environments.
2147 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2148 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002149 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2150 # upstream timestamp from the underlying information source - e.g. Ubuntu
2151 # security tracker.
2152 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
2153 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
2154 # patches, thus Windows vulnerabilities really are a missing package, rather
2155 # than a package being at an incorrect version.
2156 {
2157 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2158 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2159 # [cpe format](https://cpe.mitre.org/specification/) in which the
2160 # vulnerability manifests. Examples include distro or storage location for
2161 # vulnerable jar.
2162 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2163 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
2164 # vulnerability. Note that there may be multiple hotfixes (and thus
2165 # multiple KBs) that mitigate a given vulnerability. Currently any listed
2166 # kb&#x27;s presence is considered a fix.
2167 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002168 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -07002169 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
2170 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -07002171 },
2172 ],
2173 },
2174 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002175 &quot;details&quot;: [ # All information about the package to specifically identify this
2176 # vulnerability. One entry per (version range and cpe_uri) the package
2177 # vulnerability has manifested in.
2178 { # Identifies all appearances of this vulnerability in the package for a
2179 # specific distro/location. For example: glibc in
2180 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
2181 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
2182 # obsolete details.
2183 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2184 # upstream timestamp from the underlying information source - e.g. Ubuntu
2185 # security tracker.
2186 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
2187 # packages etc).
2188 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2189 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2190 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002191 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002192 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2193 # name.
2194 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2195 # versions.
2196 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002197 },
2198 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
2199 # format. Examples include distro or storage location for vulnerable jar.
2200 },
2201 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2202 # [cpe format](https://cpe.mitre.org/specification/) in which the
2203 # vulnerability manifests. Examples include distro or storage location for
2204 # vulnerable jar.
2205 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2206 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2207 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002208 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002209 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2210 # name.
2211 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2212 # versions.
2213 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002214 },
2215 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002216 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002217 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2218 # name.
2219 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2220 # versions.
2221 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002222 },
2223 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2224 },
2225 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002226 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002227 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002228 },
2229 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2230 &quot;A String&quot;,
2231 ],
2232 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002233 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002234 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002235 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002236 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
2237 # `key_id`.
2238 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
2239 # base-64 encoded.
2240 &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 -07002241 # findings are valid and unchanged. If `key_type` is empty, this defaults
2242 # to PEM encoded public keys.
2243 #
2244 # This field may be empty if `key_id` references an external key.
2245 #
2246 # For Cloud Build based signatures, this is a PEM encoded public
2247 # key. To verify the Cloud Build signature, place the contents of
2248 # this field into a file (public.pem). The signature field is base64-decoded
2249 # into its binary representation in signature.bin, and the provenance bytes
2250 # from `BuildDetails` are base64-decoded into a binary representation in
2251 # signed.bin. OpenSSL can then verify the signature:
2252 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07002253 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002254 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
2255 # CN for a cert), or a reference to an external key (such as a reference to a
2256 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002257 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002258 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002259 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002260 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
2261 # channels. E.g., glibc (aka libc6) is distributed by many, at various
2262 # versions.
2263 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2264 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2265 { # This represents a particular channel of distribution for a given package.
2266 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
2267 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2268 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2269 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2270 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2271 # name.
2272 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2273 # versions.
2274 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2275 },
2276 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2277 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
2278 # denoting the package manager version distributing a package.
2279 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2280 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
2281 # built.
2282 },
2283 ],
2284 },
2285 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
2286 # filter in list requests.
2287 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
2288 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2289 # consumer&#x27;s project at the start of analysis.
2290 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
2291 # discovery.
2292 },
2293 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2294 # a filter in list requests.
2295 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
2296 # chain step in an in-toto layout. This information goes into a Grafeas note.
2297 &quot;expectedProducts&quot;: [
2298 { # Defines an object to declare an in-toto artifact rule
2299 &quot;artifactRule&quot;: [
2300 &quot;A String&quot;,
2301 ],
2302 },
2303 ],
2304 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2305 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
2306 # signatures on the step metadata.
2307 { # This defines the format used to record keys used in the software supply
2308 # chain. An in-toto link is attested using one or more keys defined in the
2309 # in-toto layout. An example of this is:
2310 # {
2311 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
2312 # &quot;key_type&quot;: &quot;rsa&quot;,
2313 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
2314 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
2315 # }
2316 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
2317 # in-toto specification.
2318 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2319 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
2320 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
2321 # and &quot;ecdsa&quot;.
2322 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
2323 # Eg: &quot;rsassa-pss-sha256&quot;.
2324 },
2325 ],
2326 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
2327 # need to be used to sign the step&#x27;s in-toto link.
2328 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
2329 # artifacts that enter this supply chain step, and exit the supply chain
2330 # step, i.e. materials and products of the step.
2331 { # Defines an object to declare an in-toto artifact rule
2332 &quot;artifactRule&quot;: [
2333 &quot;A String&quot;,
2334 ],
2335 },
2336 ],
2337 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2338 &quot;A String&quot;,
2339 ],
2340 },
2341 &quot;relatedUrl&quot;: [ # URLs associated with this note.
2342 { # Metadata for any related URL information.
2343 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2344 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2345 },
2346 ],
2347 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2348 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
2349 # relationship. Linked occurrences are derived from this or an
2350 # equivalent image via:
2351 # FROM &lt;Basis.resource_url&gt;
2352 # Or an equivalent reference, e.g. a tag of the resource_url.
2353 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2354 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2355 &quot;A String&quot;,
2356 ],
2357 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
2358 # representation.
2359 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2360 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2361 # Only the name of the final blob is kept.
2362 },
2363 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
2364 # basis of associated occurrence images.
2365 },
2366 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
2367 # list requests.
2368 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2369 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2370 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2371 &quot;A String&quot;,
2372 ],
2373 },
2374 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002375}
2376
2377 updateMask: string, The fields to update.
2378 x__xgafv: string, V1 error format.
2379 Allowed values
2380 1 - v1 error format
2381 2 - v2 error format
2382
2383Returns:
2384 An object of the form:
2385
2386 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07002387 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
2388 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
2389 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
2390 # the attached occurrences (Attestations). This grouping mechanism also
2391 # provides a security boundary, since IAM ACLs gate the ability for a principle
2392 # to attach an occurrence to a given note. It also provides a single point of
2393 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
2394 # live in the same project.
2395 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
2396 # authority. Because the name of a note acts as its resource reference, it is
2397 # important to disambiguate the canonical name of the Note (which might be a
2398 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
2399 # output. Note that these hints should not be used to look up authorities in
2400 # security sensitive contexts, such as when looking up attestations to
2401 # verify.
2402 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
2403 # example &quot;qa&quot;.
2404 },
2405 },
2406 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
2407 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2408 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002409 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
2410 # For details, see https://www.first.org/cvss/specification-document
2411 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2412 &quot;scope&quot;: &quot;A String&quot;,
2413 &quot;integrityImpact&quot;: &quot;A String&quot;,
2414 &quot;exploitabilityScore&quot;: 3.14,
2415 &quot;impactScore&quot;: 3.14,
2416 &quot;attackComplexity&quot;: &quot;A String&quot;,
2417 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2418 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2419 &quot;userInteraction&quot;: &quot;A String&quot;,
2420 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
2421 # Represents the intrinsic characteristics of a vulnerability that are
2422 # constant over time and across user environments.
2423 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2424 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002425 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2426 # upstream timestamp from the underlying information source - e.g. Ubuntu
2427 # security tracker.
2428 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
2429 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
2430 # patches, thus Windows vulnerabilities really are a missing package, rather
2431 # than a package being at an incorrect version.
2432 {
2433 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2434 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2435 # [cpe format](https://cpe.mitre.org/specification/) in which the
2436 # vulnerability manifests. Examples include distro or storage location for
2437 # vulnerable jar.
2438 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2439 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
2440 # vulnerability. Note that there may be multiple hotfixes (and thus
2441 # multiple KBs) that mitigate a given vulnerability. Currently any listed
2442 # kb&#x27;s presence is considered a fix.
2443 {
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002444 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Bu Sun Kim65020912020-05-20 12:08:20 -07002445 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
2446 # https://www.catalog.update.microsoft.com/
Bu Sun Kim65020912020-05-20 12:08:20 -07002447 },
2448 ],
2449 },
2450 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002451 &quot;details&quot;: [ # All information about the package to specifically identify this
2452 # vulnerability. One entry per (version range and cpe_uri) the package
2453 # vulnerability has manifested in.
2454 { # Identifies all appearances of this vulnerability in the package for a
2455 # specific distro/location. For example: glibc in
2456 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
2457 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
2458 # obsolete details.
2459 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2460 # upstream timestamp from the underlying information source - e.g. Ubuntu
2461 # security tracker.
2462 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
2463 # packages etc).
2464 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2465 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2466 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002467 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002468 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2469 # name.
2470 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2471 # versions.
2472 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002473 },
2474 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
2475 # format. Examples include distro or storage location for vulnerable jar.
2476 },
2477 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2478 # [cpe format](https://cpe.mitre.org/specification/) in which the
2479 # vulnerability manifests. Examples include distro or storage location for
2480 # vulnerable jar.
2481 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2482 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2483 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002484 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002485 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2486 # name.
2487 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2488 # versions.
2489 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002490 },
2491 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002492 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002493 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2494 # name.
2495 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2496 # versions.
2497 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Bu Sun Kim65020912020-05-20 12:08:20 -07002498 },
2499 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2500 },
2501 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002502 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002503 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002504 },
2505 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2506 &quot;A String&quot;,
2507 ],
2508 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the # A note describing build provenance for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002509 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002510 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002511 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002512 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
2513 # `key_id`.
2514 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
2515 # base-64 encoded.
2516 &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 -07002517 # findings are valid and unchanged. If `key_type` is empty, this defaults
2518 # to PEM encoded public keys.
2519 #
2520 # This field may be empty if `key_id` references an external key.
2521 #
2522 # For Cloud Build based signatures, this is a PEM encoded public
2523 # key. To verify the Cloud Build signature, place the contents of
2524 # this field into a file (public.pem). The signature field is base64-decoded
2525 # into its binary representation in signature.bin, and the provenance bytes
2526 # from `BuildDetails` are base64-decoded into a binary representation in
2527 # signed.bin. OpenSSL can then verify the signature:
2528 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07002529 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002530 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
2531 # CN for a cert), or a reference to an external key (such as a reference to a
2532 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002533 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002534 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002535 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002536 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
2537 # channels. E.g., glibc (aka libc6) is distributed by many, at various
2538 # versions.
2539 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2540 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
2541 { # This represents a particular channel of distribution for a given package.
2542 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
2543 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2544 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2545 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2546 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2547 # name.
2548 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2549 # versions.
2550 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2551 },
2552 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2553 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
2554 # denoting the package manager version distributing a package.
2555 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2556 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
2557 # built.
2558 },
2559 ],
2560 },
2561 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
2562 # filter in list requests.
2563 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing the initial analysis of a resource.
2564 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2565 # consumer&#x27;s project at the start of analysis.
2566 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
2567 # discovery.
2568 },
2569 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2570 # a filter in list requests.
2571 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
2572 # chain step in an in-toto layout. This information goes into a Grafeas note.
2573 &quot;expectedProducts&quot;: [
2574 { # Defines an object to declare an in-toto artifact rule
2575 &quot;artifactRule&quot;: [
2576 &quot;A String&quot;,
2577 ],
2578 },
2579 ],
2580 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2581 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
2582 # signatures on the step metadata.
2583 { # This defines the format used to record keys used in the software supply
2584 # chain. An in-toto link is attested using one or more keys defined in the
2585 # in-toto layout. An example of this is:
2586 # {
2587 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
2588 # &quot;key_type&quot;: &quot;rsa&quot;,
2589 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
2590 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
2591 # }
2592 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
2593 # in-toto specification.
2594 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2595 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
2596 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
2597 # and &quot;ecdsa&quot;.
2598 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
2599 # Eg: &quot;rsassa-pss-sha256&quot;.
2600 },
2601 ],
2602 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
2603 # need to be used to sign the step&#x27;s in-toto link.
2604 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
2605 # artifacts that enter this supply chain step, and exit the supply chain
2606 # step, i.e. materials and products of the step.
2607 { # Defines an object to declare an in-toto artifact rule
2608 &quot;artifactRule&quot;: [
2609 &quot;A String&quot;,
2610 ],
2611 },
2612 ],
2613 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2614 &quot;A String&quot;,
2615 ],
2616 },
2617 &quot;relatedUrl&quot;: [ # URLs associated with this note.
2618 { # Metadata for any related URL information.
2619 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2620 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
2621 },
2622 ],
2623 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2624 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
2625 # relationship. Linked occurrences are derived from this or an
2626 # equivalent image via:
2627 # FROM &lt;Basis.resource_url&gt;
2628 # Or an equivalent reference, e.g. a tag of the resource_url.
2629 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2630 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2631 &quot;A String&quot;,
2632 ],
2633 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
2634 # representation.
2635 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2636 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2637 # Only the name of the final blob is kept.
2638 },
2639 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
2640 # basis of associated occurrence images.
2641 },
2642 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
2643 # list requests.
2644 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2645 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2646 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2647 &quot;A String&quot;,
2648 ],
2649 },
2650 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002651 }</pre>
2652</div>
2653
2654<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002655 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002656 <pre>Sets the access control policy on the specified note or occurrence.
2657Requires `containeranalysis.notes.setIamPolicy` or
2658`containeranalysis.occurrences.setIamPolicy` permission if the resource is
2659a note or an occurrence, respectively.
2660
2661The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
2662notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
2663occurrences.
2664
2665Args:
2666 resource: string, REQUIRED: The resource for which the policy is being specified.
2667See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002668 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002669 The object takes the form of:
2670
2671{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07002672 &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 -07002673 # the policy is limited to a few 10s of KB. An empty policy is a
2674 # valid policy but certain Cloud Platform services (such as Projects)
2675 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07002676 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002677 #
2678 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002679 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2680 # `members` to a single `role`. Members can be user accounts, service accounts,
2681 # Google groups, and domains (such as G Suite). A `role` is a named list of
2682 # permissions; each `role` can be an IAM predefined role or a user-created
2683 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002684 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002685 # For some types of Google Cloud resources, a `binding` can also specify a
2686 # `condition`, which is a logical expression that allows access to a resource
2687 # only if the expression evaluates to `true`. A condition can add constraints
2688 # based on attributes of the request, the resource, or both. To learn which
2689 # resources support conditions in their IAM policies, see the
2690 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002691 #
2692 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002693 #
2694 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002695 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002696 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002697 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2698 # &quot;members&quot;: [
2699 # &quot;user:mike@example.com&quot;,
2700 # &quot;group:admins@example.com&quot;,
2701 # &quot;domain:google.com&quot;,
2702 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002703 # ]
2704 # },
2705 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002706 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2707 # &quot;members&quot;: [
2708 # &quot;user:eve@example.com&quot;
2709 # ],
2710 # &quot;condition&quot;: {
2711 # &quot;title&quot;: &quot;expirable access&quot;,
2712 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2713 # &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 -07002714 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002715 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07002716 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002717 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2718 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002719 # }
2720 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002721 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002722 #
2723 # bindings:
2724 # - members:
2725 # - user:mike@example.com
2726 # - group:admins@example.com
2727 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07002728 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
2729 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002730 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07002731 # - user:eve@example.com
2732 # role: roles/resourcemanager.organizationViewer
2733 # condition:
2734 # title: expirable access
2735 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07002736 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07002737 # - etag: BwWWja0YfJA=
2738 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002739 #
2740 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07002741 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002742 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2743 # prevent simultaneous updates of a policy from overwriting each other.
2744 # It is strongly suggested that systems make use of the `etag` in the
2745 # read-modify-write cycle to perform policy updates in order to avoid race
2746 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2747 # systems are expected to put that etag in the request to `setIamPolicy` to
2748 # ensure that their change will be applied to the same version of the policy.
2749 #
2750 # **Important:** If you use IAM Conditions, you must include the `etag` field
2751 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2752 # you to overwrite a version `3` policy with a version `1` policy, and all of
2753 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07002754 &quot;version&quot;: 42, # Specifies the format of the policy.
2755 #
2756 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2757 # are rejected.
2758 #
2759 # Any operation that affects conditional role bindings must specify version
2760 # `3`. This requirement applies to the following operations:
2761 #
2762 # * Getting a policy that includes a conditional role binding
2763 # * Adding a conditional role binding to a policy
2764 # * Changing a conditional role binding in a policy
2765 # * Removing any role binding, with or without a condition, from a policy
2766 # that includes conditions
2767 #
2768 # **Important:** If you use IAM Conditions, you must include the `etag` field
2769 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2770 # you to overwrite a version `3` policy with a version `1` policy, and all of
2771 # the conditions in the version `3` policy are lost.
2772 #
2773 # If a policy does not include any conditions, operations on that policy may
2774 # specify any valid version or leave the field unset.
2775 #
2776 # To learn which resources support conditions in their IAM policies, see the
2777 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2778 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002779 # `condition` that determines how and when the `bindings` are applied. Each
2780 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002781 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002782 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2783 #
2784 # If the condition evaluates to `true`, then this binding applies to the
2785 # current request.
2786 #
2787 # If the condition evaluates to `false`, then this binding does not apply to
2788 # the current request. However, a different role binding might grant the same
2789 # role to one or more of the members in this binding.
2790 #
2791 # To learn which resources support conditions in their IAM policies, see the
2792 # [IAM
2793 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2794 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2795 # are documented at https://github.com/google/cel-spec.
2796 #
2797 # Example (Comparison):
2798 #
2799 # title: &quot;Summary size limit&quot;
2800 # description: &quot;Determines if a summary is less than 100 chars&quot;
2801 # expression: &quot;document.summary.size() &lt; 100&quot;
2802 #
2803 # Example (Equality):
2804 #
2805 # title: &quot;Requestor is owner&quot;
2806 # description: &quot;Determines if requestor is the document owner&quot;
2807 # expression: &quot;document.owner == request.auth.claims.email&quot;
2808 #
2809 # Example (Logic):
2810 #
2811 # title: &quot;Public documents&quot;
2812 # description: &quot;Determine whether the document should be publicly visible&quot;
2813 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2814 #
2815 # Example (Data Manipulation):
2816 #
2817 # title: &quot;Notification string&quot;
2818 # description: &quot;Create a notification string with a timestamp.&quot;
2819 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2820 #
2821 # The exact variables and functions that may be referenced within an expression
2822 # are determined by the service that evaluates it. See the service
2823 # documentation for additional information.
2824 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2825 # describes the expression, e.g. when hovered over it in a UI.
2826 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2827 # syntax.
2828 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2829 # its purpose. This can be used e.g. in UIs which allow to enter the
2830 # expression.
2831 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2832 # reporting, e.g. a file name and a position in the file.
2833 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002834 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002835 # `members` can have the following values:
2836 #
2837 # * `allUsers`: A special identifier that represents anyone who is
2838 # on the internet; with or without a Google account.
2839 #
2840 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2841 # who is authenticated with a Google account or a service account.
2842 #
2843 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002844 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002845 #
2846 #
2847 # * `serviceAccount:{emailid}`: An email address that represents a service
2848 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2849 #
2850 # * `group:{emailid}`: An email address that represents a Google group.
2851 # For example, `admins@example.com`.
2852 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002853 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2854 # identifier) representing a user that has been recently deleted. For
2855 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2856 # recovered, this value reverts to `user:{emailid}` and the recovered user
2857 # retains the role in the binding.
2858 #
2859 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2860 # unique identifier) representing a service account that has been recently
2861 # deleted. For example,
2862 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2863 # If the service account is undeleted, this value reverts to
2864 # `serviceAccount:{emailid}` and the undeleted service account retains the
2865 # role in the binding.
2866 #
2867 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2868 # identifier) representing a Google group that has been recently
2869 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2870 # the group is recovered, this value reverts to `group:{emailid}` and the
2871 # recovered group retains the role in the binding.
2872 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002873 #
2874 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2875 # users of that domain. For example, `google.com` or `example.com`.
2876 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002877 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002878 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002879 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2880 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002881 },
2882 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002883 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002884 }
2885
2886 x__xgafv: string, V1 error format.
2887 Allowed values
2888 1 - v1 error format
2889 2 - v2 error format
2890
2891Returns:
2892 An object of the form:
2893
Dan O'Mearadd494642020-05-01 07:42:23 -07002894 { # An Identity and Access Management (IAM) policy, which specifies access
2895 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002896 #
2897 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002898 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
2899 # `members` to a single `role`. Members can be user accounts, service accounts,
2900 # Google groups, and domains (such as G Suite). A `role` is a named list of
2901 # permissions; each `role` can be an IAM predefined role or a user-created
2902 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002903 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002904 # For some types of Google Cloud resources, a `binding` can also specify a
2905 # `condition`, which is a logical expression that allows access to a resource
2906 # only if the expression evaluates to `true`. A condition can add constraints
2907 # based on attributes of the request, the resource, or both. To learn which
2908 # resources support conditions in their IAM policies, see the
2909 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07002910 #
2911 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002912 #
2913 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002914 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002915 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002916 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
2917 # &quot;members&quot;: [
2918 # &quot;user:mike@example.com&quot;,
2919 # &quot;group:admins@example.com&quot;,
2920 # &quot;domain:google.com&quot;,
2921 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002922 # ]
2923 # },
2924 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002925 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
2926 # &quot;members&quot;: [
2927 # &quot;user:eve@example.com&quot;
2928 # ],
2929 # &quot;condition&quot;: {
2930 # &quot;title&quot;: &quot;expirable access&quot;,
2931 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
2932 # &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 -07002933 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002934 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07002935 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002936 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
2937 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002938 # }
2939 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002940 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002941 #
2942 # bindings:
2943 # - members:
2944 # - user:mike@example.com
2945 # - group:admins@example.com
2946 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07002947 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
2948 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002949 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07002950 # - user:eve@example.com
2951 # role: roles/resourcemanager.organizationViewer
2952 # condition:
2953 # title: expirable access
2954 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07002955 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07002956 # - etag: BwWWja0YfJA=
2957 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002958 #
2959 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07002960 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002961 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
2962 # prevent simultaneous updates of a policy from overwriting each other.
2963 # It is strongly suggested that systems make use of the `etag` in the
2964 # read-modify-write cycle to perform policy updates in order to avoid race
2965 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2966 # systems are expected to put that etag in the request to `setIamPolicy` to
2967 # ensure that their change will be applied to the same version of the policy.
2968 #
2969 # **Important:** If you use IAM Conditions, you must include the `etag` field
2970 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2971 # you to overwrite a version `3` policy with a version `1` policy, and all of
2972 # the conditions in the version `3` policy are lost.
Bu Sun Kim65020912020-05-20 12:08:20 -07002973 &quot;version&quot;: 42, # Specifies the format of the policy.
2974 #
2975 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2976 # are rejected.
2977 #
2978 # Any operation that affects conditional role bindings must specify version
2979 # `3`. This requirement applies to the following operations:
2980 #
2981 # * Getting a policy that includes a conditional role binding
2982 # * Adding a conditional role binding to a policy
2983 # * Changing a conditional role binding in a policy
2984 # * Removing any role binding, with or without a condition, from a policy
2985 # that includes conditions
2986 #
2987 # **Important:** If you use IAM Conditions, you must include the `etag` field
2988 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2989 # you to overwrite a version `3` policy with a version `1` policy, and all of
2990 # the conditions in the version `3` policy are lost.
2991 #
2992 # If a policy does not include any conditions, operations on that policy may
2993 # specify any valid version or leave the field unset.
2994 #
2995 # To learn which resources support conditions in their IAM policies, see the
2996 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2997 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002998 # `condition` that determines how and when the `bindings` are applied. Each
2999 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003000 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003001 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3002 #
3003 # If the condition evaluates to `true`, then this binding applies to the
3004 # current request.
3005 #
3006 # If the condition evaluates to `false`, then this binding does not apply to
3007 # the current request. However, a different role binding might grant the same
3008 # role to one or more of the members in this binding.
3009 #
3010 # To learn which resources support conditions in their IAM policies, see the
3011 # [IAM
3012 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3013 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3014 # are documented at https://github.com/google/cel-spec.
3015 #
3016 # Example (Comparison):
3017 #
3018 # title: &quot;Summary size limit&quot;
3019 # description: &quot;Determines if a summary is less than 100 chars&quot;
3020 # expression: &quot;document.summary.size() &lt; 100&quot;
3021 #
3022 # Example (Equality):
3023 #
3024 # title: &quot;Requestor is owner&quot;
3025 # description: &quot;Determines if requestor is the document owner&quot;
3026 # expression: &quot;document.owner == request.auth.claims.email&quot;
3027 #
3028 # Example (Logic):
3029 #
3030 # title: &quot;Public documents&quot;
3031 # description: &quot;Determine whether the document should be publicly visible&quot;
3032 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3033 #
3034 # Example (Data Manipulation):
3035 #
3036 # title: &quot;Notification string&quot;
3037 # description: &quot;Create a notification string with a timestamp.&quot;
3038 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3039 #
3040 # The exact variables and functions that may be referenced within an expression
3041 # are determined by the service that evaluates it. See the service
3042 # documentation for additional information.
3043 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3044 # describes the expression, e.g. when hovered over it in a UI.
3045 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3046 # syntax.
3047 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3048 # its purpose. This can be used e.g. in UIs which allow to enter the
3049 # expression.
3050 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3051 # reporting, e.g. a file name and a position in the file.
3052 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003053 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003054 # `members` can have the following values:
3055 #
3056 # * `allUsers`: A special identifier that represents anyone who is
3057 # on the internet; with or without a Google account.
3058 #
3059 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3060 # who is authenticated with a Google account or a service account.
3061 #
3062 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07003063 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003064 #
3065 #
3066 # * `serviceAccount:{emailid}`: An email address that represents a service
3067 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3068 #
3069 # * `group:{emailid}`: An email address that represents a Google group.
3070 # For example, `admins@example.com`.
3071 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003072 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3073 # identifier) representing a user that has been recently deleted. For
3074 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3075 # recovered, this value reverts to `user:{emailid}` and the recovered user
3076 # retains the role in the binding.
3077 #
3078 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3079 # unique identifier) representing a service account that has been recently
3080 # deleted. For example,
3081 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3082 # If the service account is undeleted, this value reverts to
3083 # `serviceAccount:{emailid}` and the undeleted service account retains the
3084 # role in the binding.
3085 #
3086 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3087 # identifier) representing a Google group that has been recently
3088 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3089 # the group is recovered, this value reverts to `group:{emailid}` and the
3090 # recovered group retains the role in the binding.
3091 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003092 #
3093 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3094 # users of that domain. For example, `google.com` or `example.com`.
3095 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003096 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003097 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003098 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3099 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003100 },
3101 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003102 }</pre>
3103</div>
3104
3105<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003106 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003107 <pre>Returns the permissions that a caller has on the specified note or
3108occurrence. Requires list permission on the project (for example,
3109`containeranalysis.notes.list`).
3110
3111The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for
3112notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for
3113occurrences.
3114
3115Args:
3116 resource: string, REQUIRED: The resource for which the policy detail is being requested.
3117See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003119 The object takes the form of:
3120
3121{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003122 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
3123 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003124 # information see
3125 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07003126 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003127 ],
3128 }
3129
3130 x__xgafv: string, V1 error format.
3131 Allowed values
3132 1 - v1 error format
3133 2 - v2 error format
3134
3135Returns:
3136 An object of the form:
3137
3138 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003139 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003140 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07003141 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003142 ],
3143 }</pre>
3144</div>
3145
3146</body></html>