blob: 5dab89e907f8337765921051342425f560d0826b [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 Botcc94ec82021-01-15 07:10:04 -080099 <code><a href="#list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=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 Botcc94ec82021-01-15 07:10:04 -0800129 &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.
130 &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.
131 &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).
132 &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`.
133 &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.
134 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800135 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
137 &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 Botcc94ec82021-01-15 07:10:04 -0800138 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
139 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800140 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800141 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800142 &quot;builtArtifacts&quot;: [ # Output of the build.
143 { # Artifact describes a build product.
144 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800145 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800146 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800147 &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.
148 &quot;A String&quot;,
149 ],
150 },
151 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800152 &quot;commands&quot;: [ # Commands requested by the build.
153 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
155 &quot;A String&quot;,
156 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800157 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800158 &quot;env&quot;: [ # Environment variables set before running this Command.
159 &quot;A String&quot;,
160 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800161 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
162 &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`.
163 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
164 &quot;A String&quot;,
165 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800166 },
167 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800168 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800169 &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.
170 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
171 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
172 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
173 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
174 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
175 &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.
176 { # 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.
177 &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.
178 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
179 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
180 &quot;name&quot;: &quot;A String&quot;, # The alias name.
181 },
182 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
183 &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.
184 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
185 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
186 },
187 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
188 },
189 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
190 },
191 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
192 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
193 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
194 &quot;name&quot;: &quot;A String&quot;, # The alias name.
195 },
196 &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.
197 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
198 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
199 },
200 &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).
201 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
202 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
203 },
204 &quot;labels&quot;: { # Labels with user defined metadata.
205 &quot;a_key&quot;: &quot;A String&quot;,
206 },
207 },
208 ],
209 &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.
210 &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)).
211 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
212 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
213 },
214 &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.
215 &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.
216 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
217 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
218 &quot;name&quot;: &quot;A String&quot;, # The alias name.
219 },
220 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
221 &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.
222 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
223 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
224 },
225 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
226 },
227 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
228 },
229 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
230 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
231 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
232 &quot;name&quot;: &quot;A String&quot;, # The alias name.
233 },
234 &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.
235 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
236 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
237 },
238 &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).
239 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
240 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
241 },
242 &quot;labels&quot;: { # Labels with user defined metadata.
243 &quot;a_key&quot;: &quot;A String&quot;,
244 },
245 },
246 &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.
247 &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.
248 &quot;fileHash&quot;: [ # Collection of file hashes.
249 { # Container message for hash values.
250 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
251 &quot;value&quot;: &quot;A String&quot;, # The hash value.
252 },
253 ],
254 },
255 },
256 &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.
257 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
258 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
259 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
260 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
261 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
262 },
263 &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.
264 &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)).
265 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
266 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
267 },
268 },
269 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
270 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800271 },
272 &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.
273 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700274 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
275 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
276 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
277 { # Details about files that caused a compliance check to fail.
278 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
279 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
280 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
281 },
282 ],
283 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800284 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800285 &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 Botcc94ec82021-01-15 07:10:04 -0800286 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
287 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
288 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
289 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800290 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
291 &quot;A String&quot;,
292 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800293 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800294 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800295 },
296 &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.
297 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
298 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
299 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800300 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800301 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
302 &quot;A String&quot;,
303 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800304 &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 Bot0bf565c2020-12-09 08:56:03 -0800305 },
306 &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.
307 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800308 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800309 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800310 },
311 ],
312 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800313 &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 -0800314 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800315 &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.
316 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
317 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
318 {
319 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
320 },
321 ],
322 &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.
323 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800324 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800325 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
326 &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.
327 &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.
328 &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.
329 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
330 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
331 {
332 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
333 },
334 ],
335 &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.
336 },
337 &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.
338 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
339 },
340 &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}`.
341 &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`.
342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
343 },
344 },
345 },
346 &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.
347 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
348 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
349 &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.
350 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
351 &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.
352 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800353 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800354 &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.
355 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
356 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
357 },
358 },
359 ],
360 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
361 },
362 &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.
363 &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;
364 &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.
365 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
366 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
367 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
368 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
369 &quot;value&quot;: &quot;A String&quot;, # The hash value.
370 },
371 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
372 &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.
373 },
374 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700375 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
376 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
377 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
378 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
379 &quot;A String&quot;,
380 ],
381 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
382 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
383 &quot;A String&quot;,
384 ],
385 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
386 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
387 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
388 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
389 },
390 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
391 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
392 &quot;A String&quot;,
393 ],
394 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
395 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
396 &quot;A String&quot;,
397 ],
398 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
399 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
400 &quot;A String&quot;,
401 ],
402 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
403 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
404 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
405 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
406 },
407 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
408 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
409 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
410 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
411 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
412 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
413 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
414 },
415 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
416 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
417 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
418 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
419 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
420 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800421 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
422 &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.
423 &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.
424 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
425 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
426 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
427 &quot;A String&quot;,
428 ],
429 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
430 },
431 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
432 &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.
433 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800434 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800435 &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.
436 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
437 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
438 },
439 },
440 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
441 &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.
442 &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.
443 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
444 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
445 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
446 &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.
447 &quot;package&quot;: &quot;A String&quot;, # The package being described.
448 &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.
449 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800450 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800451 &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.
452 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
453 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
454 },
455 },
456 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
457 &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.
458 &quot;package&quot;: &quot;A String&quot;, # The package being described.
459 &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.
460 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800461 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800462 &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.
463 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
464 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
465 },
466 },
467 &quot;severityName&quot;: &quot;A String&quot;,
468 },
469 ],
470 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
471 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800472 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700473}
474
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700475 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 -0700476 x__xgafv: string, V1 error format.
477 Allowed values
478 1 - v1 error format
479 2 - v2 error format
480
481Returns:
482 An object of the form:
483
484 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800485 &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.
486 &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.
487 &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).
488 &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`.
489 &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.
490 },
491 },
492 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
493 &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
494 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
495 &quot;a_key&quot;: &quot;A String&quot;,
496 },
497 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
498 &quot;builtArtifacts&quot;: [ # Output of the build.
499 { # Artifact describes a build product.
500 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
501 &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
502 &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.
503 &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.
504 &quot;A String&quot;,
505 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800506 },
507 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800508 &quot;commands&quot;: [ # Commands requested by the build.
509 { # Command describes a step performed as part of the build pipeline.
510 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
511 &quot;A String&quot;,
512 ],
513 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
514 &quot;env&quot;: [ # Environment variables set before running this Command.
515 &quot;A String&quot;,
516 ],
517 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
518 &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`.
519 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
520 &quot;A String&quot;,
521 ],
522 },
523 ],
524 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
525 &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.
526 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
527 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
528 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
529 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
530 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
531 &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.
532 { # 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 Bot0bf565c2020-12-09 08:56:03 -0800533 &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 Botcc94ec82021-01-15 07:10:04 -0800534 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
535 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
536 &quot;name&quot;: &quot;A String&quot;, # The alias name.
537 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800538 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800539 &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.
540 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
541 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
542 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800543 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800544 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800546 },
547 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800548 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
549 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
550 &quot;name&quot;: &quot;A String&quot;, # The alias name.
551 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800552 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800553 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
554 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
555 },
556 &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).
557 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
558 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800559 },
560 &quot;labels&quot;: { # Labels with user defined metadata.
561 &quot;a_key&quot;: &quot;A String&quot;,
562 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800563 },
564 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800565 &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.
566 &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)).
567 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
568 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800569 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800570 &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.
571 &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.
572 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
573 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
574 &quot;name&quot;: &quot;A String&quot;, # The alias name.
575 },
576 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
577 &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.
578 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
579 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
580 },
581 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
582 },
583 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
584 },
585 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
586 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
587 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
588 &quot;name&quot;: &quot;A String&quot;, # The alias name.
589 },
590 &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.
591 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
592 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
593 },
594 &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).
595 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
596 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
597 },
598 &quot;labels&quot;: { # Labels with user defined metadata.
599 &quot;a_key&quot;: &quot;A String&quot;,
600 },
601 },
602 &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.
603 &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.
604 &quot;fileHash&quot;: [ # Collection of file hashes.
605 { # Container message for hash values.
606 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
607 &quot;value&quot;: &quot;A String&quot;, # The hash value.
608 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800609 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800610 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800611 },
612 &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.
613 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
614 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
615 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
616 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
617 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
618 },
619 &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.
620 &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)).
621 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
622 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
623 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800624 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800625 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
626 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800627 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800628 &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.
629 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700630 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
631 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
632 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
633 { # Details about files that caused a compliance check to fail.
634 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
635 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
636 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
637 },
638 ],
639 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800640 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
641 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
642 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
643 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
644 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
645 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
646 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
647 &quot;A String&quot;,
648 ],
649 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
650 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
651 },
652 &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.
653 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
654 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
655 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
656 &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.
657 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800658 &quot;A String&quot;,
659 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800660 &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 Bot0bf565c2020-12-09 08:56:03 -0800661 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800662 &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.
663 { # Layer holds metadata specific to a layer of a Docker image.
664 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
665 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800666 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800667 ],
668 },
669 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
670 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
671 &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.
672 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
673 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
674 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800675 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
676 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800677 ],
678 &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.
679 },
680 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
681 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
682 &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.
683 &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.
684 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800685 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
686 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
687 {
688 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
689 },
690 ],
691 &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.
692 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800693 &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.
694 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
695 },
696 &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}`.
697 &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`.
698 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
699 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800700 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800701 },
702 &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.
703 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
704 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
705 &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.
706 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
707 &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.
708 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800709 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800710 &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.
711 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
712 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
713 },
714 },
715 ],
716 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
717 },
718 &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.
719 &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;
720 &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.
721 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
722 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
723 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
724 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
725 &quot;value&quot;: &quot;A String&quot;, # The hash value.
726 },
727 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
728 &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.
729 },
730 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700731 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
732 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
733 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
734 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
735 &quot;A String&quot;,
736 ],
737 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
738 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
739 &quot;A String&quot;,
740 ],
741 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
742 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
743 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
744 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
745 },
746 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
747 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
748 &quot;A String&quot;,
749 ],
750 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
751 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
752 &quot;A String&quot;,
753 ],
754 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
755 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
756 &quot;A String&quot;,
757 ],
758 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
759 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
760 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
761 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
762 },
763 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
764 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
765 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
766 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
767 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
768 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
769 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
770 },
771 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
772 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
773 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
774 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
775 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
776 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800777 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
778 &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.
779 &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.
780 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
781 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
782 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
783 &quot;A String&quot;,
784 ],
785 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
786 },
787 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
788 &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.
789 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800790 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800791 &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.
792 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
793 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
794 },
795 },
796 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
797 &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.
798 &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.
799 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
800 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
801 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
802 &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.
803 &quot;package&quot;: &quot;A String&quot;, # The package being described.
804 &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.
805 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800806 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800807 &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.
808 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
809 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
810 },
811 },
812 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
813 &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.
814 &quot;package&quot;: &quot;A String&quot;, # The package being described.
815 &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.
816 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800817 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800818 &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.
819 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
820 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
821 },
822 },
823 &quot;severityName&quot;: &quot;A String&quot;,
824 },
825 ],
826 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
827 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
828 },
829}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700830</div>
831
832<div class="method">
833 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700834 <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 -0700835
836Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700837 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 -0700838 x__xgafv: string, V1 error format.
839 Allowed values
840 1 - v1 error format
841 2 - v2 error format
842
843Returns:
844 An object of the form:
845
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700846 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800847}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848</div>
849
850<div class="method">
851 <code class="details" id="get">get(name, x__xgafv=None)</code>
852 <pre>Returns the requested `Occurrence`.
853
854Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700855 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 -0700856 x__xgafv: string, V1 error format.
857 Allowed values
858 1 - v1 error format
859 2 - v2 error format
860
861Returns:
862 An object of the form:
863
864 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800865 &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.
866 &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.
867 &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).
868 &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`.
869 &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.
870 },
871 },
872 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
873 &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
874 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
875 &quot;a_key&quot;: &quot;A String&quot;,
876 },
877 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
878 &quot;builtArtifacts&quot;: [ # Output of the build.
879 { # Artifact describes a build product.
880 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
881 &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
882 &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.
883 &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.
884 &quot;A String&quot;,
885 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800886 },
887 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800888 &quot;commands&quot;: [ # Commands requested by the build.
889 { # Command describes a step performed as part of the build pipeline.
890 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
891 &quot;A String&quot;,
892 ],
893 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
894 &quot;env&quot;: [ # Environment variables set before running this Command.
895 &quot;A String&quot;,
896 ],
897 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
898 &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`.
899 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
900 &quot;A String&quot;,
901 ],
902 },
903 ],
904 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
905 &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.
906 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
907 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
908 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
909 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
910 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
911 &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.
912 { # 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 Bot0bf565c2020-12-09 08:56:03 -0800913 &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 Botcc94ec82021-01-15 07:10:04 -0800914 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
915 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
916 &quot;name&quot;: &quot;A String&quot;, # The alias name.
917 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800918 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800919 &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.
920 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
921 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
922 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800923 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800924 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800925 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800926 },
927 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800928 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
929 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
930 &quot;name&quot;: &quot;A String&quot;, # The alias name.
931 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800932 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800933 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
934 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
935 },
936 &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).
937 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
938 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800939 },
940 &quot;labels&quot;: { # Labels with user defined metadata.
941 &quot;a_key&quot;: &quot;A String&quot;,
942 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800943 },
944 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800945 &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.
946 &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)).
947 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
948 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800949 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800950 &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.
951 &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.
952 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
953 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
954 &quot;name&quot;: &quot;A String&quot;, # The alias name.
955 },
956 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
957 &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.
958 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
959 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
960 },
961 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
962 },
963 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
964 },
965 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
966 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
967 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
968 &quot;name&quot;: &quot;A String&quot;, # The alias name.
969 },
970 &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.
971 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
972 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
973 },
974 &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).
975 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
976 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
977 },
978 &quot;labels&quot;: { # Labels with user defined metadata.
979 &quot;a_key&quot;: &quot;A String&quot;,
980 },
981 },
982 &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.
983 &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.
984 &quot;fileHash&quot;: [ # Collection of file hashes.
985 { # Container message for hash values.
986 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
987 &quot;value&quot;: &quot;A String&quot;, # The hash value.
988 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800989 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800990 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800991 },
992 &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.
993 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
994 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
995 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
996 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
997 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
998 },
999 &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.
1000 &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)).
1001 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1002 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1003 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001004 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001005 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1006 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001007 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001008 &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.
1009 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001010 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
1011 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1012 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1013 { # Details about files that caused a compliance check to fail.
1014 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1015 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
1016 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1017 },
1018 ],
1019 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001020 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1021 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1022 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1023 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1024 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1025 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1026 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1027 &quot;A String&quot;,
1028 ],
1029 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1030 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1031 },
1032 &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.
1033 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1034 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1035 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1036 &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.
1037 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001038 &quot;A String&quot;,
1039 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001040 &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 Bot0bf565c2020-12-09 08:56:03 -08001041 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001042 &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.
1043 { # Layer holds metadata specific to a layer of a Docker image.
1044 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1045 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001046 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001047 ],
1048 },
1049 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1050 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1051 &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.
1052 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1053 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1054 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001055 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1056 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001057 ],
1058 &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.
1059 },
1060 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1061 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1062 &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.
1063 &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.
1064 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001065 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1066 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1067 {
1068 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1069 },
1070 ],
1071 &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.
1072 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001073 &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.
1074 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1075 },
1076 &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}`.
1077 &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`.
1078 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1079 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001080 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001081 },
1082 &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.
1083 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1084 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1085 &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.
1086 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1087 &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.
1088 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001089 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001090 &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.
1091 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1092 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1093 },
1094 },
1095 ],
1096 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1097 },
1098 &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.
1099 &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;
1100 &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.
1101 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1102 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1103 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1104 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1105 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1106 },
1107 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1108 &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.
1109 },
1110 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001111 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1112 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1113 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1114 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1115 &quot;A String&quot;,
1116 ],
1117 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1118 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1119 &quot;A String&quot;,
1120 ],
1121 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1122 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1123 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1124 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1125 },
1126 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1127 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1128 &quot;A String&quot;,
1129 ],
1130 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1131 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1132 &quot;A String&quot;,
1133 ],
1134 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1135 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1136 &quot;A String&quot;,
1137 ],
1138 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1139 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1140 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1141 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1142 },
1143 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1144 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1145 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1146 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1147 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1148 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1149 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1150 },
1151 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
1152 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1153 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1154 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1155 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1156 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001157 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1158 &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.
1159 &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.
1160 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1161 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1162 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1163 &quot;A String&quot;,
1164 ],
1165 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1166 },
1167 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1168 &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.
1169 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001170 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001171 &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.
1172 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1173 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1174 },
1175 },
1176 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1177 &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.
1178 &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.
1179 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1180 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1181 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1182 &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.
1183 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1184 &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.
1185 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001186 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001187 &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.
1188 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1189 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1190 },
1191 },
1192 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1193 &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.
1194 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1195 &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.
1196 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001197 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001198 &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.
1199 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1200 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1201 },
1202 },
1203 &quot;severityName&quot;: &quot;A String&quot;,
1204 },
1205 ],
1206 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1207 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1208 },
1209}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001210</div>
1211
1212<div class="method">
1213 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001214 <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 -07001215
1216Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001217 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 -07001218 body: object, The request body.
1219 The object takes the form of:
1220
1221{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001222 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1223 &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).
1224 },
1225}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001226
1227 x__xgafv: string, V1 error format.
1228 Allowed values
1229 1 - v1 error format
1230 2 - v2 error format
1231
1232Returns:
1233 An object of the form:
1234
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001235 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001236 &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.
1237 { # Associates `members` with a `role`.
1238 &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).
1239 &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.
1240 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1241 &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.
1242 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001243 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001244 &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`.
1245 &quot;A String&quot;,
1246 ],
1247 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1248 },
1249 ],
1250 &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.
1251 &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).
1252}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001253</div>
1254
1255<div class="method">
1256 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1257 <pre>Gets the `Note` attached to the given `Occurrence`.
1258
1259Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001260 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 -07001261 x__xgafv: string, V1 error format.
1262 Allowed values
1263 1 - v1 error format
1264 2 - v2 error format
1265
1266Returns:
1267 An object of the form:
1268
1269 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001270 &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.
1271 &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.
1272 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1273 },
1274 },
1275 &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.
1276 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1277 &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.
1278 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1279 &quot;A String&quot;,
1280 ],
1281 &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.
1282 },
1283 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1284 },
1285 &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.
1286 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1287 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1288 &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).
1289 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1290 &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`
1291 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1292 },
1293 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001294 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1295 &quot;cisBenchmark&quot;: { # A compliance check that is a CIS benchmark. # Right now we only have one compliance type, but we may add additional types in the future.
1296 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1297 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1298 },
1299 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1300 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1301 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1302 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1303 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1304 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1305 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1306 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1307 &quot;version&quot;: &quot;A String&quot;, # The version of the benchmark. This is set to the version of the OS-specific CIS document the benchmark is defined in.
1308 },
1309 ],
1310 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001311 &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.
1312 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1313 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1314 &quot;A String&quot;,
1315 ],
1316 },
1317 &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.
1318 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1319 },
1320 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1321 &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.
1322 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1323 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1324 &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.
1325 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1326 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1327 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1328 &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.
1329 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1330 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001331 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001332 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001333 &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 Botcc94ec82021-01-15 07:10:04 -08001334 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001335 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1336 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001337 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1338 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001339 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001340 ],
1341 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1342 },
1343 &quot;relatedUrl&quot;: [ # URLs associated with this note
1344 { # Metadata for any related URL information
1345 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1346 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1347 },
1348 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001349 &quot;sbom&quot;: { # DocumentNote represents an SPDX Document Creation Infromation section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # A note describing a software bill of materials.
1350 &quot;dataLicence&quot;: &quot;A String&quot;, # Compliance with the SPDX specification includes populating the SPDX fields therein with data related to such fields (&quot;SPDX-Metadata&quot;)
1351 &quot;spdxVersion&quot;: &quot;A String&quot;, # Provide a reference number that can be used to understand how to parse and interpret the rest of the file
1352 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001353 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001354 &quot;spdxFile&quot;: { # FileNote represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # A note describing an SPDX File.
1355 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1356 &quot;A String&quot;,
1357 ],
1358 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1359 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1360 },
1361 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
1362 &quot;analyzed&quot;: True or False, # Indicates whether the file content of this package has been available for or subjected to analysis when creating the SPDX document
1363 &quot;attribution&quot;: &quot;A String&quot;, # A place for the SPDX data creator to record, at the package level, acknowledgements that may be needed to be communicated in some contexts
1364 &quot;checksum&quot;: &quot;A String&quot;, # Provide an independently reproducible mechanism that permits unique identification of a specific package that correlates to the data in this SPDX file
1365 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1366 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1367 &quot;downloadLocation&quot;: &quot;A String&quot;, # This section identifies the download Universal Resource Locator (URL), or a specific location within a version control system (VCS) for the package at the time that the SPDX file was created
1368 &quot;externalRefs&quot;: [ # ExternalRef
1369 { # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
1370 &quot;category&quot;: &quot;A String&quot;, # An External Reference allows a Package to reference an external source of additional information, metadata, enumerations, asset identifiers, or downloadable content believed to be relevant to the Package
1371 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1372 &quot;locator&quot;: &quot;A String&quot;, # The unique string with no spaces necessary to access the package-specific information, metadata, or content within the target location
1373 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1374 },
1375 ],
1376 &quot;filesLicenseInfo&quot;: [ # Contain the license the SPDX file creator has concluded as governing the This field is to contain a list of all licenses found in the package. The relationship between licenses (i.e., conjunctive, disjunctive) is not specified in this field – it is simply a listing of all licenses found
1377 &quot;A String&quot;,
1378 ],
1379 &quot;homePage&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
1380 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1381 &quot;originator&quot;: &quot;A String&quot;, # If the package identified in the SPDX file originated from a different person or organization than identified as Package Supplier, this field identifies from where or whom the package originally came
1382 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1383 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1384 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1385 &quot;verificationCode&quot;: &quot;A String&quot;, # This field provides an independently reproducible mechanism identifying specific contents of a package based on the actual files (except the SPDX file itself, if it is included in the package) that make up each package and that correlates to the data in this SPDX file
1386 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1387 },
1388 &quot;spdxRelationship&quot;: { # RelationshipNote represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # A note describing a relationship between SPDX elements.
1389 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001390 &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.
1391 &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.
1392 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1393 { # 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.
1394 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1395 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1396 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001397 &quot;A String&quot;,
1398 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001399 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001400 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001401 ],
1402 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1403 &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.
1404 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001405 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001406 &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.
1407 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1408 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1409 },
1410 },
1411 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1412 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1413 &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.
1414 { # 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
1415 &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.
1416 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1417 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1418 &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.
1419 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1420 &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.
1421 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001422 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001423 &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.
1424 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1425 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001426 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001427 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001428 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1429 &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.
1430 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001431 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001432 &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.
1433 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1434 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1435 },
1436 &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.
1437 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001438 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001439 &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.
1440 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1441 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1442 },
1443 &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.
1444 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1445 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001446 &quot;source&quot;: &quot;A String&quot;, # The source from which the information in this Detail was obtained.
yoshi-code-bot3dd15272021-04-21 15:07:48 -07001447 &quot;vendor&quot;: &quot;A String&quot;, # The vendor of the product. e.g. &quot;google&quot;
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001448 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001449 ],
1450 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1451 },
1452}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453</div>
1454
1455<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001456 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001457 <pre>Gets a summary of the number and severity of occurrences.
1458
1459Args:
1460 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001461 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001462 x__xgafv: string, V1 error format.
1463 Allowed values
1464 1 - v1 error format
1465 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001466
1467Returns:
1468 An object of the form:
1469
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001470 { # 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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001471 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
1472 { # The number of occurrences created for a specific severity.
1473 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
1474 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
1475 },
1476 ],
1477}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001478</div>
1479
1480<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001481 <code class="details" id="list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001482 <pre>Lists active `Occurrences` for a given project matching the filters.
1483
1484Args:
1485 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001486 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001487 kind: string, The kind of occurrences to filter on.
1488 Allowed values
1489 KIND_UNSPECIFIED - Unknown
1490 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1491 BUILD_DETAILS - The note and occurrence assert build provenance.
1492 IMAGE_BASIS - This represents an image basis relationship.
1493 PACKAGE_MANAGER - This represents a package installed via a package manager.
1494 DEPLOYABLE - The note and occurrence track deployment events.
1495 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1496 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1497 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001498 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001499 SBOM - This represents a software bill of materials.
1500 SPDX_PACKAGE - This represents an SPDX Package.
1501 SPDX_FILE - This represents an SPDX File.
1502 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001503 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
1504 pageSize: integer, Number of occurrences to return in the list.
1505 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001506 x__xgafv: string, V1 error format.
1507 Allowed values
1508 1 - v1 error format
1509 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001510
1511Returns:
1512 An object of the form:
1513
1514 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001515 &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.
1516 &quot;occurrences&quot;: [ # The occurrences requested.
1517 { # `Occurrence` includes information about analysis occurrences for an image.
1518 &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.
1519 &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.
1520 &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).
1521 &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`.
1522 &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.
1523 },
1524 },
1525 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1526 &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
1527 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1528 &quot;a_key&quot;: &quot;A String&quot;,
1529 },
1530 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1531 &quot;builtArtifacts&quot;: [ # Output of the build.
1532 { # Artifact describes a build product.
1533 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1534 &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
1535 &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.
1536 &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.
1537 &quot;A String&quot;,
1538 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001539 },
1540 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001541 &quot;commands&quot;: [ # Commands requested by the build.
1542 { # Command describes a step performed as part of the build pipeline.
1543 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1544 &quot;A String&quot;,
1545 ],
1546 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1547 &quot;env&quot;: [ # Environment variables set before running this Command.
1548 &quot;A String&quot;,
1549 ],
1550 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1551 &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`.
1552 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1553 &quot;A String&quot;,
1554 ],
1555 },
1556 ],
1557 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1558 &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.
1559 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1560 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1561 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1562 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1563 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1564 &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.
1565 { # 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 Bot0bf565c2020-12-09 08:56:03 -08001566 &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 Botcc94ec82021-01-15 07:10:04 -08001567 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1568 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1569 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1570 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001571 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001572 &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.
1573 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1574 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1575 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001576 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001577 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001578 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001579 },
1580 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001581 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1582 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1583 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1584 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001585 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001586 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1587 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1588 },
1589 &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).
1590 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1591 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001592 },
1593 &quot;labels&quot;: { # Labels with user defined metadata.
1594 &quot;a_key&quot;: &quot;A String&quot;,
1595 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001596 },
1597 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001598 &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.
1599 &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)).
1600 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1601 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001602 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001603 &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.
1604 &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.
1605 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1606 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1607 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1608 },
1609 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1610 &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.
1611 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1612 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1613 },
1614 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1615 },
1616 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1617 },
1618 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1619 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1620 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1621 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1622 },
1623 &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.
1624 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1625 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1626 },
1627 &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).
1628 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1629 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1630 },
1631 &quot;labels&quot;: { # Labels with user defined metadata.
1632 &quot;a_key&quot;: &quot;A String&quot;,
1633 },
1634 },
1635 &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.
1636 &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.
1637 &quot;fileHash&quot;: [ # Collection of file hashes.
1638 { # Container message for hash values.
1639 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1640 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1641 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001642 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001643 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001644 },
1645 &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.
1646 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1647 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1648 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1649 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1650 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1651 },
1652 &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.
1653 &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)).
1654 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1655 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1656 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001657 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001658 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1659 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001660 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001661 &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.
1662 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001663 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
1664 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1665 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1666 { # Details about files that caused a compliance check to fail.
1667 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1668 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
1669 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1670 },
1671 ],
1672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001673 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1674 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1675 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1676 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1677 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1678 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1679 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1680 &quot;A String&quot;,
1681 ],
1682 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1683 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1684 },
1685 &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.
1686 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1687 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1688 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1689 &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.
1690 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001691 &quot;A String&quot;,
1692 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001693 &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 Bot0bf565c2020-12-09 08:56:03 -08001694 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001695 &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.
1696 { # Layer holds metadata specific to a layer of a Docker image.
1697 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1698 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001699 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001700 ],
1701 },
1702 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1703 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1704 &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.
1705 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1706 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1707 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001708 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1709 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001710 ],
1711 &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.
1712 },
1713 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1714 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1715 &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.
1716 &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.
1717 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001718 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1719 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1720 {
1721 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1722 },
1723 ],
1724 &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.
1725 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001726 &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.
1727 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1728 },
1729 &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}`.
1730 &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`.
1731 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1732 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001733 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001734 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001735 &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.
1736 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1737 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1738 &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.
1739 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1740 &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.
1741 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001742 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001743 &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.
1744 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1745 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1746 },
1747 },
1748 ],
1749 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1750 },
1751 &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.
1752 &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;
1753 &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.
1754 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1755 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1756 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1757 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1758 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1759 },
1760 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1761 &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.
1762 },
1763 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001764 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
1765 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
1766 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
1767 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
1768 &quot;A String&quot;,
1769 ],
1770 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
1771 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1772 &quot;A String&quot;,
1773 ],
1774 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
1775 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
1776 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
1777 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1778 },
1779 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1780 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
1781 &quot;A String&quot;,
1782 ],
1783 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
1784 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1785 &quot;A String&quot;,
1786 ],
1787 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1788 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1789 &quot;A String&quot;,
1790 ],
1791 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1792 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1793 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1794 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
1795 },
1796 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1797 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1798 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
1799 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1800 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1801 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1802 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
1803 },
1804 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
1805 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1806 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1807 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
1808 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1809 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001810 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1811 &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.
1812 &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.
1813 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1814 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1815 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1816 &quot;A String&quot;,
1817 ],
1818 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1819 },
1820 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1821 &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.
1822 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001823 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001824 &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.
1825 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1826 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1827 },
1828 },
1829 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1830 &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.
1831 &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.
1832 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1833 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1834 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1835 &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.
1836 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1837 &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.
1838 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001839 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001840 &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.
1841 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1842 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1843 },
1844 },
1845 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1846 &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.
1847 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1848 &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.
1849 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001850 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001851 &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.
1852 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1853 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1854 },
1855 },
1856 &quot;severityName&quot;: &quot;A String&quot;,
1857 },
1858 ],
1859 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1860 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1861 },
1862 },
1863 ],
1864}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001865</div>
1866
1867<div class="method">
1868 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1869 <pre>Retrieves the next page of results.
1870
1871Args:
1872 previous_request: The request for the previous page. (required)
1873 previous_response: The response from the request for the previous page. (required)
1874
1875Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001876 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001877 page. Returns None if there are no more items in the collection.
1878 </pre>
1879</div>
1880
1881<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001882 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001883 <pre>Updates an existing occurrence.
1884
1885Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001886 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 -07001887 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001888 The object takes the form of:
1889
1890{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001891 &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.
1892 &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.
1893 &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).
1894 &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`.
1895 &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.
1896 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001897 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001898 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1899 &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 Botcc94ec82021-01-15 07:10:04 -08001900 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1901 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001902 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001903 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001904 &quot;builtArtifacts&quot;: [ # Output of the build.
1905 { # Artifact describes a build product.
1906 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001907 &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
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001908 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001909 &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.
1910 &quot;A String&quot;,
1911 ],
1912 },
1913 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001914 &quot;commands&quot;: [ # Commands requested by the build.
1915 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001916 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1917 &quot;A String&quot;,
1918 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001919 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001920 &quot;env&quot;: [ # Environment variables set before running this Command.
1921 &quot;A String&quot;,
1922 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001923 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1924 &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`.
1925 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1926 &quot;A String&quot;,
1927 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001928 },
1929 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001930 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001931 &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.
1932 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1933 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1934 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1935 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1936 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1937 &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.
1938 { # 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.
1939 &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.
1940 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1941 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1942 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1943 },
1944 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1945 &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.
1946 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1947 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1948 },
1949 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1950 },
1951 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1952 },
1953 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1954 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1955 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1956 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1957 },
1958 &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.
1959 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1960 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1961 },
1962 &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).
1963 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1964 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1965 },
1966 &quot;labels&quot;: { # Labels with user defined metadata.
1967 &quot;a_key&quot;: &quot;A String&quot;,
1968 },
1969 },
1970 ],
1971 &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.
1972 &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)).
1973 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1974 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1975 },
1976 &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.
1977 &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.
1978 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1979 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1980 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1981 },
1982 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1983 &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.
1984 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1985 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1986 },
1987 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1988 },
1989 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1990 },
1991 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1992 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1993 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1994 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1995 },
1996 &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.
1997 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1998 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1999 },
2000 &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).
2001 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2002 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2003 },
2004 &quot;labels&quot;: { # Labels with user defined metadata.
2005 &quot;a_key&quot;: &quot;A String&quot;,
2006 },
2007 },
2008 &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.
2009 &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.
2010 &quot;fileHash&quot;: [ # Collection of file hashes.
2011 { # Container message for hash values.
2012 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2013 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2014 },
2015 ],
2016 },
2017 },
2018 &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.
2019 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2020 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2021 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2022 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2023 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2024 },
2025 &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.
2026 &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)).
2027 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2028 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2029 },
2030 },
2031 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2032 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002033 },
2034 &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.
2035 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002036 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
2037 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2038 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2039 { # Details about files that caused a compliance check to fail.
2040 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2041 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
2042 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2043 },
2044 ],
2045 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002046 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002047 &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 Botcc94ec82021-01-15 07:10:04 -08002048 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2049 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2050 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2051 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002052 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2053 &quot;A String&quot;,
2054 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002055 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002056 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002057 },
2058 &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.
2059 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2060 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2061 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002062 &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.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002063 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2064 &quot;A String&quot;,
2065 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002066 &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 Bot0bf565c2020-12-09 08:56:03 -08002067 },
2068 &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.
2069 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002070 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002071 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002072 },
2073 ],
2074 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002075 &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 -08002076 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002077 &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.
2078 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2079 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2080 {
2081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2082 },
2083 ],
2084 &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.
2085 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002086 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002087 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2088 &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.
2089 &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.
2090 &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.
2091 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2092 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2093 {
2094 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2095 },
2096 ],
2097 &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.
2098 },
2099 &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.
2100 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2101 },
2102 &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}`.
2103 &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`.
2104 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2105 },
2106 },
2107 },
2108 &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.
2109 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2110 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2111 &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.
2112 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2113 &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.
2114 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002115 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002116 &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.
2117 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2118 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2119 },
2120 },
2121 ],
2122 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2123 },
2124 &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.
2125 &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;
2126 &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.
2127 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2128 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2129 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2130 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2131 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2132 },
2133 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2134 &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.
2135 },
2136 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002137 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2138 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2139 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2140 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2141 &quot;A String&quot;,
2142 ],
2143 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2144 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2145 &quot;A String&quot;,
2146 ],
2147 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2148 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2149 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2150 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2151 },
2152 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2153 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2154 &quot;A String&quot;,
2155 ],
2156 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2157 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2158 &quot;A String&quot;,
2159 ],
2160 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2161 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2162 &quot;A String&quot;,
2163 ],
2164 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2165 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2166 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2167 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
2168 },
2169 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2170 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2171 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
2172 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2173 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2174 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2175 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
2176 },
2177 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
2178 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2179 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2180 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
2181 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002183 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2184 &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.
2185 &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.
2186 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2187 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2188 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2189 &quot;A String&quot;,
2190 ],
2191 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2192 },
2193 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2194 &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.
2195 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002196 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002197 &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.
2198 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2199 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2200 },
2201 },
2202 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2203 &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.
2204 &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.
2205 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2206 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2207 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2208 &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.
2209 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2210 &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.
2211 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002212 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002213 &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.
2214 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2215 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2216 },
2217 },
2218 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2219 &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.
2220 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2221 &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.
2222 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002223 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002224 &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.
2225 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2226 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2227 },
2228 },
2229 &quot;severityName&quot;: &quot;A String&quot;,
2230 },
2231 ],
2232 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2233 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002234 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002235}
2236
2237 updateMask: string, The fields to update.
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 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002247 &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.
2248 &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.
2249 &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).
2250 &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`.
2251 &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.
2252 },
2253 },
2254 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
2255 &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
2256 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2257 &quot;a_key&quot;: &quot;A String&quot;,
2258 },
2259 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2260 &quot;builtArtifacts&quot;: [ # Output of the build.
2261 { # Artifact describes a build product.
2262 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2263 &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
2264 &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.
2265 &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.
2266 &quot;A String&quot;,
2267 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002268 },
2269 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002270 &quot;commands&quot;: [ # Commands requested by the build.
2271 { # Command describes a step performed as part of the build pipeline.
2272 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2273 &quot;A String&quot;,
2274 ],
2275 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2276 &quot;env&quot;: [ # Environment variables set before running this Command.
2277 &quot;A String&quot;,
2278 ],
2279 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2280 &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`.
2281 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2282 &quot;A String&quot;,
2283 ],
2284 },
2285 ],
2286 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2287 &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.
2288 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2289 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2290 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2291 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2292 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2293 &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.
2294 { # 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 Bot0bf565c2020-12-09 08:56:03 -08002295 &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 Botcc94ec82021-01-15 07:10:04 -08002296 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2297 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2298 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2299 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002300 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002301 &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.
2302 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2303 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2304 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002305 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002306 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002307 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002308 },
2309 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002310 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2311 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2312 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2313 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002314 &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.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002315 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2316 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2317 },
2318 &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).
2319 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2320 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002321 },
2322 &quot;labels&quot;: { # Labels with user defined metadata.
2323 &quot;a_key&quot;: &quot;A String&quot;,
2324 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002325 },
2326 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002327 &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.
2328 &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)).
2329 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2330 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002331 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002332 &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.
2333 &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.
2334 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2335 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2336 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2337 },
2338 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2339 &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.
2340 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2341 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2342 },
2343 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2344 },
2345 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2346 },
2347 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2348 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2349 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2350 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2351 },
2352 &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.
2353 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2354 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2355 },
2356 &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).
2357 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2358 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2359 },
2360 &quot;labels&quot;: { # Labels with user defined metadata.
2361 &quot;a_key&quot;: &quot;A String&quot;,
2362 },
2363 },
2364 &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.
2365 &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.
2366 &quot;fileHash&quot;: [ # Collection of file hashes.
2367 { # Container message for hash values.
2368 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2369 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2370 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002371 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002372 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002373 },
2374 &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.
2375 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2376 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2377 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2378 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2379 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2380 },
2381 &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.
2382 &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)).
2383 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2384 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2385 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002386 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002387 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2388 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002389 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002390 &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.
2391 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002392 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
2393 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2394 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2395 { # Details about files that caused a compliance check to fail.
2396 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2397 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
2398 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2399 },
2400 ],
2401 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002402 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2403 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2404 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2405 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2406 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2407 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2408 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2409 &quot;A String&quot;,
2410 ],
2411 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2412 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2413 },
2414 &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.
2415 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2416 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2417 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2418 &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.
2419 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002420 &quot;A String&quot;,
2421 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002422 &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 Bot0bf565c2020-12-09 08:56:03 -08002423 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002424 &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.
2425 { # Layer holds metadata specific to a layer of a Docker image.
2426 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2427 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002428 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002429 ],
2430 },
2431 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2432 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2433 &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.
2434 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2435 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2436 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002437 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2438 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002439 ],
2440 &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.
2441 },
2442 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2443 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2444 &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.
2445 &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.
2446 &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.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002447 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2448 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2449 {
2450 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2451 },
2452 ],
2453 &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.
2454 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002455 &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.
2456 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2457 },
2458 &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}`.
2459 &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`.
2460 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2461 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002462 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002463 },
2464 &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.
2465 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2466 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2467 &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.
2468 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2469 &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.
2470 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002471 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002472 &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.
2473 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2474 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2475 },
2476 },
2477 ],
2478 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2479 },
2480 &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.
2481 &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;
2482 &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.
2483 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2484 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2485 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2486 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2487 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2488 },
2489 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2490 &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.
2491 },
2492 &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.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002493 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
2494 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
2495 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
2496 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
2497 &quot;A String&quot;,
2498 ],
2499 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
2500 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2501 &quot;A String&quot;,
2502 ],
2503 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
2504 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
2505 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
2506 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2507 },
2508 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2509 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
2510 &quot;A String&quot;,
2511 ],
2512 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
2513 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2514 &quot;A String&quot;,
2515 ],
2516 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2517 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2518 &quot;A String&quot;,
2519 ],
2520 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2521 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2522 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2523 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
2524 },
2525 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2526 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2527 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
2528 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2529 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2530 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2531 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
2532 },
2533 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
2534 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2535 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2536 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
2537 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2538 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002539 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2540 &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.
2541 &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.
2542 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2543 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2544 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2545 &quot;A String&quot;,
2546 ],
2547 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2548 },
2549 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2550 &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.
2551 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002552 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002553 &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.
2554 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2555 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2556 },
2557 },
2558 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2559 &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.
2560 &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.
2561 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2562 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2563 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2564 &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.
2565 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2566 &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.
2567 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002568 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002569 &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.
2570 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2571 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2572 },
2573 },
2574 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2575 &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.
2576 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2577 &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.
2578 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002579 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002580 &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.
2581 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2582 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2583 },
2584 },
2585 &quot;severityName&quot;: &quot;A String&quot;,
2586 },
2587 ],
2588 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2589 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2590 },
2591}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002592</div>
2593
2594<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002595 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002596 <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 -07002597
2598Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002599 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 -07002600 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002601 The object takes the form of:
2602
2603{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002604 &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.
2605 &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.
2606 { # Associates `members` with a `role`.
2607 &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).
2608 &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.
2609 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2610 &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.
2611 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002613 &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`.
2614 &quot;A String&quot;,
2615 ],
2616 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2617 },
2618 ],
2619 &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.
2620 &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).
2621 },
2622}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002623
2624 x__xgafv: string, V1 error format.
2625 Allowed values
2626 1 - v1 error format
2627 2 - v2 error format
2628
2629Returns:
2630 An object of the form:
2631
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002632 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002633 &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.
2634 { # Associates `members` with a `role`.
2635 &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).
2636 &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.
2637 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2638 &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.
2639 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002640 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002641 &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`.
2642 &quot;A String&quot;,
2643 ],
2644 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2645 },
2646 ],
2647 &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.
2648 &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).
2649}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002650</div>
2651
2652<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002653 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002654 <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 -07002655
2656Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002657 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 -07002658 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002659 The object takes the form of:
2660
2661{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002662 &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).
2663 &quot;A String&quot;,
2664 ],
2665}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002666
2667 x__xgafv: string, V1 error format.
2668 Allowed values
2669 1 - v1 error format
2670 2 - v2 error format
2671
2672Returns:
2673 An object of the form:
2674
2675 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002676 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
2677 &quot;A String&quot;,
2678 ],
2679}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002680</div>
2681
2682</body></html>