blob: ce5a352583f82fcda1d511f1fc8bf7d165782610 [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.
126 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700127 # channels. E.g., glibc (aka libc6) is distributed by many, at various
128 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700129 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
130 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700131 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700132 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
133 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
134 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
135 # name.
136 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
137 # versions.
138 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
139 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
140 },
141 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
142 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700143 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700144 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
145 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700146 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -0700147 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700148 },
149 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700150 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700151 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
152 # filter in list requests.
153 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
154 # a filter in list requests.
155 &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.
156 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
157 # consumer&#x27;s project at the start of analysis.
158 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
159 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700160 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700161 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700162 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700163 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
164 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700165 },
166 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700167 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700168 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -0700169 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -0700170 # artifacts that enter this supply chain step, and exit the supply chain
171 # step, i.e. materials and products of the step.
172 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;artifactRule&quot;: [
174 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700175 ],
176 },
177 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700178 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
179 &quot;A String&quot;,
180 ],
181 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700182 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700183 &quot;artifactRule&quot;: [
184 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700185 ],
186 },
187 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700188 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
189 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -0700190 # signatures on the step metadata.
191 { # This defines the format used to record keys used in the software supply
192 # chain. An in-toto link is attested using one or more keys defined in the
193 # in-toto layout. An example of this is:
194 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700195 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
196 # &quot;key_type&quot;: &quot;rsa&quot;,
197 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
198 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700199 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700200 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -0700201 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -0700202 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
203 # and &quot;ecdsa&quot;.
204 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
205 # Eg: &quot;rsassa-pss-sha256&quot;.
206 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
207 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -0700208 },
209 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700210 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
211 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700212 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700213 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
214 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
215 # relationship. Linked occurrences are derived from this or an
216 # equivalent image via:
217 # FROM &lt;Basis.resource_url&gt;
218 # Or an equivalent reference, e.g. a tag of the resource_url.
219 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
220 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
221 # representation.
222 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
223 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
224 # Only the name of the final blob is kept.
225 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
226 &quot;A String&quot;,
227 ],
228 },
229 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
230 # basis of associated occurrence images.
231 },
232 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
233 # list requests.
234 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
235 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
236 &quot;A String&quot;,
237 ],
238 },
239 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
240 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
241 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
242 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
243 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
244 # the attached occurrences (Attestations). This grouping mechanism also
245 # provides a security boundary, since IAM ACLs gate the ability for a principle
246 # to attach an occurrence to a given note. It also provides a single point of
247 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
248 # live in the same project.
249 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
250 # authority. Because the name of a note acts as its resource reference, it is
251 # important to disambiguate the canonical name of the Note (which might be a
252 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
253 # output. Note that these hints should not be used to look up authorities in
254 # security sensitive contexts, such as when looking up attestations to
255 # verify.
256 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
257 # example &quot;qa&quot;.
258 },
259 },
260 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
261 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
262 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
263 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
264 # upstream timestamp from the underlying information source - e.g. Ubuntu
265 # security tracker.
266 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
267 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
268 # patches, thus Windows vulnerabilities really are a missing package, rather
269 # than a package being at an incorrect version.
270 {
271 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
272 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
273 # [cpe format](https://cpe.mitre.org/specification/) in which the
274 # vulnerability manifests. Examples include distro or storage location for
275 # vulnerable jar.
276 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
277 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
278 # vulnerability. Note that there may be multiple hotfixes (and thus
279 # multiple KBs) that mitigate a given vulnerability. Currently any listed
280 # kb&#x27;s presence is considered a fix.
281 {
282 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
283 # https://www.catalog.update.microsoft.com/
284 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
285 },
286 ],
287 },
288 ],
289 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
290 &quot;details&quot;: [ # All information about the package to specifically identify this
291 # vulnerability. One entry per (version range and cpe_uri) the package
292 # vulnerability has manifested in.
293 { # Identifies all appearances of this vulnerability in the package for a
294 # specific distro/location. For example: glibc in
295 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
296 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
297 # obsolete details.
298 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
299 # upstream timestamp from the underlying information source - e.g. Ubuntu
300 # security tracker.
301 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
302 # packages etc).
303 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
304 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
305 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
306 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
307 # name.
308 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
309 # versions.
310 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
311 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
312 },
313 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
314 # format. Examples include distro or storage location for vulnerable jar.
315 },
316 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
317 # [cpe format](https://cpe.mitre.org/specification/) in which the
318 # vulnerability manifests. Examples include distro or storage location for
319 # vulnerable jar.
320 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
321 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
322 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
323 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
324 # name.
325 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
326 # versions.
327 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
328 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
329 },
330 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
331 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
332 # name.
333 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
334 # versions.
335 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
336 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
337 },
338 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
339 },
340 ],
341 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
342 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
343 # For details, see https://www.first.org/cvss/specification-document
344 &quot;scope&quot;: &quot;A String&quot;,
345 &quot;integrityImpact&quot;: &quot;A String&quot;,
346 &quot;exploitabilityScore&quot;: 3.14,
347 &quot;impactScore&quot;: 3.14,
348 &quot;attackComplexity&quot;: &quot;A String&quot;,
349 &quot;availabilityImpact&quot;: &quot;A String&quot;,
350 &quot;privilegesRequired&quot;: &quot;A String&quot;,
351 &quot;userInteraction&quot;: &quot;A String&quot;,
352 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
353 # Represents the intrinsic characteristics of a vulnerability that are
354 # constant over time and across user environments.
355 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
356 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
357 },
358 },
359 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
360 &quot;A String&quot;,
361 ],
362 &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 -0700363 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
365 &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 -0700366 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700367 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
368 # `key_id`.
369 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
370 # base-64 encoded.
371 &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 -0700372 # findings are valid and unchanged. If `key_type` is empty, this defaults
373 # to PEM encoded public keys.
374 #
375 # This field may be empty if `key_id` references an external key.
376 #
377 # For Cloud Build based signatures, this is a PEM encoded public
378 # key. To verify the Cloud Build signature, place the contents of
379 # this field into a file (public.pem). The signature field is base64-decoded
380 # into its binary representation in signature.bin, and the provenance bytes
381 # from `BuildDetails` are base64-decoded into a binary representation in
382 # signed.bin. OpenSSL can then verify the signature:
383 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700384 &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 -0700385 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
386 # CN for a cert), or a reference to an external key (such as a reference to a
387 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700388 },
389 },
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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700406 # channels. E.g., glibc (aka libc6) is distributed by many, at various
407 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700408 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
409 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700410 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700411 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
412 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
413 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
414 # name.
415 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
416 # versions.
417 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
418 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
419 },
420 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
421 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700422 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700423 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
424 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700425 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -0700426 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700427 },
428 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700429 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700430 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
431 # filter in list requests.
432 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
433 # a filter in list requests.
434 &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.
435 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
436 # consumer&#x27;s project at the start of analysis.
437 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
438 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700439 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700440 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700441 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700442 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
443 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700444 },
445 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700446 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700447 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -0700448 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -0700449 # artifacts that enter this supply chain step, and exit the supply chain
450 # step, i.e. materials and products of the step.
451 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700452 &quot;artifactRule&quot;: [
453 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700454 ],
455 },
456 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700457 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
458 &quot;A String&quot;,
459 ],
460 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700461 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700462 &quot;artifactRule&quot;: [
463 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700464 ],
465 },
466 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700467 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
468 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -0700469 # signatures on the step metadata.
470 { # This defines the format used to record keys used in the software supply
471 # chain. An in-toto link is attested using one or more keys defined in the
472 # in-toto layout. An example of this is:
473 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700474 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
475 # &quot;key_type&quot;: &quot;rsa&quot;,
476 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
477 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700478 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700479 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -0700480 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
482 # and &quot;ecdsa&quot;.
483 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
484 # Eg: &quot;rsassa-pss-sha256&quot;.
485 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
486 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -0700487 },
488 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700489 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
490 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700491 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700492 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
493 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
494 # relationship. Linked occurrences are derived from this or an
495 # equivalent image via:
496 # FROM &lt;Basis.resource_url&gt;
497 # Or an equivalent reference, e.g. a tag of the resource_url.
498 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
499 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
500 # representation.
501 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
502 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
503 # Only the name of the final blob is kept.
504 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
505 &quot;A String&quot;,
506 ],
507 },
508 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
509 # basis of associated occurrence images.
510 },
511 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
512 # list requests.
513 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
514 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
515 &quot;A String&quot;,
516 ],
517 },
518 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
519 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
520 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
521 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
522 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
523 # the attached occurrences (Attestations). This grouping mechanism also
524 # provides a security boundary, since IAM ACLs gate the ability for a principle
525 # to attach an occurrence to a given note. It also provides a single point of
526 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
527 # live in the same project.
528 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
529 # authority. Because the name of a note acts as its resource reference, it is
530 # important to disambiguate the canonical name of the Note (which might be a
531 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
532 # output. Note that these hints should not be used to look up authorities in
533 # security sensitive contexts, such as when looking up attestations to
534 # verify.
535 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
536 # example &quot;qa&quot;.
537 },
538 },
539 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
540 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
541 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
542 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
543 # upstream timestamp from the underlying information source - e.g. Ubuntu
544 # security tracker.
545 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
546 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
547 # patches, thus Windows vulnerabilities really are a missing package, rather
548 # than a package being at an incorrect version.
549 {
550 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
551 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
552 # [cpe format](https://cpe.mitre.org/specification/) in which the
553 # vulnerability manifests. Examples include distro or storage location for
554 # vulnerable jar.
555 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
556 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
557 # vulnerability. Note that there may be multiple hotfixes (and thus
558 # multiple KBs) that mitigate a given vulnerability. Currently any listed
559 # kb&#x27;s presence is considered a fix.
560 {
561 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
562 # https://www.catalog.update.microsoft.com/
563 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
564 },
565 ],
566 },
567 ],
568 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
569 &quot;details&quot;: [ # All information about the package to specifically identify this
570 # vulnerability. One entry per (version range and cpe_uri) the package
571 # vulnerability has manifested in.
572 { # Identifies all appearances of this vulnerability in the package for a
573 # specific distro/location. For example: glibc in
574 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
575 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
576 # obsolete details.
577 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
578 # upstream timestamp from the underlying information source - e.g. Ubuntu
579 # security tracker.
580 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
581 # packages etc).
582 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
583 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
584 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
585 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
586 # name.
587 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
588 # versions.
589 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
590 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
591 },
592 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
593 # format. Examples include distro or storage location for vulnerable jar.
594 },
595 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
596 # [cpe format](https://cpe.mitre.org/specification/) in which the
597 # vulnerability manifests. Examples include distro or storage location for
598 # vulnerable jar.
599 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
600 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
601 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
602 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
603 # name.
604 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
605 # versions.
606 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
607 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
608 },
609 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
610 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
611 # name.
612 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
613 # versions.
614 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
615 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
616 },
617 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
618 },
619 ],
620 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
621 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
622 # For details, see https://www.first.org/cvss/specification-document
623 &quot;scope&quot;: &quot;A String&quot;,
624 &quot;integrityImpact&quot;: &quot;A String&quot;,
625 &quot;exploitabilityScore&quot;: 3.14,
626 &quot;impactScore&quot;: 3.14,
627 &quot;attackComplexity&quot;: &quot;A String&quot;,
628 &quot;availabilityImpact&quot;: &quot;A String&quot;,
629 &quot;privilegesRequired&quot;: &quot;A String&quot;,
630 &quot;userInteraction&quot;: &quot;A String&quot;,
631 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
632 # Represents the intrinsic characteristics of a vulnerability that are
633 # constant over time and across user environments.
634 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
635 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
636 },
637 },
638 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
639 &quot;A String&quot;,
640 ],
641 &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 -0700642 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700643 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
644 &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 -0700645 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700646 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
647 # `key_id`.
648 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
649 # base-64 encoded.
650 &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 -0700651 # findings are valid and unchanged. If `key_type` is empty, this defaults
652 # to PEM encoded public keys.
653 #
654 # This field may be empty if `key_id` references an external key.
655 #
656 # For Cloud Build based signatures, this is a PEM encoded public
657 # key. To verify the Cloud Build signature, place the contents of
658 # this field into a file (public.pem). The signature field is base64-decoded
659 # into its binary representation in signature.bin, and the provenance bytes
660 # from `BuildDetails` are base64-decoded into a binary representation in
661 # signed.bin. OpenSSL can then verify the signature:
662 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700663 &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 -0700664 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
665 # CN for a cert), or a reference to an external key (such as a reference to a
666 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700667 },
668 },
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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700686 # channels. E.g., glibc (aka libc6) is distributed by many, at various
687 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700688 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
689 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700690 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700691 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
692 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
693 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
694 # name.
695 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
696 # versions.
697 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
698 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
699 },
700 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
701 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700702 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700703 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
704 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700705 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -0700706 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700707 },
708 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700710 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
711 # filter in list requests.
712 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
713 # a filter in list requests.
714 &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.
715 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
716 # consumer&#x27;s project at the start of analysis.
717 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
718 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700719 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700721 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700722 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
723 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700724 },
725 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700726 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700727 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -0700728 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -0700729 # artifacts that enter this supply chain step, and exit the supply chain
730 # step, i.e. materials and products of the step.
731 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700732 &quot;artifactRule&quot;: [
733 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700734 ],
735 },
736 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700737 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
738 &quot;A String&quot;,
739 ],
740 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -0700741 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -0700742 &quot;artifactRule&quot;: [
743 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -0700744 ],
745 },
746 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700747 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
748 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -0700749 # signatures on the step metadata.
750 { # This defines the format used to record keys used in the software supply
751 # chain. An in-toto link is attested using one or more keys defined in the
752 # in-toto layout. An example of this is:
753 # {
Bu Sun Kim65020912020-05-20 12:08:20 -0700754 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
755 # &quot;key_type&quot;: &quot;rsa&quot;,
756 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
757 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -0700758 # }
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -0700760 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -0700761 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
762 # and &quot;ecdsa&quot;.
763 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
764 # Eg: &quot;rsassa-pss-sha256&quot;.
765 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
766 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -0700767 },
768 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700769 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
770 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -0700771 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700772 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
773 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
774 # relationship. Linked occurrences are derived from this or an
775 # equivalent image via:
776 # FROM &lt;Basis.resource_url&gt;
777 # Or an equivalent reference, e.g. a tag of the resource_url.
778 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
779 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
780 # representation.
781 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
782 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
783 # Only the name of the final blob is kept.
784 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
785 &quot;A String&quot;,
786 ],
787 },
788 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
789 # basis of associated occurrence images.
790 },
791 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
792 # list requests.
793 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
794 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
795 &quot;A String&quot;,
796 ],
797 },
798 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
799 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
800 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
801 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
802 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
803 # the attached occurrences (Attestations). This grouping mechanism also
804 # provides a security boundary, since IAM ACLs gate the ability for a principle
805 # to attach an occurrence to a given note. It also provides a single point of
806 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
807 # live in the same project.
808 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
809 # authority. Because the name of a note acts as its resource reference, it is
810 # important to disambiguate the canonical name of the Note (which might be a
811 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
812 # output. Note that these hints should not be used to look up authorities in
813 # security sensitive contexts, such as when looking up attestations to
814 # verify.
815 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
816 # example &quot;qa&quot;.
817 },
818 },
819 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
820 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
821 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
822 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
823 # upstream timestamp from the underlying information source - e.g. Ubuntu
824 # security tracker.
825 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
826 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
827 # patches, thus Windows vulnerabilities really are a missing package, rather
828 # than a package being at an incorrect version.
829 {
830 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
831 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
832 # [cpe format](https://cpe.mitre.org/specification/) in which the
833 # vulnerability manifests. Examples include distro or storage location for
834 # vulnerable jar.
835 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
836 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
837 # vulnerability. Note that there may be multiple hotfixes (and thus
838 # multiple KBs) that mitigate a given vulnerability. Currently any listed
839 # kb&#x27;s presence is considered a fix.
840 {
841 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
842 # https://www.catalog.update.microsoft.com/
843 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
844 },
845 ],
846 },
847 ],
848 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
849 &quot;details&quot;: [ # All information about the package to specifically identify this
850 # vulnerability. One entry per (version range and cpe_uri) the package
851 # vulnerability has manifested in.
852 { # Identifies all appearances of this vulnerability in the package for a
853 # specific distro/location. For example: glibc in
854 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
855 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
856 # obsolete details.
857 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
858 # upstream timestamp from the underlying information source - e.g. Ubuntu
859 # security tracker.
860 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
861 # packages etc).
862 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
863 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
864 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
865 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
866 # name.
867 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
868 # versions.
869 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
870 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
871 },
872 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
873 # format. Examples include distro or storage location for vulnerable jar.
874 },
875 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
876 # [cpe format](https://cpe.mitre.org/specification/) in which the
877 # vulnerability manifests. Examples include distro or storage location for
878 # vulnerable jar.
879 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
880 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
881 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
882 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
883 # name.
884 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
885 # versions.
886 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
887 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
888 },
889 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
890 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
891 # name.
892 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
893 # versions.
894 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
895 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
896 },
897 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
898 },
899 ],
900 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
901 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
902 # For details, see https://www.first.org/cvss/specification-document
903 &quot;scope&quot;: &quot;A String&quot;,
904 &quot;integrityImpact&quot;: &quot;A String&quot;,
905 &quot;exploitabilityScore&quot;: 3.14,
906 &quot;impactScore&quot;: 3.14,
907 &quot;attackComplexity&quot;: &quot;A String&quot;,
908 &quot;availabilityImpact&quot;: &quot;A String&quot;,
909 &quot;privilegesRequired&quot;: &quot;A String&quot;,
910 &quot;userInteraction&quot;: &quot;A String&quot;,
911 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
912 # Represents the intrinsic characteristics of a vulnerability that are
913 # constant over time and across user environments.
914 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
915 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
916 },
917 },
918 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
919 &quot;A String&quot;,
920 ],
921 &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 -0700922 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -0700923 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
924 &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 -0700925 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700926 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
927 # `key_id`.
928 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
929 # base-64 encoded.
930 &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 -0700931 # findings are valid and unchanged. If `key_type` is empty, this defaults
932 # to PEM encoded public keys.
933 #
934 # This field may be empty if `key_id` references an external key.
935 #
936 # For Cloud Build based signatures, this is a PEM encoded public
937 # key. To verify the Cloud Build signature, place the contents of
938 # this field into a file (public.pem). The signature field is base64-decoded
939 # into its binary representation in signature.bin, and the provenance bytes
940 # from `BuildDetails` are base64-decoded into a binary representation in
941 # signed.bin. OpenSSL can then verify the signature:
942 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -0700943 &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 -0700944 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
945 # CN for a cert), or a reference to an external key (such as a reference to a
946 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700947 },
948 },
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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700962 # channels. E.g., glibc (aka libc6) is distributed by many, at various
963 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -0700964 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
965 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700966 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
968 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
969 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
970 # name.
971 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
972 # versions.
973 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
974 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
975 },
976 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
977 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700978 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700979 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
980 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700981 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -0700982 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700983 },
984 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700985 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700986 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
987 # filter in list requests.
988 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
989 # a filter in list requests.
990 &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.
991 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
992 # consumer&#x27;s project at the start of analysis.
993 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
994 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700995 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700996 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700997 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -0700998 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
999 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001000 },
1001 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001002 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001003 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -07001004 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -07001005 # artifacts that enter this supply chain step, and exit the supply chain
1006 # step, i.e. materials and products of the step.
1007 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 &quot;artifactRule&quot;: [
1009 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001010 ],
1011 },
1012 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001013 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1014 &quot;A String&quot;,
1015 ],
1016 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07001017 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001018 &quot;artifactRule&quot;: [
1019 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001020 ],
1021 },
1022 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1024 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -07001025 # signatures on the step metadata.
1026 { # This defines the format used to record keys used in the software supply
1027 # chain. An in-toto link is attested using one or more keys defined in the
1028 # in-toto layout. An example of this is:
1029 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001030 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
1031 # &quot;key_type&quot;: &quot;rsa&quot;,
1032 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
1033 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001034 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001035 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -07001036 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001037 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
1038 # and &quot;ecdsa&quot;.
1039 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
1040 # Eg: &quot;rsassa-pss-sha256&quot;.
1041 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1042 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -07001043 },
1044 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001045 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
1046 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001047 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1049 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1050 # relationship. Linked occurrences are derived from this or an
1051 # equivalent image via:
1052 # FROM &lt;Basis.resource_url&gt;
1053 # Or an equivalent reference, e.g. a tag of the resource_url.
1054 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1055 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
1056 # representation.
1057 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1058 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1059 # Only the name of the final blob is kept.
1060 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1061 &quot;A String&quot;,
1062 ],
1063 },
1064 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
1065 # basis of associated occurrence images.
1066 },
1067 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
1068 # list requests.
1069 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1070 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1071 &quot;A String&quot;,
1072 ],
1073 },
1074 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1075 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1076 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1077 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
1078 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
1079 # the attached occurrences (Attestations). This grouping mechanism also
1080 # provides a security boundary, since IAM ACLs gate the ability for a principle
1081 # to attach an occurrence to a given note. It also provides a single point of
1082 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
1083 # live in the same project.
1084 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
1085 # authority. Because the name of a note acts as its resource reference, it is
1086 # important to disambiguate the canonical name of the Note (which might be a
1087 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
1088 # output. Note that these hints should not be used to look up authorities in
1089 # security sensitive contexts, such as when looking up attestations to
1090 # verify.
1091 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
1092 # example &quot;qa&quot;.
1093 },
1094 },
1095 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
1096 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1097 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1098 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1099 # upstream timestamp from the underlying information source - e.g. Ubuntu
1100 # security tracker.
1101 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1102 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1103 # patches, thus Windows vulnerabilities really are a missing package, rather
1104 # than a package being at an incorrect version.
1105 {
1106 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1107 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1108 # [cpe format](https://cpe.mitre.org/specification/) in which the
1109 # vulnerability manifests. Examples include distro or storage location for
1110 # vulnerable jar.
1111 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1112 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1113 # vulnerability. Note that there may be multiple hotfixes (and thus
1114 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1115 # kb&#x27;s presence is considered a fix.
1116 {
1117 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1118 # https://www.catalog.update.microsoft.com/
1119 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1120 },
1121 ],
1122 },
1123 ],
1124 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1125 &quot;details&quot;: [ # All information about the package to specifically identify this
1126 # vulnerability. One entry per (version range and cpe_uri) the package
1127 # vulnerability has manifested in.
1128 { # Identifies all appearances of this vulnerability in the package for a
1129 # specific distro/location. For example: glibc in
1130 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1131 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1132 # obsolete details.
1133 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1134 # upstream timestamp from the underlying information source - e.g. Ubuntu
1135 # security tracker.
1136 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1137 # packages etc).
1138 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1139 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1140 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1141 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1142 # name.
1143 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1144 # versions.
1145 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1146 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1147 },
1148 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
1149 # format. Examples include distro or storage location for vulnerable jar.
1150 },
1151 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1152 # [cpe format](https://cpe.mitre.org/specification/) in which the
1153 # vulnerability manifests. Examples include distro or storage location for
1154 # vulnerable jar.
1155 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1156 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1157 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1158 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1159 # name.
1160 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1161 # versions.
1162 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1163 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1164 },
1165 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1166 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1167 # name.
1168 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1169 # versions.
1170 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1171 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1172 },
1173 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1174 },
1175 ],
1176 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1177 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
1178 # For details, see https://www.first.org/cvss/specification-document
1179 &quot;scope&quot;: &quot;A String&quot;,
1180 &quot;integrityImpact&quot;: &quot;A String&quot;,
1181 &quot;exploitabilityScore&quot;: 3.14,
1182 &quot;impactScore&quot;: 3.14,
1183 &quot;attackComplexity&quot;: &quot;A String&quot;,
1184 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1185 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1186 &quot;userInteraction&quot;: &quot;A String&quot;,
1187 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
1188 # Represents the intrinsic characteristics of a vulnerability that are
1189 # constant over time and across user environments.
1190 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1191 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1192 },
1193 },
1194 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1195 &quot;A String&quot;,
1196 ],
1197 &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 -07001198 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001199 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1200 &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 -07001201 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001202 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1203 # `key_id`.
1204 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
1205 # base-64 encoded.
1206 &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 -07001207 # findings are valid and unchanged. If `key_type` is empty, this defaults
1208 # to PEM encoded public keys.
1209 #
1210 # This field may be empty if `key_id` references an external key.
1211 #
1212 # For Cloud Build based signatures, this is a PEM encoded public
1213 # key. To verify the Cloud Build signature, place the contents of
1214 # this field into a file (public.pem). The signature field is base64-decoded
1215 # into its binary representation in signature.bin, and the provenance bytes
1216 # from `BuildDetails` are base64-decoded into a binary representation in
1217 # signed.bin. OpenSSL can then verify the signature:
1218 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001219 &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 -07001220 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
1221 # CN for a cert), or a reference to an external key (such as a reference to a
1222 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001223 },
1224 },
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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001272 # channels. E.g., glibc (aka libc6) is distributed by many, at various
1273 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1275 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001276 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001277 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
1278 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1279 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1280 # name.
1281 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1282 # versions.
1283 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1284 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1285 },
1286 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1287 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001288 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1290 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001293 },
1294 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001295 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001296 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
1297 # filter in list requests.
1298 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1299 # a filter in list requests.
1300 &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.
1301 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1302 # consumer&#x27;s project at the start of analysis.
1303 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
1304 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001305 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001306 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001307 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1309 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001310 },
1311 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001312 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001313 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -07001314 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -07001315 # artifacts that enter this supply chain step, and exit the supply chain
1316 # step, i.e. materials and products of the step.
1317 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;artifactRule&quot;: [
1319 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001320 ],
1321 },
1322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001323 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1324 &quot;A String&quot;,
1325 ],
1326 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07001327 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 &quot;artifactRule&quot;: [
1329 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001330 ],
1331 },
1332 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001333 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1334 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -07001335 # signatures on the step metadata.
1336 { # This defines the format used to record keys used in the software supply
1337 # chain. An in-toto link is attested using one or more keys defined in the
1338 # in-toto layout. An example of this is:
1339 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001340 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
1341 # &quot;key_type&quot;: &quot;rsa&quot;,
1342 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
1343 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001344 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001345 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -07001346 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001347 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
1348 # and &quot;ecdsa&quot;.
1349 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
1350 # Eg: &quot;rsassa-pss-sha256&quot;.
1351 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1352 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -07001353 },
1354 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001355 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
1356 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001357 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001358 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1359 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1360 # relationship. Linked occurrences are derived from this or an
1361 # equivalent image via:
1362 # FROM &lt;Basis.resource_url&gt;
1363 # Or an equivalent reference, e.g. a tag of the resource_url.
1364 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1365 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
1366 # representation.
1367 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1368 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1369 # Only the name of the final blob is kept.
1370 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1371 &quot;A String&quot;,
1372 ],
1373 },
1374 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
1375 # basis of associated occurrence images.
1376 },
1377 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
1378 # list requests.
1379 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1380 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1381 &quot;A String&quot;,
1382 ],
1383 },
1384 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1385 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1386 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1387 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
1388 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
1389 # the attached occurrences (Attestations). This grouping mechanism also
1390 # provides a security boundary, since IAM ACLs gate the ability for a principle
1391 # to attach an occurrence to a given note. It also provides a single point of
1392 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
1393 # live in the same project.
1394 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
1395 # authority. Because the name of a note acts as its resource reference, it is
1396 # important to disambiguate the canonical name of the Note (which might be a
1397 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
1398 # output. Note that these hints should not be used to look up authorities in
1399 # security sensitive contexts, such as when looking up attestations to
1400 # verify.
1401 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
1402 # example &quot;qa&quot;.
1403 },
1404 },
1405 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
1406 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1407 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1408 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1409 # upstream timestamp from the underlying information source - e.g. Ubuntu
1410 # security tracker.
1411 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1412 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1413 # patches, thus Windows vulnerabilities really are a missing package, rather
1414 # than a package being at an incorrect version.
1415 {
1416 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1417 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1418 # [cpe format](https://cpe.mitre.org/specification/) in which the
1419 # vulnerability manifests. Examples include distro or storage location for
1420 # vulnerable jar.
1421 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1422 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1423 # vulnerability. Note that there may be multiple hotfixes (and thus
1424 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1425 # kb&#x27;s presence is considered a fix.
1426 {
1427 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1428 # https://www.catalog.update.microsoft.com/
1429 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1430 },
1431 ],
1432 },
1433 ],
1434 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1435 &quot;details&quot;: [ # All information about the package to specifically identify this
1436 # vulnerability. One entry per (version range and cpe_uri) the package
1437 # vulnerability has manifested in.
1438 { # Identifies all appearances of this vulnerability in the package for a
1439 # specific distro/location. For example: glibc in
1440 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1441 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1442 # obsolete details.
1443 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1444 # upstream timestamp from the underlying information source - e.g. Ubuntu
1445 # security tracker.
1446 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1447 # packages etc).
1448 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1449 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1450 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1451 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1452 # name.
1453 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1454 # versions.
1455 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1456 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1457 },
1458 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
1459 # format. Examples include distro or storage location for vulnerable jar.
1460 },
1461 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1462 # [cpe format](https://cpe.mitre.org/specification/) in which the
1463 # vulnerability manifests. Examples include distro or storage location for
1464 # vulnerable jar.
1465 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1466 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1467 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1468 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1469 # name.
1470 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1471 # versions.
1472 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1473 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1474 },
1475 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1476 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1477 # name.
1478 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1479 # versions.
1480 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1481 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1482 },
1483 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1484 },
1485 ],
1486 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1487 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
1488 # For details, see https://www.first.org/cvss/specification-document
1489 &quot;scope&quot;: &quot;A String&quot;,
1490 &quot;integrityImpact&quot;: &quot;A String&quot;,
1491 &quot;exploitabilityScore&quot;: 3.14,
1492 &quot;impactScore&quot;: 3.14,
1493 &quot;attackComplexity&quot;: &quot;A String&quot;,
1494 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1495 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1496 &quot;userInteraction&quot;: &quot;A String&quot;,
1497 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
1498 # Represents the intrinsic characteristics of a vulnerability that are
1499 # constant over time and across user environments.
1500 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1501 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1502 },
1503 },
1504 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1505 &quot;A String&quot;,
1506 ],
1507 &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 -07001508 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07001509 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1510 &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 -07001511 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001512 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1513 # `key_id`.
1514 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
1515 # base-64 encoded.
1516 &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 -07001517 # findings are valid and unchanged. If `key_type` is empty, this defaults
1518 # to PEM encoded public keys.
1519 #
1520 # This field may be empty if `key_id` references an external key.
1521 #
1522 # For Cloud Build based signatures, this is a PEM encoded public
1523 # key. To verify the Cloud Build signature, place the contents of
1524 # this field into a file (public.pem). The signature field is base64-decoded
1525 # into its binary representation in signature.bin, and the provenance bytes
1526 # from `BuildDetails` are base64-decoded into a binary representation in
1527 # signed.bin. OpenSSL can then verify the signature:
1528 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001529 &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 -07001530 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
1531 # CN for a cert), or a reference to an external key (such as a reference to a
1532 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001533 },
1534 },
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 Kim65020912020-05-20 12:08:20 -07001648 &quot;version&quot;: 42, # Specifies the format of the policy.
1649 #
1650 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1651 # are rejected.
1652 #
1653 # Any operation that affects conditional role bindings must specify version
1654 # `3`. This requirement applies to the following operations:
1655 #
1656 # * Getting a policy that includes a conditional role binding
1657 # * Adding a conditional role binding to a policy
1658 # * Changing a conditional role binding in a policy
1659 # * Removing any role binding, with or without a condition, from a policy
1660 # that includes conditions
1661 #
1662 # **Important:** If you use IAM Conditions, you must include the `etag` field
1663 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1664 # you to overwrite a version `3` policy with a version `1` policy, and all of
1665 # the conditions in the version `3` policy are lost.
1666 #
1667 # If a policy does not include any conditions, operations on that policy may
1668 # specify any valid version or leave the field unset.
1669 #
1670 # To learn which resources support conditions in their IAM policies, see the
1671 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1672 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001673 # `condition` that determines how and when the `bindings` are applied. Each
1674 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001675 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001676 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001677 # `members` can have the following values:
1678 #
1679 # * `allUsers`: A special identifier that represents anyone who is
1680 # on the internet; with or without a Google account.
1681 #
1682 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1683 # who is authenticated with a Google account or a service account.
1684 #
1685 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001686 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001687 #
1688 #
1689 # * `serviceAccount:{emailid}`: An email address that represents a service
1690 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1691 #
1692 # * `group:{emailid}`: An email address that represents a Google group.
1693 # For example, `admins@example.com`.
1694 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001695 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1696 # identifier) representing a user that has been recently deleted. For
1697 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1698 # recovered, this value reverts to `user:{emailid}` and the recovered user
1699 # retains the role in the binding.
1700 #
1701 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1702 # unique identifier) representing a service account that has been recently
1703 # deleted. For example,
1704 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1705 # If the service account is undeleted, this value reverts to
1706 # `serviceAccount:{emailid}` and the undeleted service account retains the
1707 # role in the binding.
1708 #
1709 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1710 # identifier) representing a Google group that has been recently
1711 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1712 # the group is recovered, this value reverts to `group:{emailid}` and the
1713 # recovered group retains the role in the binding.
1714 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001715 #
1716 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1717 # users of that domain. For example, `google.com` or `example.com`.
1718 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001719 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001720 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001721 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1722 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1723 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1724 #
1725 # If the condition evaluates to `true`, then this binding applies to the
1726 # current request.
1727 #
1728 # If the condition evaluates to `false`, then this binding does not apply to
1729 # the current request. However, a different role binding might grant the same
1730 # role to one or more of the members in this binding.
1731 #
1732 # To learn which resources support conditions in their IAM policies, see the
1733 # [IAM
1734 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1735 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1736 # are documented at https://github.com/google/cel-spec.
1737 #
1738 # Example (Comparison):
1739 #
1740 # title: &quot;Summary size limit&quot;
1741 # description: &quot;Determines if a summary is less than 100 chars&quot;
1742 # expression: &quot;document.summary.size() &lt; 100&quot;
1743 #
1744 # Example (Equality):
1745 #
1746 # title: &quot;Requestor is owner&quot;
1747 # description: &quot;Determines if requestor is the document owner&quot;
1748 # expression: &quot;document.owner == request.auth.claims.email&quot;
1749 #
1750 # Example (Logic):
1751 #
1752 # title: &quot;Public documents&quot;
1753 # description: &quot;Determine whether the document should be publicly visible&quot;
1754 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1755 #
1756 # Example (Data Manipulation):
1757 #
1758 # title: &quot;Notification string&quot;
1759 # description: &quot;Create a notification string with a timestamp.&quot;
1760 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1761 #
1762 # The exact variables and functions that may be referenced within an expression
1763 # are determined by the service that evaluates it. See the service
1764 # documentation for additional information.
1765 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1766 # its purpose. This can be used e.g. in UIs which allow to enter the
1767 # expression.
1768 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1769 # reporting, e.g. a file name and a position in the file.
1770 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1771 # describes the expression, e.g. when hovered over it in a UI.
1772 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1773 # syntax.
1774 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001775 },
1776 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001777 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001778 # prevent simultaneous updates of a policy from overwriting each other.
1779 # It is strongly suggested that systems make use of the `etag` in the
1780 # read-modify-write cycle to perform policy updates in order to avoid race
1781 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1782 # systems are expected to put that etag in the request to `setIamPolicy` to
1783 # ensure that their change will be applied to the same version of the policy.
1784 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001785 # **Important:** If you use IAM Conditions, you must include the `etag` field
1786 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1787 # you to overwrite a version `3` policy with a version `1` policy, and all of
1788 # the conditions in the version `3` policy are lost.
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;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001813 # `page_token` for the following request. An empty value means no more
1814 # results.
Bu Sun Kim65020912020-05-20 12:08:20 -07001815 &quot;notes&quot;: [ # The notes requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001816 { # A type of analysis that can be done for a resource.
Bu Sun Kim65020912020-05-20 12:08:20 -07001817 &quot;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001818 # channels. E.g., glibc (aka libc6) is distributed by many, at various
1819 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07001820 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1821 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001822 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001823 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
1824 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1825 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1826 # name.
1827 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
1828 # versions.
1829 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1830 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1831 },
1832 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1833 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001834 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001835 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1836 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001837 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -07001838 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001839 },
1840 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001841 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001842 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
1843 # filter in list requests.
1844 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
1845 # a filter in list requests.
1846 &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.
1847 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
1848 # consumer&#x27;s project at the start of analysis.
1849 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
1850 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001851 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001852 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001853 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001854 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1855 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001856 },
1857 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001858 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001859 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -07001860 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -07001861 # artifacts that enter this supply chain step, and exit the supply chain
1862 # step, i.e. materials and products of the step.
1863 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001864 &quot;artifactRule&quot;: [
1865 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001866 ],
1867 },
1868 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001869 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1870 &quot;A String&quot;,
1871 ],
1872 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07001873 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07001874 &quot;artifactRule&quot;: [
1875 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001876 ],
1877 },
1878 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001879 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1880 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -07001881 # signatures on the step metadata.
1882 { # This defines the format used to record keys used in the software supply
1883 # chain. An in-toto link is attested using one or more keys defined in the
1884 # in-toto layout. An example of this is:
1885 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001886 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
1887 # &quot;key_type&quot;: &quot;rsa&quot;,
1888 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
1889 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07001890 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -07001892 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
1894 # and &quot;ecdsa&quot;.
1895 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
1896 # Eg: &quot;rsassa-pss-sha256&quot;.
1897 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1898 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -07001899 },
1900 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001901 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
1902 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07001903 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001904 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1905 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1906 # relationship. Linked occurrences are derived from this or an
1907 # equivalent image via:
1908 # FROM &lt;Basis.resource_url&gt;
1909 # Or an equivalent reference, e.g. a tag of the resource_url.
1910 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1911 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
1912 # representation.
1913 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1914 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1915 # Only the name of the final blob is kept.
1916 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1917 &quot;A String&quot;,
1918 ],
1919 },
1920 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
1921 # basis of associated occurrence images.
1922 },
1923 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
1924 # list requests.
1925 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1926 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1927 &quot;A String&quot;,
1928 ],
1929 },
1930 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1931 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1932 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1933 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
1934 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
1935 # the attached occurrences (Attestations). This grouping mechanism also
1936 # provides a security boundary, since IAM ACLs gate the ability for a principle
1937 # to attach an occurrence to a given note. It also provides a single point of
1938 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
1939 # live in the same project.
1940 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
1941 # authority. Because the name of a note acts as its resource reference, it is
1942 # important to disambiguate the canonical name of the Note (which might be a
1943 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
1944 # output. Note that these hints should not be used to look up authorities in
1945 # security sensitive contexts, such as when looking up attestations to
1946 # verify.
1947 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
1948 # example &quot;qa&quot;.
1949 },
1950 },
1951 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
1952 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1953 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1954 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1955 # upstream timestamp from the underlying information source - e.g. Ubuntu
1956 # security tracker.
1957 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
1958 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
1959 # patches, thus Windows vulnerabilities really are a missing package, rather
1960 # than a package being at an incorrect version.
1961 {
1962 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1963 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
1964 # [cpe format](https://cpe.mitre.org/specification/) in which the
1965 # vulnerability manifests. Examples include distro or storage location for
1966 # vulnerable jar.
1967 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1968 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
1969 # vulnerability. Note that there may be multiple hotfixes (and thus
1970 # multiple KBs) that mitigate a given vulnerability. Currently any listed
1971 # kb&#x27;s presence is considered a fix.
1972 {
1973 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
1974 # https://www.catalog.update.microsoft.com/
1975 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1976 },
1977 ],
1978 },
1979 ],
1980 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1981 &quot;details&quot;: [ # All information about the package to specifically identify this
1982 # vulnerability. One entry per (version range and cpe_uri) the package
1983 # vulnerability has manifested in.
1984 { # Identifies all appearances of this vulnerability in the package for a
1985 # specific distro/location. For example: glibc in
1986 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1987 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
1988 # obsolete details.
1989 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
1990 # upstream timestamp from the underlying information source - e.g. Ubuntu
1991 # security tracker.
1992 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
1993 # packages etc).
1994 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1995 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1996 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1997 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
1998 # name.
1999 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2000 # versions.
2001 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2002 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2003 },
2004 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
2005 # format. Examples include distro or storage location for vulnerable jar.
2006 },
2007 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2008 # [cpe format](https://cpe.mitre.org/specification/) in which the
2009 # vulnerability manifests. Examples include distro or storage location for
2010 # vulnerable jar.
2011 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2012 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2013 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
2014 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2015 # name.
2016 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2017 # versions.
2018 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2019 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2020 },
2021 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
2022 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2023 # name.
2024 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2025 # versions.
2026 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2027 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2028 },
2029 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2030 },
2031 ],
2032 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
2033 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
2034 # For details, see https://www.first.org/cvss/specification-document
2035 &quot;scope&quot;: &quot;A String&quot;,
2036 &quot;integrityImpact&quot;: &quot;A String&quot;,
2037 &quot;exploitabilityScore&quot;: 3.14,
2038 &quot;impactScore&quot;: 3.14,
2039 &quot;attackComplexity&quot;: &quot;A String&quot;,
2040 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2041 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2042 &quot;userInteraction&quot;: &quot;A String&quot;,
2043 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
2044 # Represents the intrinsic characteristics of a vulnerability that are
2045 # constant over time and across user environments.
2046 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2047 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2048 },
2049 },
2050 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2051 &quot;A String&quot;,
2052 ],
2053 &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 -07002054 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002055 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2056 &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 -07002057 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002058 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
2059 # `key_id`.
2060 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
2061 # base-64 encoded.
2062 &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 -07002063 # findings are valid and unchanged. If `key_type` is empty, this defaults
2064 # to PEM encoded public keys.
2065 #
2066 # This field may be empty if `key_id` references an external key.
2067 #
2068 # For Cloud Build based signatures, this is a PEM encoded public
2069 # key. To verify the Cloud Build signature, place the contents of
2070 # this field into a file (public.pem). The signature field is base64-decoded
2071 # into its binary representation in signature.bin, and the provenance bytes
2072 # from `BuildDetails` are base64-decoded into a binary representation in
2073 # signed.bin. OpenSSL can then verify the signature:
2074 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07002075 &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 -07002076 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
2077 # CN for a cert), or a reference to an external key (such as a reference to a
2078 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002079 },
2080 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002081 },
2082 ],
2083 }</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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002112 # channels. E.g., glibc (aka libc6) is distributed by many, at various
2113 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002114 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2115 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002116 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002117 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
2118 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2119 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2120 # name.
2121 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2122 # versions.
2123 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2124 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2125 },
2126 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2127 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002128 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002129 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2130 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002131 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -07002132 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002133 },
2134 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002135 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002136 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
2137 # filter in list requests.
2138 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2139 # a filter in list requests.
2140 &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.
2141 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2142 # consumer&#x27;s project at the start of analysis.
2143 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
2144 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002145 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002146 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002147 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002148 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2149 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002150 },
2151 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002152 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07002153 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -07002154 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -07002155 # artifacts that enter this supply chain step, and exit the supply chain
2156 # step, i.e. materials and products of the step.
2157 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07002158 &quot;artifactRule&quot;: [
2159 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002160 ],
2161 },
2162 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002163 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2164 &quot;A String&quot;,
2165 ],
2166 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07002167 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07002168 &quot;artifactRule&quot;: [
2169 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002170 ],
2171 },
2172 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002173 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2174 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -07002175 # signatures on the step metadata.
2176 { # This defines the format used to record keys used in the software supply
2177 # chain. An in-toto link is attested using one or more keys defined in the
2178 # in-toto layout. An example of this is:
2179 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002180 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
2181 # &quot;key_type&quot;: &quot;rsa&quot;,
2182 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
2183 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002184 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002185 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -07002186 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
2188 # and &quot;ecdsa&quot;.
2189 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
2190 # Eg: &quot;rsassa-pss-sha256&quot;.
2191 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2192 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -07002193 },
2194 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002195 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
2196 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07002197 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2199 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
2200 # relationship. Linked occurrences are derived from this or an
2201 # equivalent image via:
2202 # FROM &lt;Basis.resource_url&gt;
2203 # Or an equivalent reference, e.g. a tag of the resource_url.
2204 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2205 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
2206 # representation.
2207 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2208 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2209 # Only the name of the final blob is kept.
2210 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2211 &quot;A String&quot;,
2212 ],
2213 },
2214 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
2215 # basis of associated occurrence images.
2216 },
2217 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
2218 # list requests.
2219 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2220 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2221 &quot;A String&quot;,
2222 ],
2223 },
2224 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2225 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
2226 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
2227 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
2228 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
2229 # the attached occurrences (Attestations). This grouping mechanism also
2230 # provides a security boundary, since IAM ACLs gate the ability for a principle
2231 # to attach an occurrence to a given note. It also provides a single point of
2232 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
2233 # live in the same project.
2234 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
2235 # authority. Because the name of a note acts as its resource reference, it is
2236 # important to disambiguate the canonical name of the Note (which might be a
2237 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
2238 # output. Note that these hints should not be used to look up authorities in
2239 # security sensitive contexts, such as when looking up attestations to
2240 # verify.
2241 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
2242 # example &quot;qa&quot;.
2243 },
2244 },
2245 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
2246 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2247 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
2248 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2249 # upstream timestamp from the underlying information source - e.g. Ubuntu
2250 # security tracker.
2251 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
2252 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
2253 # patches, thus Windows vulnerabilities really are a missing package, rather
2254 # than a package being at an incorrect version.
2255 {
2256 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2257 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2258 # [cpe format](https://cpe.mitre.org/specification/) in which the
2259 # vulnerability manifests. Examples include distro or storage location for
2260 # vulnerable jar.
2261 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2262 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
2263 # vulnerability. Note that there may be multiple hotfixes (and thus
2264 # multiple KBs) that mitigate a given vulnerability. Currently any listed
2265 # kb&#x27;s presence is considered a fix.
2266 {
2267 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
2268 # https://www.catalog.update.microsoft.com/
2269 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
2270 },
2271 ],
2272 },
2273 ],
2274 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
2275 &quot;details&quot;: [ # All information about the package to specifically identify this
2276 # vulnerability. One entry per (version range and cpe_uri) the package
2277 # vulnerability has manifested in.
2278 { # Identifies all appearances of this vulnerability in the package for a
2279 # specific distro/location. For example: glibc in
2280 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
2281 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
2282 # obsolete details.
2283 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2284 # upstream timestamp from the underlying information source - e.g. Ubuntu
2285 # security tracker.
2286 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
2287 # packages etc).
2288 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2289 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2290 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2291 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2292 # name.
2293 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2294 # versions.
2295 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2296 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2297 },
2298 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
2299 # format. Examples include distro or storage location for vulnerable jar.
2300 },
2301 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2302 # [cpe format](https://cpe.mitre.org/specification/) in which the
2303 # vulnerability manifests. Examples include distro or storage location for
2304 # vulnerable jar.
2305 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2306 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2307 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
2308 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2309 # name.
2310 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2311 # versions.
2312 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2313 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2314 },
2315 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
2316 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2317 # name.
2318 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2319 # versions.
2320 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2321 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2322 },
2323 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2324 },
2325 ],
2326 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
2327 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
2328 # For details, see https://www.first.org/cvss/specification-document
2329 &quot;scope&quot;: &quot;A String&quot;,
2330 &quot;integrityImpact&quot;: &quot;A String&quot;,
2331 &quot;exploitabilityScore&quot;: 3.14,
2332 &quot;impactScore&quot;: 3.14,
2333 &quot;attackComplexity&quot;: &quot;A String&quot;,
2334 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2335 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2336 &quot;userInteraction&quot;: &quot;A String&quot;,
2337 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
2338 # Represents the intrinsic characteristics of a vulnerability that are
2339 # constant over time and across user environments.
2340 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2341 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2342 },
2343 },
2344 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2345 &quot;A String&quot;,
2346 ],
2347 &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 -07002348 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002349 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2350 &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 -07002351 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002352 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
2353 # `key_id`.
2354 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
2355 # base-64 encoded.
2356 &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 -07002357 # findings are valid and unchanged. If `key_type` is empty, this defaults
2358 # to PEM encoded public keys.
2359 #
2360 # This field may be empty if `key_id` references an external key.
2361 #
2362 # For Cloud Build based signatures, this is a PEM encoded public
2363 # key. To verify the Cloud Build signature, place the contents of
2364 # this field into a file (public.pem). The signature field is base64-decoded
2365 # into its binary representation in signature.bin, and the provenance bytes
2366 # from `BuildDetails` are base64-decoded into a binary representation in
2367 # signed.bin. OpenSSL can then verify the signature:
2368 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07002369 &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 -07002370 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
2371 # CN for a cert), or a reference to an external key (such as a reference to a
2372 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002373 },
2374 },
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;package&quot;: { # This represents a particular package that is distributed over various # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002388 # channels. E.g., glibc (aka libc6) is distributed by many, at various
2389 # versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002390 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
2391 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002392 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002393 # E.g., Debian&#x27;s jessie-backports dpkg mirror.
2394 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
2395 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2396 # name.
2397 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2398 # versions.
2399 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2400 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2401 },
2402 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2403 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002404 # denoting the package manager version distributing a package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002405 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2406 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002407 # built.
Bu Sun Kim65020912020-05-20 12:08:20 -07002408 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002409 },
2410 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002411 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002412 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
2413 # filter in list requests.
2414 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2415 # a filter in list requests.
2416 &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.
2417 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2418 # consumer&#x27;s project at the start of analysis.
2419 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this
2420 # discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002421 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002422 &quot;relatedUrl&quot;: [ # URLs associated with this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002423 { # Metadata for any related URL information.
Bu Sun Kim65020912020-05-20 12:08:20 -07002424 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
2425 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002426 },
2427 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002428 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07002429 # chain step in an in-toto layout. This information goes into a Grafeas note.
Bu Sun Kim65020912020-05-20 12:08:20 -07002430 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the
Dan O'Mearadd494642020-05-01 07:42:23 -07002431 # artifacts that enter this supply chain step, and exit the supply chain
2432 # step, i.e. materials and products of the step.
2433 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07002434 &quot;artifactRule&quot;: [
2435 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002436 ],
2437 },
2438 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002439 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
2440 &quot;A String&quot;,
2441 ],
2442 &quot;expectedProducts&quot;: [
Dan O'Mearadd494642020-05-01 07:42:23 -07002443 { # Defines an object to declare an in-toto artifact rule
Bu Sun Kim65020912020-05-20 12:08:20 -07002444 &quot;artifactRule&quot;: [
2445 &quot;A String&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07002446 ],
2447 },
2448 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002449 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
2450 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the
Dan O'Mearadd494642020-05-01 07:42:23 -07002451 # signatures on the step metadata.
2452 { # This defines the format used to record keys used in the software supply
2453 # chain. An in-toto link is attested using one or more keys defined in the
2454 # in-toto layout. An example of this is:
2455 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07002456 # &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;,
2457 # &quot;key_type&quot;: &quot;rsa&quot;,
2458 # &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;,
2459 # &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot;
Dan O'Mearadd494642020-05-01 07:42:23 -07002460 # }
Bu Sun Kim65020912020-05-20 12:08:20 -07002461 # The format for in-toto&#x27;s key definition can be found in section 4.2 of the
Dan O'Mearadd494642020-05-01 07:42:23 -07002462 # in-toto specification.
Bu Sun Kim65020912020-05-20 12:08:20 -07002463 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;,
2464 # and &quot;ecdsa&quot;.
2465 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme.
2466 # Eg: &quot;rsassa-pss-sha256&quot;.
2467 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
2468 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
Dan O'Mearadd494642020-05-01 07:42:23 -07002469 },
2470 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002471 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that
2472 # need to be used to sign the step&#x27;s in-toto link.
Dan O'Mearadd494642020-05-01 07:42:23 -07002473 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002474 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
2475 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
2476 # relationship. Linked occurrences are derived from this or an
2477 # equivalent image via:
2478 # FROM &lt;Basis.resource_url&gt;
2479 # Or an equivalent reference, e.g. a tag of the resource_url.
2480 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
2481 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1
2482 # representation.
2483 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2484 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2485 # Only the name of the final blob is kept.
2486 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2487 &quot;A String&quot;,
2488 ],
2489 },
2490 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the
2491 # basis of associated occurrence images.
2492 },
2493 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in
2494 # list requests.
2495 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
2496 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
2497 &quot;A String&quot;,
2498 ],
2499 },
2500 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
2501 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
2502 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
2503 # example, an organization might have one `Authority` for &quot;QA&quot; and one for
2504 # &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for
2505 # the attached occurrences (Attestations). This grouping mechanism also
2506 # provides a security boundary, since IAM ACLs gate the ability for a principle
2507 # to attach an occurrence to a given note. It also provides a single point of
2508 # lookup to find all attached attestation occurrences, even if they don&#x27;t all
2509 # live in the same project.
2510 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the # Hint hints at the purpose of the attestation authority.
2511 # authority. Because the name of a note acts as its resource reference, it is
2512 # important to disambiguate the canonical name of the Note (which might be a
2513 # UUID for security purposes) from &quot;readable&quot; names more suitable for debug
2514 # output. Note that these hints should not be used to look up authorities in
2515 # security sensitive contexts, such as when looking up attestations to
2516 # verify.
2517 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for
2518 # example &quot;qa&quot;.
2519 },
2520 },
2521 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of
2522 # `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
2523 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
2524 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2525 # upstream timestamp from the underlying information source - e.g. Ubuntu
2526 # security tracker.
2527 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and
2528 # model don&#x27;t match a normal detail. Specifically Windows updates are done as
2529 # patches, thus Windows vulnerabilities really are a missing package, rather
2530 # than a package being at an incorrect version.
2531 {
2532 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
2533 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2534 # [cpe format](https://cpe.mitre.org/specification/) in which the
2535 # vulnerability manifests. Examples include distro or storage location for
2536 # vulnerable jar.
2537 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
2538 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this
2539 # vulnerability. Note that there may be multiple hotfixes (and thus
2540 # multiple KBs) that mitigate a given vulnerability. Currently any listed
2541 # kb&#x27;s presence is considered a fix.
2542 {
2543 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog -
2544 # https://www.catalog.update.microsoft.com/
2545 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
2546 },
2547 ],
2548 },
2549 ],
2550 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
2551 &quot;details&quot;: [ # All information about the package to specifically identify this
2552 # vulnerability. One entry per (version range and cpe_uri) the package
2553 # vulnerability has manifested in.
2554 { # Identifies all appearances of this vulnerability in the package for a
2555 # specific distro/location. For example: glibc in
2556 # cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
2557 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
2558 # obsolete details.
2559 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an
2560 # upstream timestamp from the underlying information source - e.g. Ubuntu
2561 # security tracker.
2562 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js
2563 # packages etc).
2564 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
2565 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
2566 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
2567 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2568 # name.
2569 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2570 # versions.
2571 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2572 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2573 },
2574 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/)
2575 # format. Examples include distro or storage location for vulnerable jar.
2576 },
2577 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in
2578 # [cpe format](https://cpe.mitre.org/specification/) in which the
2579 # vulnerability manifests. Examples include distro or storage location for
2580 # vulnerable jar.
2581 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2582 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2583 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
2584 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2585 # name.
2586 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2587 # versions.
2588 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2589 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2590 },
2591 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
2592 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version
2593 # name.
2594 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal
2595 # versions.
2596 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2597 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2598 },
2599 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
2600 },
2601 ],
2602 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
2603 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. # The full description of the CVSSv3.
2604 # For details, see https://www.first.org/cvss/specification-document
2605 &quot;scope&quot;: &quot;A String&quot;,
2606 &quot;integrityImpact&quot;: &quot;A String&quot;,
2607 &quot;exploitabilityScore&quot;: 3.14,
2608 &quot;impactScore&quot;: 3.14,
2609 &quot;attackComplexity&quot;: &quot;A String&quot;,
2610 &quot;availabilityImpact&quot;: &quot;A String&quot;,
2611 &quot;privilegesRequired&quot;: &quot;A String&quot;,
2612 &quot;userInteraction&quot;: &quot;A String&quot;,
2613 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics
2614 # Represents the intrinsic characteristics of a vulnerability that are
2615 # constant over time and across user environments.
2616 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
2617 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
2618 },
2619 },
2620 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
2621 &quot;A String&quot;,
2622 ],
2623 &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 -07002624 # provenance message in the build details occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002625 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
2626 &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 -07002627 # containing build details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002628 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
2629 # `key_id`.
2630 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is
2631 # base-64 encoded.
2632 &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 -07002633 # findings are valid and unchanged. If `key_type` is empty, this defaults
2634 # to PEM encoded public keys.
2635 #
2636 # This field may be empty if `key_id` references an external key.
2637 #
2638 # For Cloud Build based signatures, this is a PEM encoded public
2639 # key. To verify the Cloud Build signature, place the contents of
2640 # this field into a file (public.pem). The signature field is base64-decoded
2641 # into its binary representation in signature.bin, and the provenance bytes
2642 # from `BuildDetails` are base64-decoded into a binary representation in
2643 # signed.bin. OpenSSL can then verify the signature:
2644 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07002645 &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 -07002646 # stored in `public_key` (such as the ID or fingerprint for a PGP key, or the
2647 # CN for a cert), or a reference to an external key (such as a reference to a
2648 # key in Cloud Key Management Service).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002649 },
2650 },
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 Kim65020912020-05-20 12:08:20 -07002742 &quot;version&quot;: 42, # Specifies the format of the policy.
2743 #
2744 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2745 # are rejected.
2746 #
2747 # Any operation that affects conditional role bindings must specify version
2748 # `3`. This requirement applies to the following operations:
2749 #
2750 # * Getting a policy that includes a conditional role binding
2751 # * Adding a conditional role binding to a policy
2752 # * Changing a conditional role binding in a policy
2753 # * Removing any role binding, with or without a condition, from a policy
2754 # that includes conditions
2755 #
2756 # **Important:** If you use IAM Conditions, you must include the `etag` field
2757 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2758 # you to overwrite a version `3` policy with a version `1` policy, and all of
2759 # the conditions in the version `3` policy are lost.
2760 #
2761 # If a policy does not include any conditions, operations on that policy may
2762 # specify any valid version or leave the field unset.
2763 #
2764 # To learn which resources support conditions in their IAM policies, see the
2765 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2766 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002767 # `condition` that determines how and when the `bindings` are applied. Each
2768 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002769 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002770 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002771 # `members` can have the following values:
2772 #
2773 # * `allUsers`: A special identifier that represents anyone who is
2774 # on the internet; with or without a Google account.
2775 #
2776 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2777 # who is authenticated with a Google account or a service account.
2778 #
2779 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002780 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002781 #
2782 #
2783 # * `serviceAccount:{emailid}`: An email address that represents a service
2784 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
2785 #
2786 # * `group:{emailid}`: An email address that represents a Google group.
2787 # For example, `admins@example.com`.
2788 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002789 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
2790 # identifier) representing a user that has been recently deleted. For
2791 # example, `alice@example.com?uid=123456789012345678901`. If the user is
2792 # recovered, this value reverts to `user:{emailid}` and the recovered user
2793 # retains the role in the binding.
2794 #
2795 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
2796 # unique identifier) representing a service account that has been recently
2797 # deleted. For example,
2798 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
2799 # If the service account is undeleted, this value reverts to
2800 # `serviceAccount:{emailid}` and the undeleted service account retains the
2801 # role in the binding.
2802 #
2803 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
2804 # identifier) representing a Google group that has been recently
2805 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
2806 # the group is recovered, this value reverts to `group:{emailid}` and the
2807 # recovered group retains the role in the binding.
2808 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002809 #
2810 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
2811 # users of that domain. For example, `google.com` or `example.com`.
2812 #
Bu Sun Kim65020912020-05-20 12:08:20 -07002813 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002814 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002815 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
2816 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2817 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
2818 #
2819 # If the condition evaluates to `true`, then this binding applies to the
2820 # current request.
2821 #
2822 # If the condition evaluates to `false`, then this binding does not apply to
2823 # the current request. However, a different role binding might grant the same
2824 # role to one or more of the members in this binding.
2825 #
2826 # To learn which resources support conditions in their IAM policies, see the
2827 # [IAM
2828 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2829 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
2830 # are documented at https://github.com/google/cel-spec.
2831 #
2832 # Example (Comparison):
2833 #
2834 # title: &quot;Summary size limit&quot;
2835 # description: &quot;Determines if a summary is less than 100 chars&quot;
2836 # expression: &quot;document.summary.size() &lt; 100&quot;
2837 #
2838 # Example (Equality):
2839 #
2840 # title: &quot;Requestor is owner&quot;
2841 # description: &quot;Determines if requestor is the document owner&quot;
2842 # expression: &quot;document.owner == request.auth.claims.email&quot;
2843 #
2844 # Example (Logic):
2845 #
2846 # title: &quot;Public documents&quot;
2847 # description: &quot;Determine whether the document should be publicly visible&quot;
2848 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
2849 #
2850 # Example (Data Manipulation):
2851 #
2852 # title: &quot;Notification string&quot;
2853 # description: &quot;Create a notification string with a timestamp.&quot;
2854 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
2855 #
2856 # The exact variables and functions that may be referenced within an expression
2857 # are determined by the service that evaluates it. See the service
2858 # documentation for additional information.
2859 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
2860 # its purpose. This can be used e.g. in UIs which allow to enter the
2861 # expression.
2862 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
2863 # reporting, e.g. a file name and a position in the file.
2864 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
2865 # describes the expression, e.g. when hovered over it in a UI.
2866 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
2867 # syntax.
2868 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002869 },
2870 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002871 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002872 # prevent simultaneous updates of a policy from overwriting each other.
2873 # It is strongly suggested that systems make use of the `etag` in the
2874 # read-modify-write cycle to perform policy updates in order to avoid race
2875 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
2876 # systems are expected to put that etag in the request to `setIamPolicy` to
2877 # ensure that their change will be applied to the same version of the policy.
2878 #
Dan O'Mearadd494642020-05-01 07:42:23 -07002879 # **Important:** If you use IAM Conditions, you must include the `etag` field
2880 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2881 # you to overwrite a version `3` policy with a version `1` policy, and all of
2882 # the conditions in the version `3` policy are lost.
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 Kim65020912020-05-20 12:08:20 -07002961 &quot;version&quot;: 42, # Specifies the format of the policy.
2962 #
2963 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
2964 # are rejected.
2965 #
2966 # Any operation that affects conditional role bindings must specify version
2967 # `3`. This requirement applies to the following operations:
2968 #
2969 # * Getting a policy that includes a conditional role binding
2970 # * Adding a conditional role binding to a policy
2971 # * Changing a conditional role binding in a policy
2972 # * Removing any role binding, with or without a condition, from a policy
2973 # that includes conditions
2974 #
2975 # **Important:** If you use IAM Conditions, you must include the `etag` field
2976 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
2977 # you to overwrite a version `3` policy with a version `1` policy, and all of
2978 # the conditions in the version `3` policy are lost.
2979 #
2980 # If a policy does not include any conditions, operations on that policy may
2981 # specify any valid version or leave the field unset.
2982 #
2983 # To learn which resources support conditions in their IAM policies, see the
2984 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2985 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07002986 # `condition` that determines how and when the `bindings` are applied. Each
2987 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002988 { # Associates `members` with a `role`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002989 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002990 # `members` can have the following values:
2991 #
2992 # * `allUsers`: A special identifier that represents anyone who is
2993 # on the internet; with or without a Google account.
2994 #
2995 # * `allAuthenticatedUsers`: A special identifier that represents anyone
2996 # who is authenticated with a Google account or a service account.
2997 #
2998 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07002999 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003000 #
3001 #
3002 # * `serviceAccount:{emailid}`: An email address that represents a service
3003 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3004 #
3005 # * `group:{emailid}`: An email address that represents a Google group.
3006 # For example, `admins@example.com`.
3007 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003008 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3009 # identifier) representing a user that has been recently deleted. For
3010 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3011 # recovered, this value reverts to `user:{emailid}` and the recovered user
3012 # retains the role in the binding.
3013 #
3014 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3015 # unique identifier) representing a service account that has been recently
3016 # deleted. For example,
3017 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3018 # If the service account is undeleted, this value reverts to
3019 # `serviceAccount:{emailid}` and the undeleted service account retains the
3020 # role in the binding.
3021 #
3022 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3023 # identifier) representing a Google group that has been recently
3024 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3025 # the group is recovered, this value reverts to `group:{emailid}` and the
3026 # recovered group retains the role in the binding.
3027 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003028 #
3029 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3030 # users of that domain. For example, `google.com` or `example.com`.
3031 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003032 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003033 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003034 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3035 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3036 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3037 #
3038 # If the condition evaluates to `true`, then this binding applies to the
3039 # current request.
3040 #
3041 # If the condition evaluates to `false`, then this binding does not apply to
3042 # the current request. However, a different role binding might grant the same
3043 # role to one or more of the members in this binding.
3044 #
3045 # To learn which resources support conditions in their IAM policies, see the
3046 # [IAM
3047 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3048 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3049 # are documented at https://github.com/google/cel-spec.
3050 #
3051 # Example (Comparison):
3052 #
3053 # title: &quot;Summary size limit&quot;
3054 # description: &quot;Determines if a summary is less than 100 chars&quot;
3055 # expression: &quot;document.summary.size() &lt; 100&quot;
3056 #
3057 # Example (Equality):
3058 #
3059 # title: &quot;Requestor is owner&quot;
3060 # description: &quot;Determines if requestor is the document owner&quot;
3061 # expression: &quot;document.owner == request.auth.claims.email&quot;
3062 #
3063 # Example (Logic):
3064 #
3065 # title: &quot;Public documents&quot;
3066 # description: &quot;Determine whether the document should be publicly visible&quot;
3067 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3068 #
3069 # Example (Data Manipulation):
3070 #
3071 # title: &quot;Notification string&quot;
3072 # description: &quot;Create a notification string with a timestamp.&quot;
3073 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3074 #
3075 # The exact variables and functions that may be referenced within an expression
3076 # are determined by the service that evaluates it. See the service
3077 # documentation for additional information.
3078 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3079 # its purpose. This can be used e.g. in UIs which allow to enter the
3080 # expression.
3081 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3082 # reporting, e.g. a file name and a position in the file.
3083 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3084 # describes the expression, e.g. when hovered over it in a UI.
3085 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3086 # syntax.
3087 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003088 },
3089 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003090 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003091 # prevent simultaneous updates of a policy from overwriting each other.
3092 # It is strongly suggested that systems make use of the `etag` in the
3093 # read-modify-write cycle to perform policy updates in order to avoid race
3094 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3095 # systems are expected to put that etag in the request to `setIamPolicy` to
3096 # ensure that their change will be applied to the same version of the policy.
3097 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003098 # **Important:** If you use IAM Conditions, you must include the `etag` field
3099 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3100 # you to overwrite a version `3` policy with a version `1` policy, and all of
3101 # the conditions in the version `3` policy are lost.
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>