blob: 79bfb44856c4752173880102007548fee5f592e3 [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.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700137 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
138 &quot;builderConfig&quot;: { # required
139 &quot;id&quot;: &quot;A String&quot;,
140 },
141 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
142 &quot;A String&quot;,
143 ],
144 &quot;metadata&quot;: { # Other properties of the build.
145 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
146 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
147 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
148 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
149 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
150 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
151 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
152 },
153 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
154 },
155 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
156 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
157 &quot;A String&quot;,
158 ],
159 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
160 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
161 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
162 &quot;a_key&quot;: &quot;A String&quot;,
163 },
164 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
165 },
166 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800167 &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 -0800168 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
169 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800170 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800171 &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 -0800172 &quot;builtArtifacts&quot;: [ # Output of the build.
173 { # Artifact describes a build product.
174 &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 -0800175 &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 -0800176 &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 -0800177 &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.
178 &quot;A String&quot;,
179 ],
180 },
181 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800182 &quot;commands&quot;: [ # Commands requested by the build.
183 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800184 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
185 &quot;A String&quot;,
186 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &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 -0800188 &quot;env&quot;: [ # Environment variables set before running this Command.
189 &quot;A String&quot;,
190 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
192 &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`.
193 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
194 &quot;A String&quot;,
195 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 },
197 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800198 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800199 &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.
200 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
201 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
202 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
203 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
204 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
205 &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.
206 { # 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.
207 &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.
208 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
209 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
210 &quot;name&quot;: &quot;A String&quot;, # The alias name.
211 },
212 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
213 &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.
214 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
215 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
216 },
217 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
218 },
219 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
220 },
221 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
222 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
223 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
224 &quot;name&quot;: &quot;A String&quot;, # The alias name.
225 },
226 &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.
227 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
228 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
229 },
230 &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).
231 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
232 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
233 },
234 &quot;labels&quot;: { # Labels with user defined metadata.
235 &quot;a_key&quot;: &quot;A String&quot;,
236 },
237 },
238 ],
239 &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.
240 &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)).
241 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
242 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
243 },
244 &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.
245 &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.
246 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
247 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
248 &quot;name&quot;: &quot;A String&quot;, # The alias name.
249 },
250 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
251 &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.
252 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
253 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
254 },
255 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
256 },
257 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
258 },
259 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
260 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
261 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
262 &quot;name&quot;: &quot;A String&quot;, # The alias name.
263 },
264 &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.
265 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
266 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
267 },
268 &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).
269 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
270 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
271 },
272 &quot;labels&quot;: { # Labels with user defined metadata.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 },
276 &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.
277 &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.
278 &quot;fileHash&quot;: [ # Collection of file hashes.
279 { # Container message for hash values.
280 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
281 &quot;value&quot;: &quot;A String&quot;, # The hash value.
282 },
283 ],
284 },
285 },
286 &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.
287 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
288 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
289 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
290 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
291 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
292 },
293 &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.
294 &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)).
295 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
296 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
297 },
298 },
299 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
300 &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 -0800301 },
302 &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.
303 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700304 &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.
305 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
306 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
307 { # Details about files that caused a compliance check to fail.
308 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
309 &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.
310 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
311 },
312 ],
313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800315 &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 -0800316 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
317 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
318 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
319 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800320 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
321 &quot;A String&quot;,
322 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800323 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800324 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800325 },
326 &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.
327 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
328 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
329 &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 -0800330 &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 -0800331 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
332 &quot;A String&quot;,
333 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800334 &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 -0800335 },
336 &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.
337 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800338 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800339 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 },
341 ],
342 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800343 &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 -0800344 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800345 &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.
346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
347 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
348 {
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 ],
352 &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.
353 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800354 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800355 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
356 &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.
357 &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.
358 &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.
359 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
360 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
361 {
362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363 },
364 ],
365 &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.
366 },
367 &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.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369 },
370 &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}`.
371 &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`.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 },
375 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700376 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
377 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
378 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
379 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
380 &quot;signatures&quot;: [ # The signatures over the payload
381 { # A DSSE signature
382 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
383 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
384 },
385 ],
386 },
387 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
388 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
389 &quot;provenance&quot;: {
390 &quot;builderConfig&quot;: { # required
391 &quot;id&quot;: &quot;A String&quot;,
392 },
393 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
394 &quot;A String&quot;,
395 ],
396 &quot;metadata&quot;: { # Other properties of the build.
397 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
398 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
399 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
400 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
401 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
402 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
403 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
404 },
405 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
406 },
407 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
408 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
409 &quot;A String&quot;,
410 ],
411 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
412 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
413 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
414 &quot;a_key&quot;: &quot;A String&quot;,
415 },
416 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
417 },
418 },
419 &quot;subject&quot;: [
420 {
421 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;name&quot;: &quot;A String&quot;,
425 },
426 ],
427 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
428 },
429 },
430 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
431 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
432 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
433 &quot;signatures&quot;: [ # The signatures over the payload
434 { # A DSSE signature
435 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
436 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
437 },
438 ],
439 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &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.
441 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
442 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
443 &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.
444 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
445 &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.
446 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800447 &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 -0800448 &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.
449 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
450 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
451 },
452 },
453 ],
454 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
455 },
456 &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.
457 &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;
458 &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.
459 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
460 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
461 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
462 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
463 &quot;value&quot;: &quot;A String&quot;, # The hash value.
464 },
465 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
466 &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.
467 },
468 &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 -0700469 &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.
470 &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
471 &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
472 &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
473 &quot;A String&quot;,
474 ],
475 &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
476 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
477 &quot;A String&quot;,
478 ],
479 &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
480 &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
481 &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
482 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
483 },
484 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
485 &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
486 &quot;A String&quot;,
487 ],
488 &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
489 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
490 &quot;A String&quot;,
491 ],
492 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
493 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
494 &quot;A String&quot;,
495 ],
496 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
497 &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
498 &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
499 &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
500 },
501 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
502 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
503 &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
504 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
505 &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
506 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
507 &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
508 },
509 &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.
510 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
511 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
512 &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
513 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
514 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800515 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
516 &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.
517 &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.
518 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
519 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
520 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
521 &quot;A String&quot;,
522 ],
523 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
524 },
525 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
526 &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.
527 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800528 &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 -0800529 &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.
530 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
531 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
532 },
533 },
534 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
535 &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.
536 &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.
537 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
538 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
539 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
540 &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.
541 &quot;package&quot;: &quot;A String&quot;, # The package being described.
542 &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.
543 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800544 &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 -0800545 &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.
546 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
547 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
548 },
549 },
550 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
551 &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.
552 &quot;package&quot;: &quot;A String&quot;, # The package being described.
553 &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.
554 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800555 &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 -0800556 &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.
557 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
558 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
559 },
560 },
561 &quot;severityName&quot;: &quot;A String&quot;,
562 },
563 ],
564 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
565 &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 -0800566 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700567}
568
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700569 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 -0700570 x__xgafv: string, V1 error format.
571 Allowed values
572 1 - v1 error format
573 2 - v2 error format
574
575Returns:
576 An object of the form:
577
578 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800579 &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.
580 &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.
581 &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).
582 &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`.
583 &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.
584 },
585 },
586 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700587 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
588 &quot;builderConfig&quot;: { # required
589 &quot;id&quot;: &quot;A String&quot;,
590 },
591 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
592 &quot;A String&quot;,
593 ],
594 &quot;metadata&quot;: { # Other properties of the build.
595 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
596 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
597 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
598 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
599 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
600 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
601 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
602 },
603 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
604 },
605 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
606 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
607 &quot;A String&quot;,
608 ],
609 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
610 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
611 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
612 &quot;a_key&quot;: &quot;A String&quot;,
613 },
614 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
615 },
616 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800617 &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
618 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
619 &quot;a_key&quot;: &quot;A String&quot;,
620 },
621 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
622 &quot;builtArtifacts&quot;: [ # Output of the build.
623 { # Artifact describes a build product.
624 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
625 &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
626 &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.
627 &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.
628 &quot;A String&quot;,
629 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800630 },
631 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800632 &quot;commands&quot;: [ # Commands requested by the build.
633 { # Command describes a step performed as part of the build pipeline.
634 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
635 &quot;A String&quot;,
636 ],
637 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
638 &quot;env&quot;: [ # Environment variables set before running this Command.
639 &quot;A String&quot;,
640 ],
641 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
642 &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`.
643 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
644 &quot;A String&quot;,
645 ],
646 },
647 ],
648 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
649 &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.
650 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
651 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
652 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
653 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
654 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
655 &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.
656 { # 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 -0800657 &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 -0800658 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
659 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
660 &quot;name&quot;: &quot;A String&quot;, # The alias name.
661 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800662 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800663 &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.
664 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
665 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
666 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800667 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800668 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800669 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800670 },
671 &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 -0800672 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
673 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
674 &quot;name&quot;: &quot;A String&quot;, # The alias name.
675 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800676 &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 -0800677 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
678 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
679 },
680 &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).
681 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
682 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800683 },
684 &quot;labels&quot;: { # Labels with user defined metadata.
685 &quot;a_key&quot;: &quot;A String&quot;,
686 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800687 },
688 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800689 &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.
690 &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)).
691 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
692 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800693 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800694 &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.
695 &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.
696 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
697 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
698 &quot;name&quot;: &quot;A String&quot;, # The alias name.
699 },
700 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
701 &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.
702 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
703 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
704 },
705 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
706 },
707 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
708 },
709 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
710 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
711 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
712 &quot;name&quot;: &quot;A String&quot;, # The alias name.
713 },
714 &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.
715 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
716 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
717 },
718 &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).
719 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
720 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
721 },
722 &quot;labels&quot;: { # Labels with user defined metadata.
723 &quot;a_key&quot;: &quot;A String&quot;,
724 },
725 },
726 &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.
727 &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.
728 &quot;fileHash&quot;: [ # Collection of file hashes.
729 { # Container message for hash values.
730 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
731 &quot;value&quot;: &quot;A String&quot;, # The hash value.
732 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800733 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800734 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800735 },
736 &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.
737 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
738 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
739 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
740 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
741 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
742 },
743 &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.
744 &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)).
745 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
746 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
747 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800748 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800749 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
750 &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 -0800751 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800752 &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.
753 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700754 &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.
755 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
756 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
757 { # Details about files that caused a compliance check to fail.
758 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
759 &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.
760 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
761 },
762 ],
763 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800764 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
765 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
766 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
767 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
768 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
769 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
770 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
771 &quot;A String&quot;,
772 ],
773 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
774 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
775 },
776 &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.
777 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
778 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
779 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
780 &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.
781 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800782 &quot;A String&quot;,
783 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800784 &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 -0800785 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800786 &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.
787 { # Layer holds metadata specific to a layer of a Docker image.
788 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
789 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800790 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800791 ],
792 },
793 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
794 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
795 &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.
796 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
797 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
798 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800799 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
800 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800801 ],
802 &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.
803 },
804 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
805 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
806 &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.
807 &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.
808 &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 -0800809 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
810 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
811 {
812 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
813 },
814 ],
815 &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.
816 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800817 &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.
818 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
819 },
820 &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}`.
821 &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`.
822 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
823 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800824 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800825 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700826 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
827 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
828 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
829 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
830 &quot;signatures&quot;: [ # The signatures over the payload
831 { # A DSSE signature
832 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
833 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
834 },
835 ],
836 },
837 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
838 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
839 &quot;provenance&quot;: {
840 &quot;builderConfig&quot;: { # required
841 &quot;id&quot;: &quot;A String&quot;,
842 },
843 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
844 &quot;A String&quot;,
845 ],
846 &quot;metadata&quot;: { # Other properties of the build.
847 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
848 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
849 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
850 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
851 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
852 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
853 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
854 },
855 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
856 },
857 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
858 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
859 &quot;A String&quot;,
860 ],
861 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
862 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
863 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
864 &quot;a_key&quot;: &quot;A String&quot;,
865 },
866 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
867 },
868 },
869 &quot;subject&quot;: [
870 {
871 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
872 &quot;a_key&quot;: &quot;A String&quot;,
873 },
874 &quot;name&quot;: &quot;A String&quot;,
875 },
876 ],
877 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
878 },
879 },
880 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
881 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
882 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
883 &quot;signatures&quot;: [ # The signatures over the payload
884 { # A DSSE signature
885 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
886 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
887 },
888 ],
889 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800890 &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.
891 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
892 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
893 &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.
894 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
895 &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.
896 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800897 &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 -0800898 &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.
899 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
900 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
901 },
902 },
903 ],
904 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
905 },
906 &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.
907 &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;
908 &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.
909 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
910 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
911 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
912 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
913 &quot;value&quot;: &quot;A String&quot;, # The hash value.
914 },
915 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
916 &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.
917 },
918 &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 -0700919 &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.
920 &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
921 &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
922 &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
923 &quot;A String&quot;,
924 ],
925 &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
926 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
927 &quot;A String&quot;,
928 ],
929 &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
930 &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
931 &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
932 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
933 },
934 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
935 &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
936 &quot;A String&quot;,
937 ],
938 &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
939 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
940 &quot;A String&quot;,
941 ],
942 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
943 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
944 &quot;A String&quot;,
945 ],
946 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
947 &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
948 &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
949 &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
950 },
951 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
952 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
953 &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
954 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
955 &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
956 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
957 &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
958 },
959 &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.
960 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
961 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
962 &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
963 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
964 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800965 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
966 &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.
967 &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.
968 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
969 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
970 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
971 &quot;A String&quot;,
972 ],
973 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
974 },
975 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
976 &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.
977 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800978 &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 -0800979 &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.
980 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
981 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
982 },
983 },
984 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
985 &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.
986 &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.
987 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
988 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
989 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
990 &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.
991 &quot;package&quot;: &quot;A String&quot;, # The package being described.
992 &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.
993 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800994 &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 -0800995 &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.
996 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
997 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
998 },
999 },
1000 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1001 &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.
1002 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1003 &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.
1004 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001005 &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 -08001006 &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.
1007 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1008 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1009 },
1010 },
1011 &quot;severityName&quot;: &quot;A String&quot;,
1012 },
1013 ],
1014 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1015 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1016 },
1017}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001018</div>
1019
1020<div class="method">
1021 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001022 <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 -07001023
1024Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001025 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 -07001026 x__xgafv: string, V1 error format.
1027 Allowed values
1028 1 - v1 error format
1029 2 - v2 error format
1030
1031Returns:
1032 An object of the form:
1033
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001034 { # 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 -08001035}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001036</div>
1037
1038<div class="method">
1039 <code class="details" id="get">get(name, x__xgafv=None)</code>
1040 <pre>Returns the requested `Occurrence`.
1041
1042Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001043 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 -07001044 x__xgafv: string, V1 error format.
1045 Allowed values
1046 1 - v1 error format
1047 2 - v2 error format
1048
1049Returns:
1050 An object of the form:
1051
1052 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001053 &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.
1054 &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.
1055 &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).
1056 &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`.
1057 &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.
1058 },
1059 },
1060 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001061 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1062 &quot;builderConfig&quot;: { # required
1063 &quot;id&quot;: &quot;A String&quot;,
1064 },
1065 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1066 &quot;A String&quot;,
1067 ],
1068 &quot;metadata&quot;: { # Other properties of the build.
1069 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1070 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1071 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1072 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1073 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1074 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1075 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1076 },
1077 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1078 },
1079 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1080 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
1081 &quot;A String&quot;,
1082 ],
1083 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1084 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
1085 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1086 &quot;a_key&quot;: &quot;A String&quot;,
1087 },
1088 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1089 },
1090 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001091 &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
1092 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1093 &quot;a_key&quot;: &quot;A String&quot;,
1094 },
1095 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1096 &quot;builtArtifacts&quot;: [ # Output of the build.
1097 { # Artifact describes a build product.
1098 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1099 &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
1100 &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.
1101 &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.
1102 &quot;A String&quot;,
1103 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001104 },
1105 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001106 &quot;commands&quot;: [ # Commands requested by the build.
1107 { # Command describes a step performed as part of the build pipeline.
1108 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1109 &quot;A String&quot;,
1110 ],
1111 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1112 &quot;env&quot;: [ # Environment variables set before running this Command.
1113 &quot;A String&quot;,
1114 ],
1115 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1116 &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`.
1117 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1118 &quot;A String&quot;,
1119 ],
1120 },
1121 ],
1122 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1123 &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.
1124 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1125 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1126 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1127 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1128 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1129 &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.
1130 { # 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 -08001131 &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 -08001132 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1133 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1134 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1135 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001136 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001137 &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.
1138 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1139 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1140 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001141 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001142 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001143 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001144 },
1145 &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 -08001146 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1147 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1148 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1149 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001150 &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 -08001151 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1152 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1153 },
1154 &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).
1155 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1156 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001157 },
1158 &quot;labels&quot;: { # Labels with user defined metadata.
1159 &quot;a_key&quot;: &quot;A String&quot;,
1160 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001161 },
1162 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001163 &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.
1164 &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)).
1165 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1166 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001167 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001168 &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.
1169 &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.
1170 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1171 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1172 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1173 },
1174 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1175 &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.
1176 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1177 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1178 },
1179 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1180 },
1181 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1182 },
1183 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1184 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1185 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1186 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1187 },
1188 &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.
1189 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1190 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1191 },
1192 &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).
1193 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1194 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1195 },
1196 &quot;labels&quot;: { # Labels with user defined metadata.
1197 &quot;a_key&quot;: &quot;A String&quot;,
1198 },
1199 },
1200 &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.
1201 &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.
1202 &quot;fileHash&quot;: [ # Collection of file hashes.
1203 { # Container message for hash values.
1204 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1205 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1206 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001207 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001208 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001209 },
1210 &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.
1211 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1212 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1213 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1214 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1215 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1216 },
1217 &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.
1218 &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)).
1219 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1220 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1221 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001222 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001223 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1224 &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 -08001225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001226 &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.
1227 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001228 &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.
1229 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1230 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1231 { # Details about files that caused a compliance check to fail.
1232 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1233 &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.
1234 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1235 },
1236 ],
1237 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001238 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1239 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1240 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1241 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1242 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1243 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1244 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1245 &quot;A String&quot;,
1246 ],
1247 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1248 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1249 },
1250 &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.
1251 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1252 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1253 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1254 &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.
1255 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001256 &quot;A String&quot;,
1257 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001258 &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 -08001259 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001260 &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.
1261 { # Layer holds metadata specific to a layer of a Docker image.
1262 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1263 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001264 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001265 ],
1266 },
1267 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1268 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1269 &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.
1270 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1271 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1272 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001273 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1274 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001275 ],
1276 &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.
1277 },
1278 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1279 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1280 &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.
1281 &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.
1282 &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 -08001283 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1284 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1285 {
1286 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1287 },
1288 ],
1289 &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.
1290 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001291 &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.
1292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1293 },
1294 &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}`.
1295 &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`.
1296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1297 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001298 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001299 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001300 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1301 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
1302 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1303 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1304 &quot;signatures&quot;: [ # The signatures over the payload
1305 { # A DSSE signature
1306 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1307 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1308 },
1309 ],
1310 },
1311 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
1312 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1313 &quot;provenance&quot;: {
1314 &quot;builderConfig&quot;: { # required
1315 &quot;id&quot;: &quot;A String&quot;,
1316 },
1317 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1318 &quot;A String&quot;,
1319 ],
1320 &quot;metadata&quot;: { # Other properties of the build.
1321 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1322 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1323 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1324 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1325 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1326 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1327 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1328 },
1329 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1330 },
1331 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1332 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
1333 &quot;A String&quot;,
1334 ],
1335 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1336 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
1337 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1338 &quot;a_key&quot;: &quot;A String&quot;,
1339 },
1340 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1341 },
1342 },
1343 &quot;subject&quot;: [
1344 {
1345 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1346 &quot;a_key&quot;: &quot;A String&quot;,
1347 },
1348 &quot;name&quot;: &quot;A String&quot;,
1349 },
1350 ],
1351 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1352 },
1353 },
1354 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
1355 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1356 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1357 &quot;signatures&quot;: [ # The signatures over the payload
1358 { # A DSSE signature
1359 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1360 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1361 },
1362 ],
1363 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001364 &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.
1365 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1366 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1367 &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.
1368 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1369 &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.
1370 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001371 &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 -08001372 &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.
1373 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1374 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1375 },
1376 },
1377 ],
1378 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1379 },
1380 &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.
1381 &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;
1382 &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.
1383 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1384 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1385 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1386 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1387 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1388 },
1389 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1390 &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.
1391 },
1392 &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 -07001393 &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.
1394 &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
1395 &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
1396 &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
1397 &quot;A String&quot;,
1398 ],
1399 &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
1400 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1401 &quot;A String&quot;,
1402 ],
1403 &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
1404 &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
1405 &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
1406 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1407 },
1408 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1409 &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
1410 &quot;A String&quot;,
1411 ],
1412 &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
1413 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1414 &quot;A String&quot;,
1415 ],
1416 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1417 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1418 &quot;A String&quot;,
1419 ],
1420 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1421 &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
1422 &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
1423 &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
1424 },
1425 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1426 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1427 &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
1428 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1429 &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
1430 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1431 &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
1432 },
1433 &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.
1434 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1435 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1436 &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
1437 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1438 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001439 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1440 &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.
1441 &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.
1442 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1443 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1444 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1445 &quot;A String&quot;,
1446 ],
1447 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1448 },
1449 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1450 &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.
1451 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001452 &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 -08001453 &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.
1454 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1455 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1456 },
1457 },
1458 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1459 &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.
1460 &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.
1461 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1462 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1463 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1464 &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.
1465 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1466 &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.
1467 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001468 &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 -08001469 &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.
1470 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1471 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1472 },
1473 },
1474 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1475 &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.
1476 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1477 &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.
1478 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001479 &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 -08001480 &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.
1481 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1482 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1483 },
1484 },
1485 &quot;severityName&quot;: &quot;A String&quot;,
1486 },
1487 ],
1488 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1489 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1490 },
1491}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001492</div>
1493
1494<div class="method">
1495 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001496 <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 -07001497
1498Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001499 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 -07001500 body: object, The request body.
1501 The object takes the form of:
1502
1503{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001504 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1505 &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).
1506 },
1507}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001508
1509 x__xgafv: string, V1 error format.
1510 Allowed values
1511 1 - v1 error format
1512 2 - v2 error format
1513
1514Returns:
1515 An object of the form:
1516
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001517 { # 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 -08001518 &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.
1519 { # Associates `members` with a `role`.
1520 &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).
1521 &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.
1522 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1523 &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.
1524 &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 -07001525 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001526 &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`.
1527 &quot;A String&quot;,
1528 ],
1529 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1530 },
1531 ],
1532 &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.
1533 &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).
1534}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001535</div>
1536
1537<div class="method">
1538 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1539 <pre>Gets the `Note` attached to the given `Occurrence`.
1540
1541Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001542 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 -07001543 x__xgafv: string, V1 error format.
1544 Allowed values
1545 1 - v1 error format
1546 2 - v2 error format
1547
1548Returns:
1549 An object of the form:
1550
1551 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001552 &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.
1553 &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.
1554 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1555 },
1556 },
1557 &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.
1558 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1559 &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.
1560 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1561 &quot;A String&quot;,
1562 ],
1563 &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.
1564 },
1565 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1566 },
1567 &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.
1568 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1569 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1570 &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).
1571 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1572 &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`
1573 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1574 },
1575 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001576 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1577 &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.
1578 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1579 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1580 },
1581 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1582 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1583 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1584 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1585 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1586 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1587 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1588 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1589 &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.
1590 },
1591 ],
1592 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001593 &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.
1594 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1595 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1596 &quot;A String&quot;,
1597 ],
1598 },
1599 &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.
1600 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1601 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001602 &quot;dsseAttestation&quot;: { # A note describing an attestation # A note describing a dsse attestation note.
1603 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # DSSEHint hints at the purpose of the attestation authority.
1604 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
1605 },
1606 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001607 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1608 &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.
1609 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1610 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1611 &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.
1612 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1613 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1614 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1615 &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.
1616 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1617 &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 -08001618 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001619 &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 -08001620 &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 -08001621 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001622 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1623 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001624 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1625 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001626 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001627 ],
1628 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1629 },
1630 &quot;relatedUrl&quot;: [ # URLs associated with this note
1631 { # Metadata for any related URL information
1632 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1633 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1634 },
1635 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001636 &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.
1637 &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;)
1638 &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
1639 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001640 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001641 &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.
1642 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1643 &quot;A String&quot;,
1644 ],
1645 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1646 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1647 },
1648 &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.
1649 &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
1650 &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
1651 &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
1652 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1653 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1654 &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
1655 &quot;externalRefs&quot;: [ # ExternalRef
1656 { # 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
1657 &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
1658 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1659 &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
1660 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1661 },
1662 ],
1663 &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
1664 &quot;A String&quot;,
1665 ],
1666 &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
1667 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1668 &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
1669 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1670 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1671 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1672 &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
1673 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1674 },
1675 &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.
1676 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001677 &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.
1678 &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.
1679 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1680 { # 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.
1681 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1682 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1683 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001684 &quot;A String&quot;,
1685 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001686 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001687 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001688 ],
1689 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1690 &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.
1691 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001692 &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 -08001693 &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.
1694 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1695 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1696 },
1697 },
1698 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1699 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1700 &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.
1701 { # 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
1702 &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.
1703 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1704 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1705 &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.
1706 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1707 &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.
1708 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001709 &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 -08001710 &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.
1711 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1712 &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 -08001713 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001714 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001715 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1716 &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.
1717 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001718 &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 -08001719 &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.
1720 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1721 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1722 },
1723 &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.
1724 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001725 &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 -08001726 &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.
1727 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1728 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1729 },
1730 &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.
1731 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1732 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001733 &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 -07001734 &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 -08001735 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001736 ],
1737 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1738 },
1739}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001740</div>
1741
1742<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001743 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001744 <pre>Gets a summary of the number and severity of occurrences.
1745
1746Args:
1747 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001748 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001749 x__xgafv: string, V1 error format.
1750 Allowed values
1751 1 - v1 error format
1752 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001753
1754Returns:
1755 An object of the form:
1756
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001757 { # 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 -08001758 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
1759 { # The number of occurrences created for a specific severity.
1760 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
1761 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
1762 },
1763 ],
1764}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001765</div>
1766
1767<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001768 <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 -07001769 <pre>Lists active `Occurrences` for a given project matching the filters.
1770
1771Args:
1772 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001773 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001774 kind: string, The kind of occurrences to filter on.
1775 Allowed values
1776 KIND_UNSPECIFIED - Unknown
1777 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1778 BUILD_DETAILS - The note and occurrence assert build provenance.
1779 IMAGE_BASIS - This represents an image basis relationship.
1780 PACKAGE_MANAGER - This represents a package installed via a package manager.
1781 DEPLOYABLE - The note and occurrence track deployment events.
1782 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1783 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1784 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001785 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001786 SBOM - This represents a software bill of materials.
1787 SPDX_PACKAGE - This represents an SPDX Package.
1788 SPDX_FILE - This represents an SPDX File.
1789 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001790 DSSE_ATTESTATION - This represents a DSSE attestation Note
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001791 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
1792 pageSize: integer, Number of occurrences to return in the list.
1793 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001794 x__xgafv: string, V1 error format.
1795 Allowed values
1796 1 - v1 error format
1797 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001798
1799Returns:
1800 An object of the form:
1801
1802 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001803 &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.
1804 &quot;occurrences&quot;: [ # The occurrences requested.
1805 { # `Occurrence` includes information about analysis occurrences for an image.
1806 &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.
1807 &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.
1808 &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).
1809 &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`.
1810 &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.
1811 },
1812 },
1813 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001814 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1815 &quot;builderConfig&quot;: { # required
1816 &quot;id&quot;: &quot;A String&quot;,
1817 },
1818 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
1819 &quot;A String&quot;,
1820 ],
1821 &quot;metadata&quot;: { # Other properties of the build.
1822 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1823 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
1824 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1825 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
1826 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
1827 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1828 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
1829 },
1830 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1831 },
1832 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
1833 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
1834 &quot;A String&quot;,
1835 ],
1836 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
1837 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
1838 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
1839 &quot;a_key&quot;: &quot;A String&quot;,
1840 },
1841 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
1842 },
1843 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001844 &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
1845 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1846 &quot;a_key&quot;: &quot;A String&quot;,
1847 },
1848 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1849 &quot;builtArtifacts&quot;: [ # Output of the build.
1850 { # Artifact describes a build product.
1851 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1852 &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
1853 &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.
1854 &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.
1855 &quot;A String&quot;,
1856 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001857 },
1858 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001859 &quot;commands&quot;: [ # Commands requested by the build.
1860 { # Command describes a step performed as part of the build pipeline.
1861 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1862 &quot;A String&quot;,
1863 ],
1864 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1865 &quot;env&quot;: [ # Environment variables set before running this Command.
1866 &quot;A String&quot;,
1867 ],
1868 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1869 &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`.
1870 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1871 &quot;A String&quot;,
1872 ],
1873 },
1874 ],
1875 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1876 &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.
1877 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1878 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1879 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1880 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1881 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1882 &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.
1883 { # 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 -08001884 &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 -08001885 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1886 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1887 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1888 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001889 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001890 &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.
1891 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1892 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1893 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001894 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001895 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001896 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001897 },
1898 &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 -08001899 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1900 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1901 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1902 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001903 &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 -08001904 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1905 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1906 },
1907 &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).
1908 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1909 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001910 },
1911 &quot;labels&quot;: { # Labels with user defined metadata.
1912 &quot;a_key&quot;: &quot;A String&quot;,
1913 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001914 },
1915 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001916 &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.
1917 &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)).
1918 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1919 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001920 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001921 &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.
1922 &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.
1923 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1924 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1925 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1926 },
1927 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1928 &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.
1929 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1930 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1931 },
1932 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1933 },
1934 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1935 },
1936 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1937 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1938 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1939 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1940 },
1941 &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.
1942 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1943 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1944 },
1945 &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).
1946 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1947 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1948 },
1949 &quot;labels&quot;: { # Labels with user defined metadata.
1950 &quot;a_key&quot;: &quot;A String&quot;,
1951 },
1952 },
1953 &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.
1954 &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.
1955 &quot;fileHash&quot;: [ # Collection of file hashes.
1956 { # Container message for hash values.
1957 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1958 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1959 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001960 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001961 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001962 },
1963 &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.
1964 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1965 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1966 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1967 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1968 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1969 },
1970 &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.
1971 &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)).
1972 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1973 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1974 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001975 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001976 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1977 &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 -08001978 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001979 &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.
1980 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001981 &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.
1982 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1983 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1984 { # Details about files that caused a compliance check to fail.
1985 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1986 &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.
1987 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1988 },
1989 ],
1990 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001991 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1992 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1993 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1994 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1995 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1996 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1997 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1998 &quot;A String&quot;,
1999 ],
2000 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2001 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2002 },
2003 &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.
2004 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2005 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2006 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2007 &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.
2008 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002009 &quot;A String&quot;,
2010 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002011 &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 -08002012 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002013 &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.
2014 { # Layer holds metadata specific to a layer of a Docker image.
2015 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2016 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002017 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002018 ],
2019 },
2020 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2021 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2022 &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.
2023 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2024 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2025 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002026 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2027 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002028 ],
2029 &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.
2030 },
2031 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2032 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2033 &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.
2034 &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.
2035 &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 -08002036 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2037 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2038 {
2039 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2040 },
2041 ],
2042 &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.
2043 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002044 &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.
2045 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2046 },
2047 &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}`.
2048 &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`.
2049 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2050 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002051 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002052 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002053 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2054 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
2055 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2056 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2057 &quot;signatures&quot;: [ # The signatures over the payload
2058 { # A DSSE signature
2059 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2060 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2061 },
2062 ],
2063 },
2064 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
2065 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2066 &quot;provenance&quot;: {
2067 &quot;builderConfig&quot;: { # required
2068 &quot;id&quot;: &quot;A String&quot;,
2069 },
2070 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2071 &quot;A String&quot;,
2072 ],
2073 &quot;metadata&quot;: { # Other properties of the build.
2074 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2075 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2076 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2077 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2078 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2079 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2080 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2081 },
2082 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2083 },
2084 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2085 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
2086 &quot;A String&quot;,
2087 ],
2088 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2089 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
2090 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2091 &quot;a_key&quot;: &quot;A String&quot;,
2092 },
2093 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2094 },
2095 },
2096 &quot;subject&quot;: [
2097 {
2098 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2099 &quot;a_key&quot;: &quot;A String&quot;,
2100 },
2101 &quot;name&quot;: &quot;A String&quot;,
2102 },
2103 ],
2104 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2105 },
2106 },
2107 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
2108 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2109 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2110 &quot;signatures&quot;: [ # The signatures over the payload
2111 { # A DSSE signature
2112 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2113 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2114 },
2115 ],
2116 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002117 &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.
2118 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2119 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2120 &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.
2121 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2122 &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.
2123 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002124 &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 -08002125 &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.
2126 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2127 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2128 },
2129 },
2130 ],
2131 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2132 },
2133 &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.
2134 &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;
2135 &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.
2136 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2137 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2138 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2139 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2140 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2141 },
2142 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2143 &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.
2144 },
2145 &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 -07002146 &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.
2147 &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
2148 &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
2149 &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
2150 &quot;A String&quot;,
2151 ],
2152 &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
2153 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2154 &quot;A String&quot;,
2155 ],
2156 &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
2157 &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
2158 &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
2159 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2160 },
2161 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2162 &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
2163 &quot;A String&quot;,
2164 ],
2165 &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
2166 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2167 &quot;A String&quot;,
2168 ],
2169 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2170 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2171 &quot;A String&quot;,
2172 ],
2173 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2174 &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
2175 &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
2176 &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
2177 },
2178 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2179 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2180 &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
2181 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2182 &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
2183 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2184 &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
2185 },
2186 &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.
2187 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2188 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2189 &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
2190 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2191 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002192 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2193 &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.
2194 &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.
2195 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2196 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2197 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2198 &quot;A String&quot;,
2199 ],
2200 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2201 },
2202 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2203 &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.
2204 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002205 &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 -08002206 &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.
2207 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2208 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2209 },
2210 },
2211 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2212 &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.
2213 &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.
2214 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2215 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2216 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2217 &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.
2218 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2219 &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.
2220 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002221 &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 -08002222 &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.
2223 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2224 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2225 },
2226 },
2227 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2228 &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.
2229 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2230 &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.
2231 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002232 &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 -08002233 &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.
2234 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2235 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2236 },
2237 },
2238 &quot;severityName&quot;: &quot;A String&quot;,
2239 },
2240 ],
2241 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2242 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2243 },
2244 },
2245 ],
2246}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002247</div>
2248
2249<div class="method">
2250 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2251 <pre>Retrieves the next page of results.
2252
2253Args:
2254 previous_request: The request for the previous page. (required)
2255 previous_response: The response from the request for the previous page. (required)
2256
2257Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002258 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002259 page. Returns None if there are no more items in the collection.
2260 </pre>
2261</div>
2262
2263<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002264 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002265 <pre>Updates an existing occurrence.
2266
2267Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002268 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 -07002269 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002270 The object takes the form of:
2271
2272{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002273 &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.
2274 &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.
2275 &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).
2276 &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`.
2277 &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.
2278 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002279 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002280 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002281 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2282 &quot;builderConfig&quot;: { # required
2283 &quot;id&quot;: &quot;A String&quot;,
2284 },
2285 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2286 &quot;A String&quot;,
2287 ],
2288 &quot;metadata&quot;: { # Other properties of the build.
2289 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2290 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2291 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2292 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2293 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2294 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2295 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2296 },
2297 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2298 },
2299 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2300 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
2301 &quot;A String&quot;,
2302 ],
2303 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2304 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
2305 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2306 &quot;a_key&quot;: &quot;A String&quot;,
2307 },
2308 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2309 },
2310 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002311 &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 -08002312 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2313 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002314 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002315 &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 -08002316 &quot;builtArtifacts&quot;: [ # Output of the build.
2317 { # Artifact describes a build product.
2318 &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 -08002319 &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 -08002320 &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 -08002321 &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.
2322 &quot;A String&quot;,
2323 ],
2324 },
2325 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002326 &quot;commands&quot;: [ # Commands requested by the build.
2327 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002328 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2329 &quot;A String&quot;,
2330 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002331 &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 -08002332 &quot;env&quot;: [ # Environment variables set before running this Command.
2333 &quot;A String&quot;,
2334 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002335 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2336 &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`.
2337 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2338 &quot;A String&quot;,
2339 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002340 },
2341 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002342 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002343 &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.
2344 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2345 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2346 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2347 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2348 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2349 &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.
2350 { # 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.
2351 &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.
2352 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2353 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2354 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2355 },
2356 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2357 &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.
2358 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2359 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2360 },
2361 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2362 },
2363 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2364 },
2365 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2366 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2367 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2368 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2369 },
2370 &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.
2371 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2372 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2373 },
2374 &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).
2375 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2376 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2377 },
2378 &quot;labels&quot;: { # Labels with user defined metadata.
2379 &quot;a_key&quot;: &quot;A String&quot;,
2380 },
2381 },
2382 ],
2383 &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.
2384 &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)).
2385 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2386 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2387 },
2388 &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.
2389 &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.
2390 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2391 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2392 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2393 },
2394 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2395 &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.
2396 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2397 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2398 },
2399 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2400 },
2401 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2402 },
2403 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2404 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2405 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2406 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2407 },
2408 &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.
2409 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2410 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2411 },
2412 &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).
2413 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2414 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2415 },
2416 &quot;labels&quot;: { # Labels with user defined metadata.
2417 &quot;a_key&quot;: &quot;A String&quot;,
2418 },
2419 },
2420 &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.
2421 &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.
2422 &quot;fileHash&quot;: [ # Collection of file hashes.
2423 { # Container message for hash values.
2424 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2425 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2426 },
2427 ],
2428 },
2429 },
2430 &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.
2431 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2432 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2433 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2434 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2435 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2436 },
2437 &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.
2438 &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)).
2439 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2440 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2441 },
2442 },
2443 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2444 &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 -08002445 },
2446 &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.
2447 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002448 &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.
2449 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2450 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2451 { # Details about files that caused a compliance check to fail.
2452 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2453 &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.
2454 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2455 },
2456 ],
2457 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002458 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002459 &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 -08002460 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2461 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2462 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2463 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002464 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2465 &quot;A String&quot;,
2466 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002467 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002468 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002469 },
2470 &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.
2471 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2472 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2473 &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 -08002474 &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 -08002475 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2476 &quot;A String&quot;,
2477 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002478 &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 -08002479 },
2480 &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.
2481 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002482 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002483 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002484 },
2485 ],
2486 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002487 &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 -08002488 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002489 &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.
2490 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2491 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2492 {
2493 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2494 },
2495 ],
2496 &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.
2497 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002498 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002499 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2500 &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.
2501 &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.
2502 &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.
2503 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2504 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2505 {
2506 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2507 },
2508 ],
2509 &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.
2510 },
2511 &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.
2512 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2513 },
2514 &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}`.
2515 &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`.
2516 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2517 },
2518 },
2519 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002520 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2521 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
2522 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2523 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2524 &quot;signatures&quot;: [ # The signatures over the payload
2525 { # A DSSE signature
2526 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2527 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2528 },
2529 ],
2530 },
2531 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
2532 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2533 &quot;provenance&quot;: {
2534 &quot;builderConfig&quot;: { # required
2535 &quot;id&quot;: &quot;A String&quot;,
2536 },
2537 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2538 &quot;A String&quot;,
2539 ],
2540 &quot;metadata&quot;: { # Other properties of the build.
2541 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2542 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2543 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2544 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2545 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2546 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2547 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2548 },
2549 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2550 },
2551 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2552 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
2553 &quot;A String&quot;,
2554 ],
2555 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2556 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
2557 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2558 &quot;a_key&quot;: &quot;A String&quot;,
2559 },
2560 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2561 },
2562 },
2563 &quot;subject&quot;: [
2564 {
2565 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2566 &quot;a_key&quot;: &quot;A String&quot;,
2567 },
2568 &quot;name&quot;: &quot;A String&quot;,
2569 },
2570 ],
2571 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2572 },
2573 },
2574 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
2575 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2576 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2577 &quot;signatures&quot;: [ # The signatures over the payload
2578 { # A DSSE signature
2579 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2580 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2581 },
2582 ],
2583 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002584 &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.
2585 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2586 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2587 &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.
2588 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2589 &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.
2590 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002591 &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 -08002592 &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.
2593 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2594 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2595 },
2596 },
2597 ],
2598 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2599 },
2600 &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.
2601 &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;
2602 &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.
2603 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2604 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2605 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2606 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2607 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2608 },
2609 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2610 &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.
2611 },
2612 &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 -07002613 &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.
2614 &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
2615 &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
2616 &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
2617 &quot;A String&quot;,
2618 ],
2619 &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
2620 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2621 &quot;A String&quot;,
2622 ],
2623 &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
2624 &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
2625 &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
2626 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2627 },
2628 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2629 &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
2630 &quot;A String&quot;,
2631 ],
2632 &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
2633 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2634 &quot;A String&quot;,
2635 ],
2636 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2637 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2638 &quot;A String&quot;,
2639 ],
2640 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2641 &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
2642 &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
2643 &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
2644 },
2645 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2646 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2647 &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
2648 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2649 &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
2650 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2651 &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
2652 },
2653 &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.
2654 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2655 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2656 &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
2657 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2658 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002659 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2660 &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.
2661 &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.
2662 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2663 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2664 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2665 &quot;A String&quot;,
2666 ],
2667 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2668 },
2669 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2670 &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.
2671 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002672 &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 -08002673 &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.
2674 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2675 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2676 },
2677 },
2678 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2679 &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.
2680 &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.
2681 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2682 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2683 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2684 &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.
2685 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2686 &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.
2687 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002688 &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 -08002689 &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.
2690 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2691 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2692 },
2693 },
2694 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2695 &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.
2696 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2697 &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.
2698 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002699 &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 -08002700 &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.
2701 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2702 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2703 },
2704 },
2705 &quot;severityName&quot;: &quot;A String&quot;,
2706 },
2707 ],
2708 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2709 &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 -08002710 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002711}
2712
2713 updateMask: string, The fields to update.
2714 x__xgafv: string, V1 error format.
2715 Allowed values
2716 1 - v1 error format
2717 2 - v2 error format
2718
2719Returns:
2720 An object of the form:
2721
2722 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002723 &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.
2724 &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.
2725 &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).
2726 &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`.
2727 &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.
2728 },
2729 },
2730 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002731 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2732 &quot;builderConfig&quot;: { # required
2733 &quot;id&quot;: &quot;A String&quot;,
2734 },
2735 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2736 &quot;A String&quot;,
2737 ],
2738 &quot;metadata&quot;: { # Other properties of the build.
2739 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2740 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2741 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2742 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2743 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2744 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2745 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2746 },
2747 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2748 },
2749 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
2750 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
2751 &quot;A String&quot;,
2752 ],
2753 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
2754 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
2755 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
2756 &quot;a_key&quot;: &quot;A String&quot;,
2757 },
2758 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
2759 },
2760 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002761 &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
2762 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2763 &quot;a_key&quot;: &quot;A String&quot;,
2764 },
2765 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2766 &quot;builtArtifacts&quot;: [ # Output of the build.
2767 { # Artifact describes a build product.
2768 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2769 &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
2770 &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.
2771 &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.
2772 &quot;A String&quot;,
2773 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002774 },
2775 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002776 &quot;commands&quot;: [ # Commands requested by the build.
2777 { # Command describes a step performed as part of the build pipeline.
2778 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2779 &quot;A String&quot;,
2780 ],
2781 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2782 &quot;env&quot;: [ # Environment variables set before running this Command.
2783 &quot;A String&quot;,
2784 ],
2785 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2786 &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`.
2787 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2788 &quot;A String&quot;,
2789 ],
2790 },
2791 ],
2792 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2793 &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.
2794 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2795 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2796 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2797 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2798 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2799 &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.
2800 { # 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 -08002801 &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 -08002802 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2803 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2804 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2805 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002806 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002807 &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.
2808 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2809 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2810 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002811 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002812 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002813 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002814 },
2815 &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 -08002816 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2817 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2818 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2819 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002820 &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 -08002821 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2822 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2823 },
2824 &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).
2825 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2826 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002827 },
2828 &quot;labels&quot;: { # Labels with user defined metadata.
2829 &quot;a_key&quot;: &quot;A String&quot;,
2830 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002831 },
2832 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002833 &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.
2834 &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)).
2835 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2836 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002837 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002838 &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.
2839 &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.
2840 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2841 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2842 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2843 },
2844 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2845 &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.
2846 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2847 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2848 },
2849 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2850 },
2851 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2852 },
2853 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2854 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2855 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2856 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2857 },
2858 &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.
2859 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2860 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2861 },
2862 &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).
2863 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2864 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2865 },
2866 &quot;labels&quot;: { # Labels with user defined metadata.
2867 &quot;a_key&quot;: &quot;A String&quot;,
2868 },
2869 },
2870 &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.
2871 &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.
2872 &quot;fileHash&quot;: [ # Collection of file hashes.
2873 { # Container message for hash values.
2874 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2875 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2876 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002877 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002878 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002879 },
2880 &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.
2881 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2882 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2883 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2884 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2885 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2886 },
2887 &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.
2888 &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)).
2889 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2890 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2891 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002892 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002893 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2894 &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 -08002895 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002896 &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.
2897 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002898 &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.
2899 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2900 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2901 { # Details about files that caused a compliance check to fail.
2902 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2903 &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.
2904 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2905 },
2906 ],
2907 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002908 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2909 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2910 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2911 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2912 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2913 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2914 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2915 &quot;A String&quot;,
2916 ],
2917 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2918 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2919 },
2920 &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.
2921 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2922 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2923 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2924 &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.
2925 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002926 &quot;A String&quot;,
2927 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002928 &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 -08002929 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002930 &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.
2931 { # Layer holds metadata specific to a layer of a Docker image.
2932 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2933 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002934 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002935 ],
2936 },
2937 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2938 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2939 &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.
2940 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2941 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2942 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002943 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2944 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002945 ],
2946 &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.
2947 },
2948 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2949 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2950 &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.
2951 &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.
2952 &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 -08002953 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2954 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2955 {
2956 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2957 },
2958 ],
2959 &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.
2960 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002961 &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.
2962 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2963 },
2964 &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}`.
2965 &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`.
2966 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2967 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002968 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002969 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002970 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2971 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
2972 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2973 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2974 &quot;signatures&quot;: [ # The signatures over the payload
2975 { # A DSSE signature
2976 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2977 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2978 },
2979 ],
2980 },
2981 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
2982 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2983 &quot;provenance&quot;: {
2984 &quot;builderConfig&quot;: { # required
2985 &quot;id&quot;: &quot;A String&quot;,
2986 },
2987 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
2988 &quot;A String&quot;,
2989 ],
2990 &quot;metadata&quot;: { # Other properties of the build.
2991 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2992 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
2993 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2994 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
2995 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
2996 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2997 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
2998 },
2999 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3000 },
3001 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
3002 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
3003 &quot;A String&quot;,
3004 ],
3005 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
3006 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
3007 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
3008 &quot;a_key&quot;: &quot;A String&quot;,
3009 },
3010 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
3011 },
3012 },
3013 &quot;subject&quot;: [
3014 {
3015 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3016 &quot;a_key&quot;: &quot;A String&quot;,
3017 },
3018 &quot;name&quot;: &quot;A String&quot;,
3019 },
3020 ],
3021 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3022 },
3023 },
3024 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
3025 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3026 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3027 &quot;signatures&quot;: [ # The signatures over the payload
3028 { # A DSSE signature
3029 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3030 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3031 },
3032 ],
3033 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003034 &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.
3035 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3036 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3037 &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.
3038 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3039 &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.
3040 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003041 &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 -08003042 &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.
3043 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3044 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3045 },
3046 },
3047 ],
3048 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3049 },
3050 &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.
3051 &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;
3052 &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.
3053 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3054 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3055 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3056 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3057 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3058 },
3059 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3060 &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.
3061 },
3062 &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 -07003063 &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.
3064 &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
3065 &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
3066 &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
3067 &quot;A String&quot;,
3068 ],
3069 &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
3070 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3071 &quot;A String&quot;,
3072 ],
3073 &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
3074 &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
3075 &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
3076 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3077 },
3078 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3079 &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
3080 &quot;A String&quot;,
3081 ],
3082 &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
3083 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3084 &quot;A String&quot;,
3085 ],
3086 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3087 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3088 &quot;A String&quot;,
3089 ],
3090 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3091 &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
3092 &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
3093 &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
3094 },
3095 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3096 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3097 &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
3098 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3099 &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
3100 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
3101 &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
3102 },
3103 &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.
3104 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3105 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3106 &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
3107 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
3108 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003109 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3110 &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.
3111 &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.
3112 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3113 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3114 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3115 &quot;A String&quot;,
3116 ],
3117 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3118 },
3119 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3120 &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.
3121 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003122 &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 -08003123 &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.
3124 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3125 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3126 },
3127 },
3128 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3129 &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.
3130 &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.
3131 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3132 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3133 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3134 &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.
3135 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3136 &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.
3137 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003138 &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 -08003139 &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.
3140 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3141 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3142 },
3143 },
3144 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3145 &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.
3146 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3147 &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.
3148 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003149 &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 -08003150 &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.
3151 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3152 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3153 },
3154 },
3155 &quot;severityName&quot;: &quot;A String&quot;,
3156 },
3157 ],
3158 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3159 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
3160 },
3161}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003162</div>
3163
3164<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003165 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003166 <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 -07003167
3168Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003169 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 -07003170 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003171 The object takes the form of:
3172
3173{ # Request message for `SetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003174 &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.
3175 &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.
3176 { # Associates `members` with a `role`.
3177 &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).
3178 &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.
3179 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3180 &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.
3181 &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 -07003182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003183 &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`.
3184 &quot;A String&quot;,
3185 ],
3186 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3187 },
3188 ],
3189 &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.
3190 &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).
3191 },
3192}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003193
3194 x__xgafv: string, V1 error format.
3195 Allowed values
3196 1 - v1 error format
3197 2 - v2 error format
3198
3199Returns:
3200 An object of the form:
3201
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003202 { # 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 -08003203 &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.
3204 { # Associates `members` with a `role`.
3205 &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).
3206 &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.
3207 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3208 &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.
3209 &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 -07003210 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003211 &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`.
3212 &quot;A String&quot;,
3213 ],
3214 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3215 },
3216 ],
3217 &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.
3218 &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).
3219}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003220</div>
3221
3222<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003223 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003224 <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 -07003225
3226Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003227 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 -07003228 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003229 The object takes the form of:
3230
3231{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003232 &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).
3233 &quot;A String&quot;,
3234 ],
3235}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003236
3237 x__xgafv: string, V1 error format.
3238 Allowed values
3239 1 - v1 error format
3240 2 - v2 error format
3241
3242Returns:
3243 An object of the form:
3244
3245 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003246 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3247 &quot;A String&quot;,
3248 ],
3249}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003250</div>
3251
3252</body></html>