blob: 3947355fba085fd913629b4b4e94d7b7a2c9a98d [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070086 <code><a href="#close">close()</a></code></p>
87<p class="firstline">Close httplib2 connections.</p>
88<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070089 <code><a href="#create">create(parent, body=None, noteId=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070090<p class="firstline">Creates a new note.</p>
91<p class="toc_element">
92 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
93<p class="firstline">Deletes the specified note.</p>
94<p class="toc_element">
95 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
96<p class="firstline">Gets the specified note.</p>
97<p class="toc_element">
98 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070099<p class="firstline">Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800101 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102<p class="firstline">Lists notes for the specified project.</p>
103<p class="toc_element">
104 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
105<p class="firstline">Retrieves the next page of results.</p>
106<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700107 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108<p class="firstline">Updates the specified note.</p>
109<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700110 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700111<p class="firstline">Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700112<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700113 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700114<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700115<h3>Method Details</h3>
116<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700117 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700118 <pre>Creates new notes in batch.
119
120Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the notes are to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700122 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700123 The object takes the form of:
124
125{ # Request to create notes in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800126 &quot;notes&quot;: { # Required. The notes to create, the key is expected to be the note ID. Max allowed length is 1000.
127 &quot;a_key&quot;: { # A type of analysis that can be done for a resource.
128 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
129 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
130 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
131 },
132 },
133 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
134 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
135 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
136 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
137 &quot;A String&quot;,
138 ],
139 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
140 },
141 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
142 },
143 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
144 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
145 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
146 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
147 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
148 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
149 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
150 },
151 },
152 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
153 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
154 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800155 &quot;A String&quot;,
156 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 },
158 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
159 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
160 },
161 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
162 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
163 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
164 &quot;A String&quot;,
165 ],
166 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
167 { # Defines an object to declare an in-toto artifact rule
168 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800169 &quot;A String&quot;,
170 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800171 },
172 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800173 &quot;expectedProducts&quot;: [
174 { # Defines an object to declare an in-toto artifact rule
175 &quot;artifactRule&quot;: [
176 &quot;A String&quot;,
177 ],
178 },
179 ],
180 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
181 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
182 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
183 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
184 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
185 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
186 },
187 ],
188 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
189 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
190 },
191 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
192 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
193 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
194 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
195 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
196 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
197 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
198 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
199 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
200 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
201 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
202 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
203 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
204 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
205 },
206 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
207 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
208 },
209 ],
210 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
211 },
212 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
213 &quot;A String&quot;,
214 ],
215 &quot;relatedUrl&quot;: [ # URLs associated with this note.
216 { # Metadata for any related URL information.
217 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
218 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
219 },
220 ],
221 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
222 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
223 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
224 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
225 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
226 &quot;attackComplexity&quot;: &quot;A String&quot;,
227 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
228 &quot;availabilityImpact&quot;: &quot;A String&quot;,
229 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
230 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
231 &quot;exploitabilityScore&quot;: 3.14,
232 &quot;impactScore&quot;: 3.14,
233 &quot;integrityImpact&quot;: &quot;A String&quot;,
234 &quot;privilegesRequired&quot;: &quot;A String&quot;,
235 &quot;scope&quot;: &quot;A String&quot;,
236 &quot;userInteraction&quot;: &quot;A String&quot;,
237 },
238 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
239 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
240 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
241 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
242 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
243 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
244 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
245 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800246 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
247 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800248 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
249 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800250 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800251 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800252 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
253 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
254 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
255 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
256 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
257 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
258 },
259 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
260 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
261 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
262 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
263 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
264 },
265 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
266 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
267 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
268 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
269 },
270 ],
271 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
272 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
273 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
274 {
275 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
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 vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
278 {
279 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
280 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
281 },
282 ],
283 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
284 },
285 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800286 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700287 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800288 },
289}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700290
291 x__xgafv: string, V1 error format.
292 Allowed values
293 1 - v1 error format
294 2 - v2 error format
295
296Returns:
297 An object of the form:
298
299 { # Response for creating notes in batch.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800300 &quot;notes&quot;: [ # The notes that were created.
301 { # A type of analysis that can be done for a resource.
302 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
303 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
304 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
305 },
306 },
307 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
308 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
309 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
310 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
311 &quot;A String&quot;,
312 ],
313 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
314 },
315 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
316 },
317 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
318 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
319 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
320 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
321 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
322 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
323 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
324 },
325 },
326 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
327 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
328 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800329 &quot;A String&quot;,
330 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800331 },
332 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
333 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
334 },
335 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
336 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
337 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
338 &quot;A String&quot;,
339 ],
340 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
341 { # Defines an object to declare an in-toto artifact rule
342 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800343 &quot;A String&quot;,
344 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800345 },
346 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800347 &quot;expectedProducts&quot;: [
348 { # Defines an object to declare an in-toto artifact rule
349 &quot;artifactRule&quot;: [
350 &quot;A String&quot;,
351 ],
352 },
353 ],
354 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
355 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
356 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
357 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
358 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
359 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
360 },
361 ],
362 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
363 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
364 },
365 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
366 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
367 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
368 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
369 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
370 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
371 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
372 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
373 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
374 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
375 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
376 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
377 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
378 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
379 },
380 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
381 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
382 },
383 ],
384 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
385 },
386 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
387 &quot;A String&quot;,
388 ],
389 &quot;relatedUrl&quot;: [ # URLs associated with this note.
390 { # Metadata for any related URL information.
391 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
392 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
393 },
394 ],
395 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
396 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
397 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
398 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
399 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
400 &quot;attackComplexity&quot;: &quot;A String&quot;,
401 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
402 &quot;availabilityImpact&quot;: &quot;A String&quot;,
403 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
404 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
405 &quot;exploitabilityScore&quot;: 3.14,
406 &quot;impactScore&quot;: 3.14,
407 &quot;integrityImpact&quot;: &quot;A String&quot;,
408 &quot;privilegesRequired&quot;: &quot;A String&quot;,
409 &quot;scope&quot;: &quot;A String&quot;,
410 &quot;userInteraction&quot;: &quot;A String&quot;,
411 },
412 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
413 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
414 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
415 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
416 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
417 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
418 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
419 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800420 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
421 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800422 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
423 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800424 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800425 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800426 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
427 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
428 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
429 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
430 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
431 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
432 },
433 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
434 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
435 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
436 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
437 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
438 },
439 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
440 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
441 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
442 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
443 },
444 ],
445 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
446 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
447 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
448 {
449 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
450 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
451 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
452 {
453 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
454 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
455 },
456 ],
457 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
458 },
459 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800460 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800461 },
462 ],
463}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700464</div>
465
466<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700467 <code class="details" id="close">close()</code>
468 <pre>Close httplib2 connections.</pre>
469</div>
470
471<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700472 <code class="details" id="create">create(parent, body=None, noteId=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700473 <pre>Creates a new note.
474
475Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700476 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the note is to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700477 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700478 The object takes the form of:
479
480{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800481 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
482 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
483 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
484 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800485 },
486 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
487 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
488 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
489 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
490 &quot;A String&quot;,
491 ],
492 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
493 },
494 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
495 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800496 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
497 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
498 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
499 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
500 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
501 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
502 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
503 },
504 },
505 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
506 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
507 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
508 &quot;A String&quot;,
509 ],
510 },
511 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
512 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
513 },
514 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
515 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
516 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
517 &quot;A String&quot;,
518 ],
519 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
520 { # Defines an object to declare an in-toto artifact rule
521 &quot;artifactRule&quot;: [
522 &quot;A String&quot;,
523 ],
524 },
525 ],
526 &quot;expectedProducts&quot;: [
527 { # Defines an object to declare an in-toto artifact rule
528 &quot;artifactRule&quot;: [
529 &quot;A String&quot;,
530 ],
531 },
532 ],
533 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
534 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
535 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
536 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
537 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
538 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
539 },
540 ],
541 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
542 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
543 },
544 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
545 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
546 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
547 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
548 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
549 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
550 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
551 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
552 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
553 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
554 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
555 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
556 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
557 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
558 },
559 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
560 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
561 },
562 ],
563 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
564 },
565 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
566 &quot;A String&quot;,
567 ],
568 &quot;relatedUrl&quot;: [ # URLs associated with this note.
569 { # Metadata for any related URL information.
570 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
571 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
572 },
573 ],
574 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
575 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800576 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800577 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800578 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800579 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800580 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800581 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800582 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
583 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800584 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800585 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800586 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800587 &quot;privilegesRequired&quot;: &quot;A String&quot;,
588 &quot;scope&quot;: &quot;A String&quot;,
589 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800590 },
591 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
592 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800593 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
594 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800595 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
596 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
597 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
598 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
599 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
600 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
601 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
602 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
603 },
604 },
605 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
606 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
607 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
608 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
609 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
610 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
611 },
612 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
613 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
614 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
615 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
616 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
617 },
618 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
619 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
620 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800621 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
622 },
623 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800624 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800625 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
626 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
627 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800628 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
629 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800630 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
631 {
632 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
633 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
634 },
635 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800636 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
637 },
638 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800639 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800640}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700641
Dan O'Mearadd494642020-05-01 07:42:23 -0700642 noteId: string, Required. The ID to use for this note.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700643 x__xgafv: string, V1 error format.
644 Allowed values
645 1 - v1 error format
646 2 - v2 error format
647
648Returns:
649 An object of the form:
650
651 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800652 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
653 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
654 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
655 },
656 },
657 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
658 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
659 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
660 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
661 &quot;A String&quot;,
662 ],
663 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
664 },
665 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
666 },
667 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
668 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
669 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
670 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
671 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
672 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
673 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
674 },
675 },
676 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
677 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
678 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800679 &quot;A String&quot;,
680 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800681 },
682 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
683 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
684 },
685 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
686 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
687 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
688 &quot;A String&quot;,
689 ],
690 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
691 { # Defines an object to declare an in-toto artifact rule
692 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800693 &quot;A String&quot;,
694 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800695 },
696 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800697 &quot;expectedProducts&quot;: [
698 { # Defines an object to declare an in-toto artifact rule
699 &quot;artifactRule&quot;: [
700 &quot;A String&quot;,
701 ],
702 },
703 ],
704 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
705 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
706 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
707 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
708 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
709 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
710 },
711 ],
712 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
713 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
714 },
715 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
716 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
717 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
718 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
719 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
720 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
721 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
722 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
723 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
724 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
725 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
726 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
727 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
728 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
729 },
730 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
731 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
732 },
733 ],
734 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
735 },
736 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
737 &quot;A String&quot;,
738 ],
739 &quot;relatedUrl&quot;: [ # URLs associated with this note.
740 { # Metadata for any related URL information.
741 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
742 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
743 },
744 ],
745 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
746 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
747 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
748 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
749 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
750 &quot;attackComplexity&quot;: &quot;A String&quot;,
751 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
752 &quot;availabilityImpact&quot;: &quot;A String&quot;,
753 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
754 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
755 &quot;exploitabilityScore&quot;: 3.14,
756 &quot;impactScore&quot;: 3.14,
757 &quot;integrityImpact&quot;: &quot;A String&quot;,
758 &quot;privilegesRequired&quot;: &quot;A String&quot;,
759 &quot;scope&quot;: &quot;A String&quot;,
760 &quot;userInteraction&quot;: &quot;A String&quot;,
761 },
762 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
763 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
764 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
765 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
766 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
767 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
768 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
769 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800770 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
771 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800772 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
773 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800774 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800775 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800776 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
777 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
778 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
779 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
780 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
781 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
782 },
783 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
784 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
785 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
786 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
787 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
788 },
789 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
790 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
791 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
792 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
793 },
794 ],
795 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
796 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
797 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
798 {
799 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
800 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
801 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
802 {
803 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
804 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
805 },
806 ],
807 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
808 },
809 ],
810 },
811}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700812</div>
813
814<div class="method">
815 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
816 <pre>Deletes the specified note.
817
818Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700819 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 x__xgafv: string, V1 error format.
821 Allowed values
822 1 - v1 error format
823 2 - v2 error format
824
825Returns:
826 An object of the form:
827
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700828 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800829}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830</div>
831
832<div class="method">
833 <code class="details" id="get">get(name, x__xgafv=None)</code>
834 <pre>Gets the specified note.
835
836Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700837 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700838 x__xgafv: string, V1 error format.
839 Allowed values
840 1 - v1 error format
841 2 - v2 error format
842
843Returns:
844 An object of the form:
845
846 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800847 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
848 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
849 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
850 },
851 },
852 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
853 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
854 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
855 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
856 &quot;A String&quot;,
857 ],
858 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
859 },
860 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
861 },
862 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
863 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
864 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
865 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
866 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
867 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
868 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
869 },
870 },
871 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
872 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
873 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800874 &quot;A String&quot;,
875 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800876 },
877 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
878 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
879 },
880 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
881 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
882 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
883 &quot;A String&quot;,
884 ],
885 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
886 { # Defines an object to declare an in-toto artifact rule
887 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800888 &quot;A String&quot;,
889 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800890 },
891 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800892 &quot;expectedProducts&quot;: [
893 { # Defines an object to declare an in-toto artifact rule
894 &quot;artifactRule&quot;: [
895 &quot;A String&quot;,
896 ],
897 },
898 ],
899 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
900 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
901 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
902 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
903 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
904 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
905 },
906 ],
907 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
908 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
909 },
910 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
911 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
912 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
913 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
914 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
915 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
916 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
917 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
918 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
919 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
920 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
921 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
922 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
923 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
924 },
925 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
926 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
927 },
928 ],
929 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
930 },
931 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
932 &quot;A String&quot;,
933 ],
934 &quot;relatedUrl&quot;: [ # URLs associated with this note.
935 { # Metadata for any related URL information.
936 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
937 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
938 },
939 ],
940 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
941 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
942 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
943 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
944 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
945 &quot;attackComplexity&quot;: &quot;A String&quot;,
946 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
947 &quot;availabilityImpact&quot;: &quot;A String&quot;,
948 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
949 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
950 &quot;exploitabilityScore&quot;: 3.14,
951 &quot;impactScore&quot;: 3.14,
952 &quot;integrityImpact&quot;: &quot;A String&quot;,
953 &quot;privilegesRequired&quot;: &quot;A String&quot;,
954 &quot;scope&quot;: &quot;A String&quot;,
955 &quot;userInteraction&quot;: &quot;A String&quot;,
956 },
957 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
958 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
959 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
960 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
961 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
962 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
963 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
964 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800965 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
966 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800967 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
968 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800969 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800970 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800971 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
972 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
973 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
974 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
975 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
976 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
977 },
978 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
979 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
980 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
981 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
982 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
983 },
984 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
985 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
986 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
987 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
988 },
989 ],
990 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
991 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
992 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
993 {
994 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
995 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
996 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
997 {
998 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
999 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1000 },
1001 ],
1002 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1003 },
1004 ],
1005 },
1006}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001007</div>
1008
1009<div class="method">
1010 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001011 <pre>Gets the access control policy for a note or an occurrence resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001012
1013Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001014 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001015 body: object, The request body.
1016 The object takes the form of:
1017
1018{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001019 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1020 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1021 },
1022}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001023
1024 x__xgafv: string, V1 error format.
1025 Allowed values
1026 1 - v1 error format
1027 2 - v2 error format
1028
1029Returns:
1030 An object of the form:
1031
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001032 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001033 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1034 { # Associates `members` with a `role`.
1035 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1036 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1037 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1038 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1039 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001041 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1042 &quot;A String&quot;,
1043 ],
1044 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1045 },
1046 ],
1047 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1048 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1049}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001050</div>
1051
1052<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001053 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001054 <pre>Lists notes for the specified project.
1055
1056Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 parent: string, Required. The name of the project to list notes for in the form of `projects/[PROJECT_ID]`. (required)
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001058 filter: string, The filter expression.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001059 pageSize: integer, Number of notes to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001060 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001061 x__xgafv: string, V1 error format.
1062 Allowed values
1063 1 - v1 error format
1064 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001065
1066Returns:
1067 An object of the form:
1068
1069 { # Response for listing notes.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001070 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results.
1071 &quot;notes&quot;: [ # The notes requested.
1072 { # A type of analysis that can be done for a resource.
1073 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
1074 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
1075 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1076 },
1077 },
1078 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
1079 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1080 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1081 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1082 &quot;A String&quot;,
1083 ],
1084 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
1085 },
1086 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1087 },
1088 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
1089 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1090 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
1091 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
1092 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1093 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
1094 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1095 },
1096 },
1097 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
1098 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1099 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001100 &quot;A String&quot;,
1101 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001102 },
1103 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
1104 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1105 },
1106 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1107 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
1108 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1109 &quot;A String&quot;,
1110 ],
1111 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
1112 { # Defines an object to declare an in-toto artifact rule
1113 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001114 &quot;A String&quot;,
1115 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001116 },
1117 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001118 &quot;expectedProducts&quot;: [
1119 { # Defines an object to declare an in-toto artifact rule
1120 &quot;artifactRule&quot;: [
1121 &quot;A String&quot;,
1122 ],
1123 },
1124 ],
1125 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1126 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
1127 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1128 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1129 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
1130 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1131 },
1132 ],
1133 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1134 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
1135 },
1136 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1137 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1138 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1139 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
1140 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1141 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1142 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1143 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1144 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1145 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1146 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1147 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1148 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1149 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1150 },
1151 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1152 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1153 },
1154 ],
1155 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1156 },
1157 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1158 &quot;A String&quot;,
1159 ],
1160 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1161 { # Metadata for any related URL information.
1162 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1163 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1164 },
1165 ],
1166 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1167 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
1168 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1169 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1170 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
1171 &quot;attackComplexity&quot;: &quot;A String&quot;,
1172 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
1173 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1174 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1175 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1176 &quot;exploitabilityScore&quot;: 3.14,
1177 &quot;impactScore&quot;: 3.14,
1178 &quot;integrityImpact&quot;: &quot;A String&quot;,
1179 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1180 &quot;scope&quot;: &quot;A String&quot;,
1181 &quot;userInteraction&quot;: &quot;A String&quot;,
1182 },
1183 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
1184 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1185 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1186 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1187 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1188 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1189 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1190 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001191 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1192 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001193 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1194 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001195 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001196 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001197 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1198 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1199 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1200 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1201 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1202 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1203 },
1204 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1205 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1206 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1207 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1208 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1209 },
1210 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1211 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1212 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1213 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1214 },
1215 ],
1216 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1217 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1218 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1219 {
1220 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1221 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1222 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
1223 {
1224 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1225 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1226 },
1227 ],
1228 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1229 },
1230 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001231 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001232 },
1233 ],
1234}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001235</div>
1236
1237<div class="method">
1238 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1239 <pre>Retrieves the next page of results.
1240
1241Args:
1242 previous_request: The request for the previous page. (required)
1243 previous_response: The response from the request for the previous page. (required)
1244
1245Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001246 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001247 page. Returns None if there are no more items in the collection.
1248 </pre>
1249</div>
1250
1251<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001252 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253 <pre>Updates the specified note.
1254
1255Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001256 name: string, Required. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001257 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001258 The object takes the form of:
1259
1260{ # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001261 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
1262 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
1263 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1264 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001265 },
1266 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
1267 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1268 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1269 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1270 &quot;A String&quot;,
1271 ],
1272 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
1273 },
1274 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1275 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001276 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
1277 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1278 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
1279 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
1280 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1281 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
1282 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1283 },
1284 },
1285 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
1286 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1287 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1288 &quot;A String&quot;,
1289 ],
1290 },
1291 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
1292 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1293 },
1294 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1295 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
1296 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1297 &quot;A String&quot;,
1298 ],
1299 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
1300 { # Defines an object to declare an in-toto artifact rule
1301 &quot;artifactRule&quot;: [
1302 &quot;A String&quot;,
1303 ],
1304 },
1305 ],
1306 &quot;expectedProducts&quot;: [
1307 { # Defines an object to declare an in-toto artifact rule
1308 &quot;artifactRule&quot;: [
1309 &quot;A String&quot;,
1310 ],
1311 },
1312 ],
1313 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1314 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
1315 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1316 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1317 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
1318 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1319 },
1320 ],
1321 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1322 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
1323 },
1324 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1325 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1326 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1327 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
1328 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1329 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1330 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1331 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1332 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1333 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1334 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1335 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1336 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1337 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1338 },
1339 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1340 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1341 },
1342 ],
1343 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1344 },
1345 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1346 &quot;A String&quot;,
1347 ],
1348 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1349 { # Metadata for any related URL information.
1350 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1351 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1352 },
1353 ],
1354 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1355 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001356 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001357 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001358 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001359 &quot;attackComplexity&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001360 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001361 &quot;availabilityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001362 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1363 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001364 &quot;exploitabilityScore&quot;: 3.14,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001365 &quot;impactScore&quot;: 3.14,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001366 &quot;integrityImpact&quot;: &quot;A String&quot;,
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001367 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1368 &quot;scope&quot;: &quot;A String&quot;,
1369 &quot;userInteraction&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001370 },
1371 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
1372 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001373 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1374 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001375 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1376 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1377 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1378 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
1379 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1380 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1381 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1382 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1383 },
1384 },
1385 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1386 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1387 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1388 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1389 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1390 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1391 },
1392 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1393 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1394 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1395 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1396 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1397 },
1398 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1399 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1400 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001401 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1402 },
1403 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001404 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001405 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1406 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1407 {
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001408 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1409 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001410 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
1411 {
1412 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1413 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1414 },
1415 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001416 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1417 },
1418 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001419 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001420}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001421
1422 updateMask: string, The fields to update.
1423 x__xgafv: string, V1 error format.
1424 Allowed values
1425 1 - v1 error format
1426 2 - v2 error format
1427
1428Returns:
1429 An object of the form:
1430
1431 { # A type of analysis that can be done for a resource.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001432 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` for &quot;QA&quot; and one for &quot;build&quot;. This note is intended to act strictly as a grouping mechanism for the attached occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an occurrence to a given note. It also provides a single point of lookup to find all attached attestation occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
1433 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
1434 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1435 },
1436 },
1437 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
1438 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1439 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1440 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1441 &quot;A String&quot;,
1442 ],
1443 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept.
1444 },
1445 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1446 },
1447 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
1448 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1449 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
1450 &quot;keyId&quot;: &quot;A String&quot;, # An ID for the key used to sign. This could be either an ID for the key stored in `public_key` (such as the ID or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
1451 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1452 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
1453 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1454 },
1455 },
1456 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
1457 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1458 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001459 &quot;A String&quot;,
1460 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001461 },
1462 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. # A note describing the initial analysis of a resource.
1463 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1464 },
1465 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1466 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
1467 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1468 &quot;A String&quot;,
1469 ],
1470 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
1471 { # Defines an object to declare an in-toto artifact rule
1472 &quot;artifactRule&quot;: [
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001473 &quot;A String&quot;,
1474 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001475 },
1476 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001477 &quot;expectedProducts&quot;: [
1478 { # Defines an object to declare an in-toto artifact rule
1479 &quot;artifactRule&quot;: [
1480 &quot;A String&quot;,
1481 ],
1482 },
1483 ],
1484 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1485 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
1486 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1487 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1488 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
1489 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1490 },
1491 ],
1492 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1493 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
1494 },
1495 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
1496 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
1497 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
1498 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. E.g., glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
1499 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1500 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1501 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1502 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1503 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1504 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1505 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1506 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1507 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1508 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1509 },
1510 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1511 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1512 },
1513 ],
1514 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1515 },
1516 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1517 &quot;A String&quot;,
1518 ],
1519 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1520 { # Metadata for any related URL information.
1521 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1522 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
1523 },
1524 ],
1525 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
1526 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
1527 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
1528 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
1529 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
1530 &quot;attackComplexity&quot;: &quot;A String&quot;,
1531 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
1532 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1533 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1534 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1535 &quot;exploitabilityScore&quot;: 3.14,
1536 &quot;impactScore&quot;: 3.14,
1537 &quot;integrityImpact&quot;: &quot;A String&quot;,
1538 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1539 &quot;scope&quot;: &quot;A String&quot;,
1540 &quot;userInteraction&quot;: &quot;A String&quot;,
1541 },
1542 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
1543 { # Identifies all appearances of this vulnerability in the package for a specific distro/location. For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
1544 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1545 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1546 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
1547 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
1548 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
1549 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001550 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1551 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001552 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1553 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001554 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001555 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001556 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
1557 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1558 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1559 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1560 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1561 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1562 },
1563 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1564 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1565 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1566 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1567 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1568 },
1569 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1570 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
1571 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1572 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1573 },
1574 ],
1575 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
1576 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
1577 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1578 {
1579 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar.
1580 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1581 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
1582 {
1583 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
1584 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
1585 },
1586 ],
1587 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1588 },
1589 ],
1590 },
1591}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001592</div>
1593
1594<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001595 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001596 <pre>Sets the access control policy on the specified note or occurrence. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or an occurrence, respectively. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001597
1598Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001599 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001600 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001601 The object takes the form of:
1602
1603{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001604 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
1605 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1606 { # Associates `members` with a `role`.
1607 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1608 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1609 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1610 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1611 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001613 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1614 &quot;A String&quot;,
1615 ],
1616 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1617 },
1618 ],
1619 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1620 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1621 },
1622}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001623
1624 x__xgafv: string, V1 error format.
1625 Allowed values
1626 1 - v1 error format
1627 2 - v2 error format
1628
1629Returns:
1630 An object of the form:
1631
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001632 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001633 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1634 { # Associates `members` with a `role`.
1635 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1636 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1637 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1638 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1639 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001641 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1642 &quot;A String&quot;,
1643 ],
1644 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1645 },
1646 ],
1647 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
1648 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1649}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001650</div>
1651
1652<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001653 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001654 <pre>Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001655
1656Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001657 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001658 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001659 The object takes the form of:
1660
1661{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001662 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
1663 &quot;A String&quot;,
1664 ],
1665}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001666
1667 x__xgafv: string, V1 error format.
1668 Allowed values
1669 1 - v1 error format
1670 2 - v2 error format
1671
1672Returns:
1673 An object of the form:
1674
1675 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001676 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
1677 &quot;A String&quot;,
1678 ],
1679}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001680</div>
1681
1682</body></html>