blob: bbe2ae2952d063173656315af0c56db0546ceafb [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Returns the requested `Occurrence`.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<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. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets the `Note` attached to the given `Occurrence`.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
98<p class="toc_element">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -080099 <code><a href="#list">list(parent, pageToken=None, filter=None, kind=None, name=None, pageSize=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Lists active `Occurrences` for a given project matching the filters.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates an existing occurrence.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<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. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <pre>Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122
123Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 The object takes the form of:
127
128{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800129 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800130 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800131 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800132 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800133 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
134 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800135 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
137 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800138 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
139 &quot;A String&quot;,
140 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800141 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800142 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
143 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
144 { # Layer holds metadata specific to a layer of a Docker image.
145 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
146 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
147 },
148 ],
149 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
150 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
151 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
152 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
153 &quot;A String&quot;,
154 ],
155 &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. This field can be used as a filter in list requests.
156 },
157 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
158 },
159 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
160 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
161 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
162 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
163 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
164 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
165 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
166 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
167 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
168 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
169 },
170 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
171 &quot;package&quot;: &quot;A String&quot;, # The package being described.
172 },
173 &quot;severityName&quot;: &quot;A String&quot;,
174 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
175 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
176 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
177 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
178 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
179 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
180 },
181 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
182 &quot;package&quot;: &quot;A String&quot;, # The package being described.
183 },
184 },
185 ],
186 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
187 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
188 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
189 },
190 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
191 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
192 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
193 &quot;value&quot;: &quot;A String&quot;, # The hash value.
194 },
195 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
196 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
197 },
198 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
199 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
200 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
201 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
202 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
203 },
204 },
205 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800206 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800207 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800208 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
209 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
210 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800211 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800212 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
213 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800214 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
215 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800216 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800217 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800218 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800219 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 ],
221 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
222 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800223 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
224 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800225 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
226 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800227 &quot;commands&quot;: [ # Commands requested by the build.
228 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800229 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
230 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
231 &quot;A String&quot;,
232 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800233 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
234 &quot;A String&quot;,
235 ],
236 &quot;env&quot;: [ # Environment variables set before running this Command.
237 &quot;A String&quot;,
238 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800239 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800240 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
241 },
242 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800243 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
244 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
245 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
246 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800247 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800250 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800251 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800252 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800253 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800254 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
255 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800256 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800257 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
258 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800259 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800260 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800261 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800262 },
263 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800264 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800265 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
266 &quot;name&quot;: &quot;A String&quot;, # The alias name.
267 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
268 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800269 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
270 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
271 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800272 &quot;labels&quot;: { # Labels with user defined metadata.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800275 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800276 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
277 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
278 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
279 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
280 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
281 },
282 },
283 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800284 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
285 &quot;name&quot;: &quot;A String&quot;, # The alias name.
286 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
287 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800288 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800289 },
290 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800291 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
292 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
293 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
294 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
295 },
296 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
297 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
298 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
299 &quot;name&quot;: &quot;A String&quot;, # The alias name.
300 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
301 },
302 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
303 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
304 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800305 &quot;labels&quot;: { # Labels with user defined metadata.
306 &quot;a_key&quot;: &quot;A String&quot;,
307 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800308 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800309 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
310 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
311 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
312 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
313 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
314 },
315 },
316 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800317 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
318 &quot;name&quot;: &quot;A String&quot;, # The alias name.
319 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
320 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800321 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800322 },
323 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
324 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
325 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
326 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
327 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
328 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
329 },
330 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
331 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
332 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
333 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800334 },
335 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
336 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
337 &quot;fileHash&quot;: [ # Collection of file hashes.
338 { # Container message for hash values.
339 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
340 &quot;value&quot;: &quot;A String&quot;, # The hash value.
341 },
342 ],
343 },
344 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800345 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800346 &quot;builtArtifacts&quot;: [ # Output of the build.
347 { # Artifact describes a build product.
348 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
349 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
350 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
351 &quot;A String&quot;,
352 ],
353 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
354 },
355 ],
356 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
357 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800358 },
359 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
360 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800361 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
362 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
363 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800364 &quot;A String&quot;,
365 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800366 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
367 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
368 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800369 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800370 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
371 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
372 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
373 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
374 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
375 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
376 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800377 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800378 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800379 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800380 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800381 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
382 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
383 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
384 {
385 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
386 },
387 ],
388 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
389 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800390 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
391 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
392 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800393 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
394 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
396 },
397 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800398 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800399 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800400 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
401 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
402 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
403 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
404 {
405 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
406 },
407 ],
408 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
409 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800410 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800411 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
412 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413}
414
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700415 name: string, The name of the project. Should be of the form &quot;projects/{project_id}&quot;. @Deprecated
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416 x__xgafv: string, V1 error format.
417 Allowed values
418 1 - v1 error format
419 2 - v2 error format
420
421Returns:
422 An object of the form:
423
424 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800425 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800426 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800427 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800428 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800429 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
430 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800431 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800432 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
433 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800434 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
435 &quot;A String&quot;,
436 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800437 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800438 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
439 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
440 { # Layer holds metadata specific to a layer of a Docker image.
441 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
442 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
443 },
444 ],
445 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
446 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
447 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
448 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
449 &quot;A String&quot;,
450 ],
451 &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. This field can be used as a filter in list requests.
452 },
453 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
454 },
455 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
456 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
457 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
458 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
459 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
460 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
461 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
462 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
463 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
464 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
465 },
466 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
467 &quot;package&quot;: &quot;A String&quot;, # The package being described.
468 },
469 &quot;severityName&quot;: &quot;A String&quot;,
470 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
471 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
472 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
473 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
474 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
475 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
476 },
477 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
478 &quot;package&quot;: &quot;A String&quot;, # The package being described.
479 },
480 },
481 ],
482 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
483 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
484 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
485 },
486 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
487 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
488 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
489 &quot;value&quot;: &quot;A String&quot;, # The hash value.
490 },
491 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
492 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
493 },
494 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
495 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
496 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
497 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
498 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
499 },
500 },
501 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800502 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800503 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800504 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
505 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
506 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800507 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800508 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
509 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800510 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
511 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800512 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800513 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800514 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800515 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800516 ],
517 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
518 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800519 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
520 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800521 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
522 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800523 &quot;commands&quot;: [ # Commands requested by the build.
524 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800525 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
526 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
527 &quot;A String&quot;,
528 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800529 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
530 &quot;A String&quot;,
531 ],
532 &quot;env&quot;: [ # Environment variables set before running this Command.
533 &quot;A String&quot;,
534 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800535 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800536 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
537 },
538 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800539 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
540 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
541 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
542 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800543 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
544 &quot;a_key&quot;: &quot;A String&quot;,
545 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800546 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800547 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800548 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800549 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800550 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
551 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800552 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800553 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
554 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800555 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800556 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800557 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800558 },
559 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800560 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800561 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
562 &quot;name&quot;: &quot;A String&quot;, # The alias name.
563 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
564 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800565 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
566 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
567 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800568 &quot;labels&quot;: { # Labels with user defined metadata.
569 &quot;a_key&quot;: &quot;A String&quot;,
570 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800571 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800572 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
573 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
574 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
575 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
576 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
577 },
578 },
579 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800580 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
581 &quot;name&quot;: &quot;A String&quot;, # The alias name.
582 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
583 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800584 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800585 },
586 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800587 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
588 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
589 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
590 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
591 },
592 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
593 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
594 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
595 &quot;name&quot;: &quot;A String&quot;, # The alias name.
596 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
597 },
598 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
599 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
600 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800601 &quot;labels&quot;: { # Labels with user defined metadata.
602 &quot;a_key&quot;: &quot;A String&quot;,
603 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800604 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800605 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
606 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
607 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
608 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
609 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
610 },
611 },
612 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800613 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
614 &quot;name&quot;: &quot;A String&quot;, # The alias name.
615 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
616 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800617 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800618 },
619 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
620 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
621 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
622 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
623 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
624 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
625 },
626 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
627 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
628 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
629 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800630 },
631 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
632 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
633 &quot;fileHash&quot;: [ # Collection of file hashes.
634 { # Container message for hash values.
635 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
636 &quot;value&quot;: &quot;A String&quot;, # The hash value.
637 },
638 ],
639 },
640 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800641 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800642 &quot;builtArtifacts&quot;: [ # Output of the build.
643 { # Artifact describes a build product.
644 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
645 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
646 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
647 &quot;A String&quot;,
648 ],
649 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
650 },
651 ],
652 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
653 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800654 },
655 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
656 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800657 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
658 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
659 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800660 &quot;A String&quot;,
661 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800662 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
663 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
664 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800665 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800666 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
667 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
668 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
669 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
670 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
671 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
672 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800673 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800674 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800675 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800676 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800677 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
678 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
679 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
680 {
681 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
682 },
683 ],
684 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
685 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800686 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
687 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
688 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800689 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
690 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
691 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
692 },
693 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800694 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800695 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800696 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
697 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
698 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
699 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
700 {
701 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
702 },
703 ],
704 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
705 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800706 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800707 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
708 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 }</pre>
710</div>
711
712<div class="method">
713 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 <pre>Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715
716Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700717 name: string, The name of the occurrence in the form of &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 x__xgafv: string, V1 error format.
719 Allowed values
720 1 - v1 error format
721 2 - v2 error format
722
723Returns:
724 An object of the form:
725
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700726 { # 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 `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 }</pre>
728</div>
729
730<div class="method">
731 <code class="details" id="get">get(name, x__xgafv=None)</code>
732 <pre>Returns the requested `Occurrence`.
733
734Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700735 name: string, The name of the occurrence of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 x__xgafv: string, V1 error format.
737 Allowed values
738 1 - v1 error format
739 2 - v2 error format
740
741Returns:
742 An object of the form:
743
744 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800745 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800746 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800747 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800748 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800749 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
750 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800751 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800752 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
753 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800754 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
755 &quot;A String&quot;,
756 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800757 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800758 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
759 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
760 { # Layer holds metadata specific to a layer of a Docker image.
761 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
762 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
763 },
764 ],
765 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
766 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
767 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
768 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
769 &quot;A String&quot;,
770 ],
771 &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. This field can be used as a filter in list requests.
772 },
773 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
774 },
775 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
776 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
777 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
778 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
779 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
780 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
781 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
782 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
783 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
784 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
785 },
786 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
787 &quot;package&quot;: &quot;A String&quot;, # The package being described.
788 },
789 &quot;severityName&quot;: &quot;A String&quot;,
790 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
791 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
792 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
793 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
794 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
795 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
796 },
797 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
798 &quot;package&quot;: &quot;A String&quot;, # The package being described.
799 },
800 },
801 ],
802 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
803 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
804 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
805 },
806 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
807 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
808 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
809 &quot;value&quot;: &quot;A String&quot;, # The hash value.
810 },
811 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
812 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
813 },
814 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
815 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
816 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
817 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
818 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
819 },
820 },
821 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800822 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800823 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800824 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
825 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
826 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800827 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800828 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
829 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800830 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
831 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800832 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800833 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800834 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800835 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800836 ],
837 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
838 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800839 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
840 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800841 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
842 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800843 &quot;commands&quot;: [ # Commands requested by the build.
844 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800845 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
846 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
847 &quot;A String&quot;,
848 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800849 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
850 &quot;A String&quot;,
851 ],
852 &quot;env&quot;: [ # Environment variables set before running this Command.
853 &quot;A String&quot;,
854 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800855 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800856 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
857 },
858 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800859 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
860 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
861 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
862 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800863 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
864 &quot;a_key&quot;: &quot;A String&quot;,
865 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800866 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800867 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800868 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800869 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800870 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
871 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800872 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800873 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
874 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800875 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800876 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800877 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800878 },
879 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800880 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800881 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
882 &quot;name&quot;: &quot;A String&quot;, # The alias name.
883 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
884 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800885 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
886 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
887 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800888 &quot;labels&quot;: { # Labels with user defined metadata.
889 &quot;a_key&quot;: &quot;A String&quot;,
890 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800891 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800892 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
893 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
894 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
895 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
896 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
897 },
898 },
899 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800900 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
901 &quot;name&quot;: &quot;A String&quot;, # The alias name.
902 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
903 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800904 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800905 },
906 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800907 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
908 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
909 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
910 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
911 },
912 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
913 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
914 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
915 &quot;name&quot;: &quot;A String&quot;, # The alias name.
916 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
917 },
918 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
919 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
920 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800921 &quot;labels&quot;: { # Labels with user defined metadata.
922 &quot;a_key&quot;: &quot;A String&quot;,
923 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800924 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800925 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
926 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
927 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
928 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
929 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
930 },
931 },
932 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800933 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
934 &quot;name&quot;: &quot;A String&quot;, # The alias name.
935 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
936 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800937 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800938 },
939 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
940 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
941 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
942 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
943 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
944 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
945 },
946 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
947 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
948 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
949 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800950 },
951 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
952 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
953 &quot;fileHash&quot;: [ # Collection of file hashes.
954 { # Container message for hash values.
955 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
956 &quot;value&quot;: &quot;A String&quot;, # The hash value.
957 },
958 ],
959 },
960 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800961 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800962 &quot;builtArtifacts&quot;: [ # Output of the build.
963 { # Artifact describes a build product.
964 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
965 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
966 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
967 &quot;A String&quot;,
968 ],
969 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
970 },
971 ],
972 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
973 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800974 },
975 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
976 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800977 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
978 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
979 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800980 &quot;A String&quot;,
981 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800982 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
983 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
984 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800985 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800986 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
987 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
988 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
989 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
990 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
991 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
992 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800993 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800994 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800995 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800996 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800997 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
998 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
999 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1000 {
1001 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1002 },
1003 ],
1004 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1005 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001006 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1007 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1008 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001009 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1010 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1011 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1012 },
1013 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001014 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001015 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001016 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1017 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1018 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1019 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1020 {
1021 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1022 },
1023 ],
1024 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1025 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001026 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001027 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
1028 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001029 }</pre>
1030</div>
1031
1032<div class="method">
1033 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001034 <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. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001035
1036Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001037 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 -07001038 body: object, The request body.
1039 The object takes the form of:
1040
1041{ # Request message for `GetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001042 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1043 &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).
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 }
1046
1047 x__xgafv: string, V1 error format.
1048 Allowed values
1049 1 - v1 error format
1050 2 - v2 error format
1051
1052Returns:
1053 An object of the form:
1054
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 { # 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/).
1056 &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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001058 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001059 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001060 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001061 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001062 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001063 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001064 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 &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`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001067 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001068 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001069 },
1070 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001071 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001072 }</pre>
1073</div>
1074
1075<div class="method">
1076 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1077 <pre>Gets the `Note` attached to the given `Occurrence`.
1078
1079Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001080 name: string, The name of the occurrence in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001081 x__xgafv: string, V1 error format.
1082 Allowed values
1083 1 - v1 error format
1084 2 - v2 error format
1085
1086Returns:
1087 An object of the form:
1088
1089 { # Provides a detailed description of a `Note`.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001090 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1091 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001092 &quot;A String&quot;,
1093 ],
1094 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001095 &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.
1096 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1097 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1098 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1099 &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.
1100 &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. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
1101 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001102 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001103 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
1104 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1105 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
1106 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1107 &quot;A String&quot;,
1108 ],
1109 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1110 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1111 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1112 },
1113 ],
1114 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1115 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
1116 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1117 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1118 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1119 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1120 },
1121 },
1122 &quot;relatedUrl&quot;: [ # URLs associated with this note
1123 { # Metadata for any related URL information
1124 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1125 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1126 },
1127 ],
1128 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1129 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1130 &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.
1131 { # Identifies all occurrences 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
1132 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
1133 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1134 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1135 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1136 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1137 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1138 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1139 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1140 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1141 },
1142 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1143 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1144 },
1145 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
1146 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1147 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1148 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1149 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1150 },
1151 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1152 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1153 &quot;cpeUri&quot;: &quot;A String&quot;, # 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. This field can be used as a filter in list requests.
1154 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
1155 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1156 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1157 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1158 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1159 },
1160 },
1161 ],
1162 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1163 },
1164 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` 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.
1165 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. 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 AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
1166 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1167 },
1168 },
1169 &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.
1170 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1171 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1172 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1173 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1174 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1175 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1176 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
1177 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1178 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1179 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1180 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1181 },
1182 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1183 },
1184 ],
1185 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1186 },
1187 &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.
1188 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1189 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1190 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001191 &quot;A String&quot;,
1192 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001193 &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. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001194 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001195 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001196 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001197 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
1198 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1199 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1200 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1201 &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`
1202 &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).
1203 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001204 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001205 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001206 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1207 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
1208 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001209</div>
1210
1211<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001212 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001213 <pre>Gets a summary of the number and severity of occurrences.
1214
1215Args:
1216 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001217 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001218 x__xgafv: string, V1 error format.
1219 Allowed values
1220 1 - v1 error format
1221 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001222
1223Returns:
1224 An object of the form:
1225
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001226 { # A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.
Bu Sun Kim65020912020-05-20 12:08:20 -07001227 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001228 { # The number of occurrences created for a specific severity.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001229 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001230 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001231 },
1232 ],
1233 }</pre>
1234</div>
1235
1236<div class="method">
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001237 <code class="details" id="list">list(parent, pageToken=None, filter=None, kind=None, name=None, pageSize=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001238 <pre>Lists active `Occurrences` for a given project matching the filters.
1239
1240Args:
1241 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001242 pageToken: string, Token to provide to skip to a particular spot in the list.
1243 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001244 kind: string, The kind of occurrences to filter on.
1245 Allowed values
1246 KIND_UNSPECIFIED - Unknown
1247 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1248 BUILD_DETAILS - The note and occurrence assert build provenance.
1249 IMAGE_BASIS - This represents an image basis relationship.
1250 PACKAGE_MANAGER - This represents a package installed via a package manager.
1251 DEPLOYABLE - The note and occurrence track deployment events.
1252 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1253 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1254 UPGRADE - This represents an available software upgrade.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001255 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001256 pageSize: integer, Number of occurrences to return in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001257 x__xgafv: string, V1 error format.
1258 Allowed values
1259 1 - v1 error format
1260 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001261
1262Returns:
1263 An object of the form:
1264
1265 { # Response including listed active occurrences.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001266 &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.
Bu Sun Kim65020912020-05-20 12:08:20 -07001267 &quot;occurrences&quot;: [ # The occurrences requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001268 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001269 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001270 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001271 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001272 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001273 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1274 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001275 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001276 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1277 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001278 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1279 &quot;A String&quot;,
1280 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001281 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001282 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1283 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1284 { # Layer holds metadata specific to a layer of a Docker image.
1285 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1286 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1287 },
1288 ],
1289 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1290 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1291 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1292 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1293 &quot;A String&quot;,
1294 ],
1295 &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. This field can be used as a filter in list requests.
1296 },
1297 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1298 },
1299 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1300 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1301 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1302 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1303 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1304 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1305 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1306 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1307 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1308 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1309 },
1310 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1311 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1312 },
1313 &quot;severityName&quot;: &quot;A String&quot;,
1314 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1315 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1316 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1317 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1318 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1319 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1320 },
1321 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1322 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1323 },
1324 },
1325 ],
1326 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1327 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1328 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1329 },
1330 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1331 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1332 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1333 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1334 },
1335 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1336 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1337 },
1338 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1339 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1340 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1341 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1342 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1343 },
1344 },
1345 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001346 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001347 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001348 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1349 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1350 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001351 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001352 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1353 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001354 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1355 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001356 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001357 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001358 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001359 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001360 ],
1361 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1362 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001363 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1364 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001365 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1366 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001367 &quot;commands&quot;: [ # Commands requested by the build.
1368 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001369 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1370 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1371 &quot;A String&quot;,
1372 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001373 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1374 &quot;A String&quot;,
1375 ],
1376 &quot;env&quot;: [ # Environment variables set before running this Command.
1377 &quot;A String&quot;,
1378 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001379 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001380 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1381 },
1382 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001383 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
1384 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1385 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1386 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001387 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1388 &quot;a_key&quot;: &quot;A String&quot;,
1389 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001390 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001391 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001392 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001393 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001394 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1395 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001396 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001397 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1398 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001399 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001400 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001401 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001402 },
1403 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001404 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001405 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1406 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1407 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1408 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001409 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1410 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1411 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001412 &quot;labels&quot;: { # Labels with user defined metadata.
1413 &quot;a_key&quot;: &quot;A String&quot;,
1414 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001415 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001416 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1417 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1418 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1419 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1420 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1421 },
1422 },
1423 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001424 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1425 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1426 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1427 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001428 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001429 },
1430 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001431 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
1432 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1433 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1434 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1435 },
1436 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1437 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1438 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1439 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1440 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1441 },
1442 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1443 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1444 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001445 &quot;labels&quot;: { # Labels with user defined metadata.
1446 &quot;a_key&quot;: &quot;A String&quot;,
1447 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001448 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001449 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1450 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1451 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1452 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1453 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1454 },
1455 },
1456 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001457 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1458 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1459 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1460 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001461 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001462 },
1463 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1464 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1465 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1466 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1467 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1468 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1469 },
1470 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1471 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1472 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1473 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001474 },
1475 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
1476 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1477 &quot;fileHash&quot;: [ # Collection of file hashes.
1478 { # Container message for hash values.
1479 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1480 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1481 },
1482 ],
1483 },
1484 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001485 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001486 &quot;builtArtifacts&quot;: [ # Output of the build.
1487 { # Artifact describes a build product.
1488 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1489 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
1490 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1491 &quot;A String&quot;,
1492 ],
1493 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
1494 },
1495 ],
1496 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1497 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001498 },
1499 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
1500 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001501 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
1502 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
1503 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001504 &quot;A String&quot;,
1505 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001506 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1507 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1508 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001509 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001510 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1511 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1512 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1513 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1514 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1515 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1516 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001517 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001518 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001519 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001520 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001521 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1522 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1523 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1524 {
1525 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1526 },
1527 ],
1528 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1529 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001530 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1531 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1532 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001533 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1534 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1535 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1536 },
1537 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001538 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001539 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001540 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1541 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1542 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1543 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1544 {
1545 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1546 },
1547 ],
1548 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1549 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001550 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001551 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
1552 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 },
1554 ],
1555 }</pre>
1556</div>
1557
1558<div class="method">
1559 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1560 <pre>Retrieves the next page of results.
1561
1562Args:
1563 previous_request: The request for the previous page. (required)
1564 previous_response: The response from the request for the previous page. (required)
1565
1566Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001567 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001568 page. Returns None if there are no more items in the collection.
1569 </pre>
1570</div>
1571
1572<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001573 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001574 <pre>Updates an existing occurrence.
1575
1576Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001577 name: string, The name of the occurrence. Should be of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001578 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001579 The object takes the form of:
1580
1581{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001582 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001583 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001584 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001585 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001586 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1587 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001588 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001589 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1590 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001591 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1592 &quot;A String&quot;,
1593 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001594 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001595 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1596 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1597 { # Layer holds metadata specific to a layer of a Docker image.
1598 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1599 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1600 },
1601 ],
1602 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1603 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1604 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1605 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1606 &quot;A String&quot;,
1607 ],
1608 &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. This field can be used as a filter in list requests.
1609 },
1610 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1611 },
1612 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1613 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1614 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1615 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1616 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1617 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1618 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1619 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1620 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1621 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1622 },
1623 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1624 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1625 },
1626 &quot;severityName&quot;: &quot;A String&quot;,
1627 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1628 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1629 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1630 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1631 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1632 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1633 },
1634 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1635 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1636 },
1637 },
1638 ],
1639 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1640 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1641 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1642 },
1643 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1644 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1645 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1646 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1647 },
1648 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1649 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1650 },
1651 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1652 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1653 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1654 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1655 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1656 },
1657 },
1658 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001659 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001660 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001661 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1662 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1663 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001664 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001665 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1666 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001667 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1668 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001669 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001670 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001671 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001672 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001673 ],
1674 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1675 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001676 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1677 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001678 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1679 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001680 &quot;commands&quot;: [ # Commands requested by the build.
1681 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001682 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1683 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1684 &quot;A String&quot;,
1685 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001686 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1687 &quot;A String&quot;,
1688 ],
1689 &quot;env&quot;: [ # Environment variables set before running this Command.
1690 &quot;A String&quot;,
1691 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001692 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001693 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1694 },
1695 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001696 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
1697 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1698 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1699 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001700 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1701 &quot;a_key&quot;: &quot;A String&quot;,
1702 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001703 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001704 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001705 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001706 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001707 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1708 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001709 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001710 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1711 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001712 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001713 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001714 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001715 },
1716 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001717 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001718 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1719 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1720 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1721 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001722 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1723 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1724 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001725 &quot;labels&quot;: { # Labels with user defined metadata.
1726 &quot;a_key&quot;: &quot;A String&quot;,
1727 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001728 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001729 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1730 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1731 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1732 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1733 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1734 },
1735 },
1736 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001737 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1738 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1739 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1740 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001741 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001742 },
1743 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001744 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
1745 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1746 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1747 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1748 },
1749 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1750 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1751 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1752 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1753 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1754 },
1755 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
1756 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1757 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001758 &quot;labels&quot;: { # Labels with user defined metadata.
1759 &quot;a_key&quot;: &quot;A String&quot;,
1760 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001761 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001762 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1763 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1764 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1765 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1766 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1767 },
1768 },
1769 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001770 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1771 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1772 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1773 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001774 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001775 },
1776 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1777 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1778 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1779 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1780 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1781 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1782 },
1783 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1784 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1785 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1786 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001787 },
1788 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
1789 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1790 &quot;fileHash&quot;: [ # Collection of file hashes.
1791 { # Container message for hash values.
1792 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1793 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1794 },
1795 ],
1796 },
1797 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001798 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001799 &quot;builtArtifacts&quot;: [ # Output of the build.
1800 { # Artifact describes a build product.
1801 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1802 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
1803 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1804 &quot;A String&quot;,
1805 ],
1806 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
1807 },
1808 ],
1809 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1810 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001811 },
1812 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
1813 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001814 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
1815 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
1816 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001817 &quot;A String&quot;,
1818 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001819 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1820 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1821 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001822 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001823 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1824 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1825 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1826 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1827 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1828 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1829 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001830 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001831 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001832 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001833 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001834 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1835 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1836 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1837 {
1838 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1839 },
1840 ],
1841 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1842 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001843 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1844 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1845 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001846 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1847 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1848 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1849 },
1850 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001851 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001852 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001853 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1854 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1855 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1856 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1857 {
1858 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1859 },
1860 ],
1861 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1862 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001863 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001864 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
1865 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001866}
1867
1868 updateMask: string, The fields to update.
1869 x__xgafv: string, V1 error format.
1870 Allowed values
1871 1 - v1 error format
1872 2 - v2 error format
1873
1874Returns:
1875 An object of the form:
1876
1877 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001878 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001879 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001880 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001881 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001882 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1883 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001884 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001885 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1886 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001887 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1888 &quot;A String&quot;,
1889 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001890 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001891 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1892 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1893 { # Layer holds metadata specific to a layer of a Docker image.
1894 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1895 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1896 },
1897 ],
1898 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1899 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1900 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1901 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1902 &quot;A String&quot;,
1903 ],
1904 &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. This field can be used as a filter in list requests.
1905 },
1906 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1907 },
1908 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1909 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1910 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1911 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1912 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1913 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1914 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1915 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1916 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1917 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1918 },
1919 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1920 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1921 },
1922 &quot;severityName&quot;: &quot;A String&quot;,
1923 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1924 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1925 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1926 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1927 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1928 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1929 },
1930 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1931 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1932 },
1933 },
1934 ],
1935 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1936 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1937 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1938 },
1939 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1940 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1941 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1942 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1943 },
1944 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1945 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1946 },
1947 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1948 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1949 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
1950 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1951 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1952 },
1953 },
1954 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001955 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001956 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001957 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1958 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1959 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001960 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001961 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1962 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001963 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1964 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001965 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001966 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001967 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001968 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001969 ],
1970 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1971 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001972 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1973 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001974 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1975 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001976 &quot;commands&quot;: [ # Commands requested by the build.
1977 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001978 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1979 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1980 &quot;A String&quot;,
1981 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001982 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1983 &quot;A String&quot;,
1984 ],
1985 &quot;env&quot;: [ # Environment variables set before running this Command.
1986 &quot;A String&quot;,
1987 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001988 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001989 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1990 },
1991 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001992 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
1993 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1994 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1995 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001996 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1997 &quot;a_key&quot;: &quot;A String&quot;,
1998 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001999 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002000 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002001 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002002 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002003 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2004 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002005 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002006 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
2007 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002008 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002009 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002010 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002011 },
2012 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002013 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002014 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2015 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2016 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2017 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002018 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
2019 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2020 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002021 &quot;labels&quot;: { # Labels with user defined metadata.
2022 &quot;a_key&quot;: &quot;A String&quot;,
2023 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002024 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002025 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2026 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2027 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2028 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2029 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2030 },
2031 },
2032 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002033 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2034 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2035 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2036 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002037 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002038 },
2039 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002040 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
2041 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2042 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2043 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2044 },
2045 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2046 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2047 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2048 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2049 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2050 },
2051 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
2052 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2053 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002054 &quot;labels&quot;: { # Labels with user defined metadata.
2055 &quot;a_key&quot;: &quot;A String&quot;,
2056 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002057 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002058 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2059 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2060 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
2061 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2062 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2063 },
2064 },
2065 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002066 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2067 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2068 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2069 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002070 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002071 },
2072 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
2073 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2074 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2075 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2076 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2077 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2078 },
2079 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
2080 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2081 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2082 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002083 },
2084 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
2085 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
2086 &quot;fileHash&quot;: [ # Collection of file hashes.
2087 { # Container message for hash values.
2088 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2089 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2090 },
2091 ],
2092 },
2093 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002094 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002095 &quot;builtArtifacts&quot;: [ # Output of the build.
2096 { # Artifact describes a build product.
2097 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2098 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
2099 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
2100 &quot;A String&quot;,
2101 ],
2102 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
2103 },
2104 ],
2105 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2106 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002107 },
2108 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
2109 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002110 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
2111 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
2112 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002113 &quot;A String&quot;,
2114 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002115 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2116 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2117 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002118 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002119 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2120 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
2121 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2122 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2123 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2124 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2125 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002126 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002127 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002128 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002129 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002130 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
2131 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2132 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2133 {
2134 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2135 },
2136 ],
2137 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2138 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002139 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
2140 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2141 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002142 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
2143 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
2144 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2145 },
2146 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002147 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002148 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002149 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2150 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
2151 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2152 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2153 {
2154 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2155 },
2156 ],
2157 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2158 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002159 },
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002160 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
2161 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002162 }</pre>
2163</div>
2164
2165<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002166 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002167 <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. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002168
2169Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002170 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 -07002171 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002172 The object takes the form of:
2173
2174{ # Request message for `SetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002175 &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.
2176 &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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002177 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002178 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002179 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002180 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002181 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002182 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002183 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002184 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002185 &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`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002186 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002187 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002188 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002189 },
2190 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002191 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002192 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002193 }
2194
2195 x__xgafv: string, V1 error format.
2196 Allowed values
2197 1 - v1 error format
2198 2 - v2 error format
2199
2200Returns:
2201 An object of the form:
2202
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002203 { # 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/).
2204 &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).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002205 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002206 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002207 &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).
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002208 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002209 &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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002210 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002211 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002212 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002213 &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`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002214 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002215 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002216 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002217 },
2218 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002219 &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.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002220 }</pre>
2221</div>
2222
2223<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002224 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002225 <pre>Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, &quot;storage.objects.list&quot; on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002226
2227Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002228 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 -07002229 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002230 The object takes the form of:
2231
2232{ # Request message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002233 &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).
Bu Sun Kim65020912020-05-20 12:08:20 -07002234 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002235 ],
2236 }
2237
2238 x__xgafv: string, V1 error format.
2239 Allowed values
2240 1 - v1 error format
2241 2 - v2 error format
2242
2243Returns:
2244 An object of the form:
2245
2246 { # Response message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002247 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002248 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002249 ],
2250 }</pre>
2251</div>
2252
2253</body></html>