blob: 59622299e0a0e5bfd4845d11addac30f8a0705cd [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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700157 {
158 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
159 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700160 ],
161 &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.
162 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700163 &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.
164 {
165 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
166 },
167 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700168 &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.
169 },
170 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800171 &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 -0800172 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
173 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800174 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800175 &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 -0800176 &quot;builtArtifacts&quot;: [ # Output of the build.
177 { # Artifact describes a build product.
178 &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 -0800179 &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 -0800180 &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 -0800181 &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.
182 &quot;A String&quot;,
183 ],
184 },
185 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800186 &quot;commands&quot;: [ # Commands requested by the build.
187 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800188 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
189 &quot;A String&quot;,
190 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &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 -0800192 &quot;env&quot;: [ # Environment variables set before running this Command.
193 &quot;A String&quot;,
194 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800195 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
196 &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`.
197 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
198 &quot;A String&quot;,
199 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800200 },
201 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800202 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800203 &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.
204 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
205 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
206 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
207 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
208 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
209 &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.
210 { # 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.
211 &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.
212 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
213 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
214 &quot;name&quot;: &quot;A String&quot;, # The alias name.
215 },
216 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
217 &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.
218 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
219 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
220 },
221 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
222 },
223 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
224 },
225 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
226 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
227 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
228 &quot;name&quot;: &quot;A String&quot;, # The alias name.
229 },
230 &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.
231 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
232 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
233 },
234 &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).
235 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
236 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
237 },
238 &quot;labels&quot;: { # Labels with user defined metadata.
239 &quot;a_key&quot;: &quot;A String&quot;,
240 },
241 },
242 ],
243 &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.
244 &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)).
245 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
246 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
247 },
248 &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.
249 &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.
250 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
251 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
252 &quot;name&quot;: &quot;A String&quot;, # The alias name.
253 },
254 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
255 &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.
256 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
257 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
258 },
259 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
260 },
261 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
262 },
263 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
264 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
265 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
266 &quot;name&quot;: &quot;A String&quot;, # The alias name.
267 },
268 &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.
269 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
270 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
271 },
272 &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).
273 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
274 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
275 },
276 &quot;labels&quot;: { # Labels with user defined metadata.
277 &quot;a_key&quot;: &quot;A String&quot;,
278 },
279 },
280 &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.
281 &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.
282 &quot;fileHash&quot;: [ # Collection of file hashes.
283 { # Container message for hash values.
284 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
285 &quot;value&quot;: &quot;A String&quot;, # The hash value.
286 },
287 ],
288 },
289 },
290 &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.
291 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
292 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
293 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
294 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
295 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
296 },
297 &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.
298 &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)).
299 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
300 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
301 },
302 },
303 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
304 &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 -0800305 },
306 &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.
307 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700308 &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.
309 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
310 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
311 { # Details about files that caused a compliance check to fail.
312 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
313 &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.
314 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
315 },
316 ],
317 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800318 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800319 &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 -0800320 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
321 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
322 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
323 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800324 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
325 &quot;A String&quot;,
326 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800327 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800328 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800329 },
330 &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.
331 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
332 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
333 &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 -0800334 &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 -0800335 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
336 &quot;A String&quot;,
337 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800338 &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 -0800339 },
340 &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.
341 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800342 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800343 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800344 },
345 ],
346 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800347 &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 -0800348 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800349 &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.
350 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
351 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
352 {
353 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
354 },
355 ],
356 &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.
357 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800358 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800359 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
360 &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.
361 &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.
362 &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.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &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.
370 },
371 &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.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 &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}`.
375 &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`.
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
377 },
378 },
379 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700380 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
381 &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.
382 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
383 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
384 &quot;signatures&quot;: [ # The signatures over the payload
385 { # A DSSE signature
386 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
387 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
388 },
389 ],
390 },
391 &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;.
392 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
393 &quot;provenance&quot;: {
394 &quot;builderConfig&quot;: { # required
395 &quot;id&quot;: &quot;A String&quot;,
396 },
397 &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.
398 &quot;A String&quot;,
399 ],
400 &quot;metadata&quot;: { # Other properties of the build.
401 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
402 &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.
403 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
404 &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.
405 &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.
406 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
407 &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;.
408 },
409 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
410 },
411 &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
412 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700413 {
414 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
415 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700416 ],
417 &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.
418 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700419 &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.
420 {
421 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
422 },
423 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700424 &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.
425 },
426 },
427 &quot;subject&quot;: [
428 {
429 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
430 &quot;a_key&quot;: &quot;A String&quot;,
431 },
432 &quot;name&quot;: &quot;A String&quot;,
433 },
434 ],
435 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
436 },
437 },
438 &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
439 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
440 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
441 &quot;signatures&quot;: [ # The signatures over the payload
442 { # A DSSE signature
443 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
444 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
445 },
446 ],
447 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800448 &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.
449 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
450 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
451 &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.
452 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
453 &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.
454 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800455 &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 -0800456 &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.
457 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
458 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
459 },
460 },
461 ],
462 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
463 },
464 &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.
465 &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;
466 &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.
467 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
468 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
469 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
470 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
471 &quot;value&quot;: &quot;A String&quot;, # The hash value.
472 },
473 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
474 &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.
475 },
476 &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 -0700477 &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.
478 &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
479 &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
480 &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
481 &quot;A String&quot;,
482 ],
483 &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
484 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
485 &quot;A String&quot;,
486 ],
487 &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
488 &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
489 &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
490 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
491 },
492 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
493 &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
494 &quot;A String&quot;,
495 ],
496 &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
497 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
498 &quot;A String&quot;,
499 ],
500 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
501 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
502 &quot;A String&quot;,
503 ],
504 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700505 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
506 &quot;comments&quot;: &quot;A String&quot;, # Comments
507 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
508 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700509 &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
510 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700511 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700512 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
513 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700514 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -0700515 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700516 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
517 &quot;comments&quot;: &quot;A String&quot;, # Comments
518 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
519 },
520 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700521 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700522 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
523 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
524 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -0700525 },
526 &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.
527 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
528 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
529 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700530 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -0700531 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800532 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
533 &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.
534 &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.
535 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
536 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
537 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
538 &quot;A String&quot;,
539 ],
540 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
541 },
542 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
543 &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.
544 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800545 &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 -0800546 &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.
547 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
548 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
549 },
550 },
551 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
552 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700553 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800554 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
555 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
556 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
557 &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.
558 &quot;package&quot;: &quot;A String&quot;, # The package being described.
559 &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.
560 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800561 &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 -0800562 &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.
563 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
564 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
565 },
566 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700567 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800568 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
569 &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.
570 &quot;package&quot;: &quot;A String&quot;, # The package being described.
571 &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.
572 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800573 &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 -0800574 &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.
575 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
576 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
577 },
578 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700579 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800580 &quot;severityName&quot;: &quot;A String&quot;,
581 },
582 ],
583 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700584 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800585 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700586}
587
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700588 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 -0700589 x__xgafv: string, V1 error format.
590 Allowed values
591 1 - v1 error format
592 2 - v2 error format
593
594Returns:
595 An object of the form:
596
597 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800598 &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.
599 &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.
600 &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).
601 &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`.
602 &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.
603 },
604 },
605 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700606 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
607 &quot;builderConfig&quot;: { # required
608 &quot;id&quot;: &quot;A String&quot;,
609 },
610 &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.
611 &quot;A String&quot;,
612 ],
613 &quot;metadata&quot;: { # Other properties of the build.
614 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
615 &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.
616 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
617 &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.
618 &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.
619 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
620 &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;.
621 },
622 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
623 },
624 &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
625 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700626 {
627 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
628 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700629 ],
630 &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.
631 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700632 &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.
633 {
634 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
635 },
636 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700637 &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.
638 },
639 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800640 &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
641 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
642 &quot;a_key&quot;: &quot;A String&quot;,
643 },
644 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
645 &quot;builtArtifacts&quot;: [ # Output of the build.
646 { # Artifact describes a build product.
647 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
648 &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
649 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
650 &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.
651 &quot;A String&quot;,
652 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800653 },
654 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800655 &quot;commands&quot;: [ # Commands requested by the build.
656 { # Command describes a step performed as part of the build pipeline.
657 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
658 &quot;A String&quot;,
659 ],
660 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
661 &quot;env&quot;: [ # Environment variables set before running this Command.
662 &quot;A String&quot;,
663 ],
664 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
665 &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`.
666 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
667 &quot;A String&quot;,
668 ],
669 },
670 ],
671 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
672 &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.
673 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
674 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
675 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
676 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
677 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
678 &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.
679 { # 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 -0800680 &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 -0800681 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
682 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
683 &quot;name&quot;: &quot;A String&quot;, # The alias name.
684 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800685 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800686 &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.
687 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
688 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
689 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800690 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800691 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800692 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800693 },
694 &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 -0800695 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
696 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
697 &quot;name&quot;: &quot;A String&quot;, # The alias name.
698 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800699 &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 -0800700 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
701 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
702 },
703 &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).
704 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
705 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800706 },
707 &quot;labels&quot;: { # Labels with user defined metadata.
708 &quot;a_key&quot;: &quot;A String&quot;,
709 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800710 },
711 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800712 &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.
713 &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)).
714 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
715 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800716 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800717 &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.
718 &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.
719 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
720 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
721 &quot;name&quot;: &quot;A String&quot;, # The alias name.
722 },
723 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
724 &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.
725 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
726 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
727 },
728 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
729 },
730 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
731 },
732 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
733 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
734 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
735 &quot;name&quot;: &quot;A String&quot;, # The alias name.
736 },
737 &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.
738 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
739 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
740 },
741 &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).
742 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
743 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
744 },
745 &quot;labels&quot;: { # Labels with user defined metadata.
746 &quot;a_key&quot;: &quot;A String&quot;,
747 },
748 },
749 &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.
750 &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.
751 &quot;fileHash&quot;: [ # Collection of file hashes.
752 { # Container message for hash values.
753 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
754 &quot;value&quot;: &quot;A String&quot;, # The hash value.
755 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800756 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800757 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800758 },
759 &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.
760 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
761 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
762 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
763 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
764 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
765 },
766 &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.
767 &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)).
768 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
769 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
770 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800771 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800772 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
773 &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 -0800774 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800775 &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.
776 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700777 &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.
778 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
779 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
780 { # Details about files that caused a compliance check to fail.
781 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
782 &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.
783 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
784 },
785 ],
786 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800787 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
788 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
789 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
790 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
791 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
792 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
793 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
794 &quot;A String&quot;,
795 ],
796 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
797 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
798 },
799 &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.
800 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
801 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
802 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
803 &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.
804 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800805 &quot;A String&quot;,
806 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800807 &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 -0800808 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800809 &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.
810 { # Layer holds metadata specific to a layer of a Docker image.
811 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
812 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800813 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800814 ],
815 },
816 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
817 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
818 &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.
819 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
820 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
821 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800822 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
823 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800824 ],
825 &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.
826 },
827 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
828 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
829 &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.
830 &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.
831 &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 -0800832 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
833 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
834 {
835 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
836 },
837 ],
838 &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.
839 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800840 &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.
841 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
842 },
843 &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}`.
844 &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`.
845 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
846 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800847 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800848 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700849 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
850 &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.
851 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
852 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
853 &quot;signatures&quot;: [ # The signatures over the payload
854 { # A DSSE signature
855 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
856 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
857 },
858 ],
859 },
860 &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;.
861 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
862 &quot;provenance&quot;: {
863 &quot;builderConfig&quot;: { # required
864 &quot;id&quot;: &quot;A String&quot;,
865 },
866 &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.
867 &quot;A String&quot;,
868 ],
869 &quot;metadata&quot;: { # Other properties of the build.
870 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
871 &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.
872 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
873 &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.
874 &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.
875 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
876 &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;.
877 },
878 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
879 },
880 &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
881 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700882 {
883 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
884 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700885 ],
886 &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.
887 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -0700888 &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.
889 {
890 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
891 },
892 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700893 &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.
894 },
895 },
896 &quot;subject&quot;: [
897 {
898 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
899 &quot;a_key&quot;: &quot;A String&quot;,
900 },
901 &quot;name&quot;: &quot;A String&quot;,
902 },
903 ],
904 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
905 },
906 },
907 &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
908 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
909 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
910 &quot;signatures&quot;: [ # The signatures over the payload
911 { # A DSSE signature
912 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
913 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
914 },
915 ],
916 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800917 &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.
918 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
919 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
920 &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.
921 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
922 &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.
923 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800924 &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 -0800925 &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.
926 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
927 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
928 },
929 },
930 ],
931 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
932 },
933 &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.
934 &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;
935 &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.
936 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
937 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
938 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
939 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
940 &quot;value&quot;: &quot;A String&quot;, # The hash value.
941 },
942 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
943 &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.
944 },
945 &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 -0700946 &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.
947 &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
948 &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
949 &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
950 &quot;A String&quot;,
951 ],
952 &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
953 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
954 &quot;A String&quot;,
955 ],
956 &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
957 &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
958 &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
959 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
960 },
961 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
962 &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
963 &quot;A String&quot;,
964 ],
965 &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
966 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
967 &quot;A String&quot;,
968 ],
969 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
970 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
971 &quot;A String&quot;,
972 ],
973 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700974 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
975 &quot;comments&quot;: &quot;A String&quot;, # Comments
976 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
977 },
yoshi-code-botb539cc42021-08-03 00:20:27 -0700978 &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
979 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700980 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700981 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
982 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700983 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -0700984 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700985 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
986 &quot;comments&quot;: &quot;A String&quot;, # Comments
987 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
988 },
989 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700990 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700991 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
992 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
993 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -0700994 },
995 &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.
996 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
997 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
998 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -0700999 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001000 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001001 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1002 &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.
1003 &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.
1004 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1005 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1006 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1007 &quot;A String&quot;,
1008 ],
1009 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1010 },
1011 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1012 &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.
1013 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001014 &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 -08001015 &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.
1016 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1017 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1018 },
1019 },
1020 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1021 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001022 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001023 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1024 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1025 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1026 &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.
1027 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1028 &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.
1029 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001030 &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 -08001031 &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.
1032 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1033 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1034 },
1035 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001036 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001037 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1038 &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.
1039 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1040 &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.
1041 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001042 &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 -08001043 &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.
1044 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1045 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1046 },
1047 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001048 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001049 &quot;severityName&quot;: &quot;A String&quot;,
1050 },
1051 ],
1052 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001053 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001054 },
1055}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001056</div>
1057
1058<div class="method">
1059 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001060 <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 -07001061
1062Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001063 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 -07001064 x__xgafv: string, V1 error format.
1065 Allowed values
1066 1 - v1 error format
1067 2 - v2 error format
1068
1069Returns:
1070 An object of the form:
1071
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001072 { # 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 -08001073}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001074</div>
1075
1076<div class="method">
1077 <code class="details" id="get">get(name, x__xgafv=None)</code>
1078 <pre>Returns the requested `Occurrence`.
1079
1080Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001081 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 -07001082 x__xgafv: string, V1 error format.
1083 Allowed values
1084 1 - v1 error format
1085 2 - v2 error format
1086
1087Returns:
1088 An object of the form:
1089
1090 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001091 &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.
1092 &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.
1093 &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).
1094 &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`.
1095 &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.
1096 },
1097 },
1098 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001099 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1100 &quot;builderConfig&quot;: { # required
1101 &quot;id&quot;: &quot;A String&quot;,
1102 },
1103 &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.
1104 &quot;A String&quot;,
1105 ],
1106 &quot;metadata&quot;: { # Other properties of the build.
1107 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1108 &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.
1109 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1110 &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.
1111 &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.
1112 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1113 &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;.
1114 },
1115 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1116 },
1117 &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
1118 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001119 {
1120 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1121 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001122 ],
1123 &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.
1124 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001125 &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.
1126 {
1127 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1128 },
1129 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001130 &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.
1131 },
1132 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001133 &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
1134 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1135 &quot;a_key&quot;: &quot;A String&quot;,
1136 },
1137 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1138 &quot;builtArtifacts&quot;: [ # Output of the build.
1139 { # Artifact describes a build product.
1140 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1141 &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
1142 &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.
1143 &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.
1144 &quot;A String&quot;,
1145 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001146 },
1147 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001148 &quot;commands&quot;: [ # Commands requested by the build.
1149 { # Command describes a step performed as part of the build pipeline.
1150 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1151 &quot;A String&quot;,
1152 ],
1153 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1154 &quot;env&quot;: [ # Environment variables set before running this Command.
1155 &quot;A String&quot;,
1156 ],
1157 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1158 &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`.
1159 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1160 &quot;A String&quot;,
1161 ],
1162 },
1163 ],
1164 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1165 &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.
1166 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1167 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1168 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1169 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1170 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1171 &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.
1172 { # 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 -08001173 &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 -08001174 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1175 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1176 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1177 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001178 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001179 &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.
1180 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1181 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1182 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001183 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001184 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001185 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001186 },
1187 &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 -08001188 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1189 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1190 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1191 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001192 &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 -08001193 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1194 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1195 },
1196 &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).
1197 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1198 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001199 },
1200 &quot;labels&quot;: { # Labels with user defined metadata.
1201 &quot;a_key&quot;: &quot;A String&quot;,
1202 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001203 },
1204 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001205 &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.
1206 &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)).
1207 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1208 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001209 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001210 &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.
1211 &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.
1212 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1213 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1214 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1215 },
1216 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1217 &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.
1218 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1219 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1220 },
1221 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1222 },
1223 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1224 },
1225 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1226 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1227 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1228 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1229 },
1230 &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.
1231 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1232 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1233 },
1234 &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).
1235 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1236 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1237 },
1238 &quot;labels&quot;: { # Labels with user defined metadata.
1239 &quot;a_key&quot;: &quot;A String&quot;,
1240 },
1241 },
1242 &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.
1243 &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.
1244 &quot;fileHash&quot;: [ # Collection of file hashes.
1245 { # Container message for hash values.
1246 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1247 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1248 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001249 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001250 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001251 },
1252 &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.
1253 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1254 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1255 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1256 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1257 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1258 },
1259 &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.
1260 &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)).
1261 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1262 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1263 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001264 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001265 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1266 &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 -08001267 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001268 &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.
1269 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001270 &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.
1271 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1272 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1273 { # Details about files that caused a compliance check to fail.
1274 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1275 &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.
1276 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1277 },
1278 ],
1279 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001280 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1281 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1282 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1283 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1284 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1285 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1286 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1287 &quot;A String&quot;,
1288 ],
1289 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1290 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1291 },
1292 &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.
1293 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1294 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1295 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1296 &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.
1297 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001298 &quot;A String&quot;,
1299 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001300 &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 -08001301 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001302 &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.
1303 { # Layer holds metadata specific to a layer of a Docker image.
1304 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1305 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001306 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001307 ],
1308 },
1309 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1310 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1311 &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.
1312 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1313 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1314 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001315 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1316 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001317 ],
1318 &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.
1319 },
1320 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1321 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1322 &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.
1323 &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.
1324 &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 -08001325 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1326 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1327 {
1328 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1329 },
1330 ],
1331 &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.
1332 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001333 &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.
1334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1335 },
1336 &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}`.
1337 &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`.
1338 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1339 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001340 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001341 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001342 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1343 &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.
1344 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1345 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1346 &quot;signatures&quot;: [ # The signatures over the payload
1347 { # A DSSE signature
1348 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1349 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1350 },
1351 ],
1352 },
1353 &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;.
1354 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1355 &quot;provenance&quot;: {
1356 &quot;builderConfig&quot;: { # required
1357 &quot;id&quot;: &quot;A String&quot;,
1358 },
1359 &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.
1360 &quot;A String&quot;,
1361 ],
1362 &quot;metadata&quot;: { # Other properties of the build.
1363 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1364 &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.
1365 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1366 &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.
1367 &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.
1368 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1369 &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;.
1370 },
1371 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1372 },
1373 &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
1374 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001375 {
1376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1377 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001378 ],
1379 &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.
1380 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001381 &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.
1382 {
1383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1384 },
1385 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001386 &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.
1387 },
1388 },
1389 &quot;subject&quot;: [
1390 {
1391 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1392 &quot;a_key&quot;: &quot;A String&quot;,
1393 },
1394 &quot;name&quot;: &quot;A String&quot;,
1395 },
1396 ],
1397 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1398 },
1399 },
1400 &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
1401 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1402 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1403 &quot;signatures&quot;: [ # The signatures over the payload
1404 { # A DSSE signature
1405 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1406 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1407 },
1408 ],
1409 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001410 &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.
1411 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1412 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1413 &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.
1414 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1415 &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.
1416 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001417 &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 -08001418 &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.
1419 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1420 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1421 },
1422 },
1423 ],
1424 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1425 },
1426 &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.
1427 &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;
1428 &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.
1429 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1430 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1431 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1432 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1433 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1434 },
1435 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1436 &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.
1437 },
1438 &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 -07001439 &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.
1440 &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
1441 &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
1442 &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
1443 &quot;A String&quot;,
1444 ],
1445 &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
1446 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1447 &quot;A String&quot;,
1448 ],
1449 &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
1450 &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
1451 &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
1452 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1453 },
1454 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1455 &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
1456 &quot;A String&quot;,
1457 ],
1458 &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
1459 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1460 &quot;A String&quot;,
1461 ],
1462 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1463 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1464 &quot;A String&quot;,
1465 ],
1466 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001467 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
1468 &quot;comments&quot;: &quot;A String&quot;, # Comments
1469 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1470 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001471 &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
1472 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001473 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001474 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1475 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001476 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07001477 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001478 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
1479 &quot;comments&quot;: &quot;A String&quot;, # Comments
1480 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1481 },
1482 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001483 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001484 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
1485 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
1486 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07001487 },
1488 &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.
1489 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1490 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1491 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001492 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001493 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001494 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1495 &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.
1496 &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.
1497 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1498 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1499 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1500 &quot;A String&quot;,
1501 ],
1502 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1503 },
1504 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1505 &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.
1506 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001507 &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 -08001508 &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.
1509 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1510 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1511 },
1512 },
1513 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1514 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001515 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001516 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1517 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1518 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1519 &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.
1520 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1521 &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.
1522 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001523 &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 -08001524 &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.
1525 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1526 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1527 },
1528 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001529 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001530 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1531 &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.
1532 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1533 &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.
1534 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001535 &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 -08001536 &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.
1537 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1538 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1539 },
1540 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001541 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001542 &quot;severityName&quot;: &quot;A String&quot;,
1543 },
1544 ],
1545 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001546 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001547 },
1548}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001549</div>
1550
1551<div class="method">
1552 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001553 <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 -07001554
1555Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001556 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 -07001557 body: object, The request body.
1558 The object takes the form of:
1559
1560{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001561 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1562 &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).
1563 },
1564}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001565
1566 x__xgafv: string, V1 error format.
1567 Allowed values
1568 1 - v1 error format
1569 2 - v2 error format
1570
1571Returns:
1572 An object of the form:
1573
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001574 { # 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`, or principals, to a single `role`. Principals 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/).
1575 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
1576 { # Associates `members`, or principals, with a `role`.
1577 &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 principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001578 &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.
1579 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1580 &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.
1581 &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 -07001582 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001583 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001584 &quot;A String&quot;,
1585 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001586 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001587 },
1588 ],
1589 &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.
1590 &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).
1591}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001592</div>
1593
1594<div class="method">
1595 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1596 <pre>Gets the `Note` attached to the given `Occurrence`.
1597
1598Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001599 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 -07001600 x__xgafv: string, V1 error format.
1601 Allowed values
1602 1 - v1 error format
1603 2 - v2 error format
1604
1605Returns:
1606 An object of the form:
1607
1608 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001609 &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.
1610 &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.
1611 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1612 },
1613 },
1614 &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.
1615 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1616 &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.
1617 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1618 &quot;A String&quot;,
1619 ],
1620 &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.
1621 },
1622 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1623 },
1624 &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.
1625 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1626 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1627 &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).
1628 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1629 &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`
1630 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1631 },
1632 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001633 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1634 &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.
1635 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1636 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1637 },
1638 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1639 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1640 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1641 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1642 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1643 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1644 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1645 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1646 &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.
1647 },
1648 ],
1649 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001650 &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.
1651 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1652 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1653 &quot;A String&quot;,
1654 ],
1655 },
1656 &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.
1657 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1658 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001659 &quot;dsseAttestation&quot;: { # A note describing an attestation # A note describing a dsse attestation note.
1660 &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.
1661 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
1662 },
1663 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001664 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1665 &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.
1666 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1667 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1668 &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.
1669 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1670 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1671 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1672 &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.
1673 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1674 &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 -08001675 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001676 &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 -08001677 &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 -08001678 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001679 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1680 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001681 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1682 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001683 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001684 ],
1685 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1686 },
1687 &quot;relatedUrl&quot;: [ # URLs associated with this note
1688 { # Metadata for any related URL information
1689 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1690 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1691 },
1692 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001693 &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.
1694 &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;)
1695 &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
1696 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001697 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001698 &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.
1699 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1700 &quot;A String&quot;,
1701 ],
1702 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1703 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1704 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001705 &quot;spdxPackage&quot;: { # PackageInfoNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001706 &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
1707 &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
1708 &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
1709 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1710 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1711 &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
1712 &quot;externalRefs&quot;: [ # ExternalRef
1713 { # 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
1714 &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
1715 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1716 &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
1717 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1718 },
1719 ],
1720 &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
1721 &quot;A String&quot;,
1722 ],
1723 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001724 &quot;licenseDeclared&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # List the licenses that have been declared by the authors of the package
1725 &quot;comments&quot;: &quot;A String&quot;, # Comments
1726 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
1727 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07001728 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001729 &quot;packageType&quot;: &quot;A String&quot;, # The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001730 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1731 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1732 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1733 &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
1734 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1735 },
1736 &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.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07001737 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07001738 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001739 &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.
1740 &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.
1741 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1742 { # 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.
1743 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1744 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1745 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001746 &quot;A String&quot;,
1747 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001748 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001749 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001750 ],
1751 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1752 &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.
1753 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001754 &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 -08001755 &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.
1756 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1757 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1758 },
1759 },
1760 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1761 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1762 &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.
1763 { # 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
1764 &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.
1765 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1766 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1767 &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.
1768 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1769 &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.
1770 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001771 &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 -08001772 &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.
1773 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1774 &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 -08001775 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001776 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001777 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1778 &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.
1779 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001780 &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 -08001781 &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.
1782 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1783 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1784 },
1785 &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.
1786 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001787 &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 -08001788 &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.
1789 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1790 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1791 },
1792 &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.
1793 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1794 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001795 &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 -07001796 &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 -08001797 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001798 ],
1799 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1800 },
1801}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001802</div>
1803
1804<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001805 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001806 <pre>Gets a summary of the number and severity of occurrences.
1807
1808Args:
1809 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001810 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001811 x__xgafv: string, V1 error format.
1812 Allowed values
1813 1 - v1 error format
1814 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001815
1816Returns:
1817 An object of the form:
1818
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001819 { # 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 -08001820 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
1821 { # The number of occurrences created for a specific severity.
1822 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
1823 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
1824 },
1825 ],
1826}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001827</div>
1828
1829<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001830 <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 -07001831 <pre>Lists active `Occurrences` for a given project matching the filters.
1832
1833Args:
1834 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001835 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001836 kind: string, The kind of occurrences to filter on.
1837 Allowed values
1838 KIND_UNSPECIFIED - Unknown
1839 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1840 BUILD_DETAILS - The note and occurrence assert build provenance.
1841 IMAGE_BASIS - This represents an image basis relationship.
1842 PACKAGE_MANAGER - This represents a package installed via a package manager.
1843 DEPLOYABLE - The note and occurrence track deployment events.
1844 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1845 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1846 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001847 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001848 SBOM - This represents a software bill of materials.
1849 SPDX_PACKAGE - This represents an SPDX Package.
1850 SPDX_FILE - This represents an SPDX File.
1851 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001852 DSSE_ATTESTATION - This represents a DSSE attestation Note
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001853 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
1854 pageSize: integer, Number of occurrences to return in the list.
1855 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001856 x__xgafv: string, V1 error format.
1857 Allowed values
1858 1 - v1 error format
1859 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001860
1861Returns:
1862 An object of the form:
1863
1864 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001865 &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.
1866 &quot;occurrences&quot;: [ # The occurrences requested.
1867 { # `Occurrence` includes information about analysis occurrences for an image.
1868 &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.
1869 &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.
1870 &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).
1871 &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`.
1872 &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.
1873 },
1874 },
1875 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001876 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1877 &quot;builderConfig&quot;: { # required
1878 &quot;id&quot;: &quot;A String&quot;,
1879 },
1880 &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.
1881 &quot;A String&quot;,
1882 ],
1883 &quot;metadata&quot;: { # Other properties of the build.
1884 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1885 &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.
1886 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1887 &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.
1888 &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.
1889 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1890 &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;.
1891 },
1892 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1893 },
1894 &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
1895 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001896 {
1897 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1898 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001899 ],
1900 &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.
1901 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07001902 &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.
1903 {
1904 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1905 },
1906 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001907 &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.
1908 },
1909 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001910 &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
1911 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1912 &quot;a_key&quot;: &quot;A String&quot;,
1913 },
1914 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1915 &quot;builtArtifacts&quot;: [ # Output of the build.
1916 { # Artifact describes a build product.
1917 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1918 &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
1919 &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.
1920 &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.
1921 &quot;A String&quot;,
1922 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001923 },
1924 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001925 &quot;commands&quot;: [ # Commands requested by the build.
1926 { # Command describes a step performed as part of the build pipeline.
1927 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1928 &quot;A String&quot;,
1929 ],
1930 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1931 &quot;env&quot;: [ # Environment variables set before running this Command.
1932 &quot;A String&quot;,
1933 ],
1934 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1935 &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`.
1936 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1937 &quot;A String&quot;,
1938 ],
1939 },
1940 ],
1941 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1942 &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.
1943 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1944 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1945 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1946 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1947 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1948 &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.
1949 { # 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 -08001950 &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 -08001951 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1952 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1953 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1954 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001955 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001956 &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.
1957 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1958 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1959 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001960 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001961 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001962 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001963 },
1964 &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 -08001965 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1966 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1967 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1968 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001969 &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 -08001970 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1971 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1972 },
1973 &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).
1974 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1975 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001976 },
1977 &quot;labels&quot;: { # Labels with user defined metadata.
1978 &quot;a_key&quot;: &quot;A String&quot;,
1979 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001980 },
1981 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001982 &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.
1983 &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)).
1984 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1985 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001986 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001987 &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.
1988 &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.
1989 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1990 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1991 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1992 },
1993 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1994 &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.
1995 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1996 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1997 },
1998 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1999 },
2000 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2001 },
2002 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2003 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2004 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2005 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2006 },
2007 &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.
2008 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2009 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2010 },
2011 &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).
2012 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2013 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2014 },
2015 &quot;labels&quot;: { # Labels with user defined metadata.
2016 &quot;a_key&quot;: &quot;A String&quot;,
2017 },
2018 },
2019 &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.
2020 &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.
2021 &quot;fileHash&quot;: [ # Collection of file hashes.
2022 { # Container message for hash values.
2023 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2024 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2025 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002026 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002027 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002028 },
2029 &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.
2030 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2031 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2032 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2033 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2034 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2035 },
2036 &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.
2037 &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)).
2038 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2039 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2040 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002041 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002042 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2043 &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 -08002044 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002045 &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.
2046 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002047 &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.
2048 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2049 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2050 { # Details about files that caused a compliance check to fail.
2051 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2052 &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.
2053 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2054 },
2055 ],
2056 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002057 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2058 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2059 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2060 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2061 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2062 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2063 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2064 &quot;A String&quot;,
2065 ],
2066 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2067 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2068 },
2069 &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.
2070 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2071 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2072 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2073 &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.
2074 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002075 &quot;A String&quot;,
2076 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002077 &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 -08002078 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002079 &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.
2080 { # Layer holds metadata specific to a layer of a Docker image.
2081 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2082 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002083 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002084 ],
2085 },
2086 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2087 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2088 &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.
2089 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2090 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2091 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002092 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2093 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002094 ],
2095 &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.
2096 },
2097 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2098 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2099 &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.
2100 &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.
2101 &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 -08002102 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2103 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2104 {
2105 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2106 },
2107 ],
2108 &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.
2109 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002110 &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.
2111 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2112 },
2113 &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}`.
2114 &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`.
2115 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2116 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002117 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002118 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002119 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2120 &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.
2121 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2122 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2123 &quot;signatures&quot;: [ # The signatures over the payload
2124 { # A DSSE signature
2125 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2126 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2127 },
2128 ],
2129 },
2130 &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;.
2131 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2132 &quot;provenance&quot;: {
2133 &quot;builderConfig&quot;: { # required
2134 &quot;id&quot;: &quot;A String&quot;,
2135 },
2136 &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.
2137 &quot;A String&quot;,
2138 ],
2139 &quot;metadata&quot;: { # Other properties of the build.
2140 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2141 &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.
2142 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2143 &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.
2144 &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.
2145 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2146 &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;.
2147 },
2148 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2149 },
2150 &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
2151 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002152 {
2153 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2154 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002155 ],
2156 &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.
2157 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002158 &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.
2159 {
2160 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2161 },
2162 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002163 &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.
2164 },
2165 },
2166 &quot;subject&quot;: [
2167 {
2168 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2169 &quot;a_key&quot;: &quot;A String&quot;,
2170 },
2171 &quot;name&quot;: &quot;A String&quot;,
2172 },
2173 ],
2174 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2175 },
2176 },
2177 &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
2178 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2179 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2180 &quot;signatures&quot;: [ # The signatures over the payload
2181 { # A DSSE signature
2182 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2183 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2184 },
2185 ],
2186 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002187 &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.
2188 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2189 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2190 &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.
2191 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2192 &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.
2193 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002194 &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 -08002195 &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.
2196 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2197 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2198 },
2199 },
2200 ],
2201 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2202 },
2203 &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.
2204 &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;
2205 &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.
2206 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2207 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2208 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2209 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2210 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2211 },
2212 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2213 &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.
2214 },
2215 &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 -07002216 &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.
2217 &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
2218 &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
2219 &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
2220 &quot;A String&quot;,
2221 ],
2222 &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
2223 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2224 &quot;A String&quot;,
2225 ],
2226 &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
2227 &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
2228 &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
2229 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2230 },
2231 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2232 &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
2233 &quot;A String&quot;,
2234 ],
2235 &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
2236 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2237 &quot;A String&quot;,
2238 ],
2239 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2240 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2241 &quot;A String&quot;,
2242 ],
2243 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002244 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
2245 &quot;comments&quot;: &quot;A String&quot;, # Comments
2246 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2247 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002248 &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
2249 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002250 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002251 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2252 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002253 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07002254 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002255 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
2256 &quot;comments&quot;: &quot;A String&quot;, # Comments
2257 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2258 },
2259 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002260 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002261 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
2262 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
2263 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07002264 },
2265 &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.
2266 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2267 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2268 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002269 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07002270 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002271 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2272 &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.
2273 &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.
2274 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2275 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2276 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2277 &quot;A String&quot;,
2278 ],
2279 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2280 },
2281 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2282 &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.
2283 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002284 &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 -08002285 &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.
2286 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2287 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2288 },
2289 },
2290 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2291 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002292 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002293 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2294 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2295 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2296 &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.
2297 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2298 &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.
2299 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002300 &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 -08002301 &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.
2302 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2303 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2304 },
2305 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002306 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002307 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2308 &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.
2309 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2310 &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.
2311 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002312 &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 -08002313 &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.
2314 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2315 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2316 },
2317 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002318 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002319 &quot;severityName&quot;: &quot;A String&quot;,
2320 },
2321 ],
2322 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002323 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002324 },
2325 },
2326 ],
2327}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002328</div>
2329
2330<div class="method">
2331 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2332 <pre>Retrieves the next page of results.
2333
2334Args:
2335 previous_request: The request for the previous page. (required)
2336 previous_response: The response from the request for the previous page. (required)
2337
2338Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002339 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002340 page. Returns None if there are no more items in the collection.
2341 </pre>
2342</div>
2343
2344<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002345 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002346 <pre>Updates an existing occurrence.
2347
2348Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002349 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 -07002350 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002351 The object takes the form of:
2352
2353{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002354 &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.
2355 &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.
2356 &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).
2357 &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`.
2358 &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.
2359 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002360 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002361 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002362 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2363 &quot;builderConfig&quot;: { # required
2364 &quot;id&quot;: &quot;A String&quot;,
2365 },
2366 &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.
2367 &quot;A String&quot;,
2368 ],
2369 &quot;metadata&quot;: { # Other properties of the build.
2370 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2371 &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.
2372 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2373 &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.
2374 &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.
2375 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2376 &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;.
2377 },
2378 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2379 },
2380 &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
2381 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002382 {
2383 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2384 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002385 ],
2386 &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.
2387 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002388 &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.
2389 {
2390 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2391 },
2392 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002393 &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.
2394 },
2395 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002396 &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 -08002397 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2398 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002399 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002400 &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 -08002401 &quot;builtArtifacts&quot;: [ # Output of the build.
2402 { # Artifact describes a build product.
2403 &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 -08002404 &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 -08002405 &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 -08002406 &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.
2407 &quot;A String&quot;,
2408 ],
2409 },
2410 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002411 &quot;commands&quot;: [ # Commands requested by the build.
2412 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002413 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2414 &quot;A String&quot;,
2415 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002416 &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 -08002417 &quot;env&quot;: [ # Environment variables set before running this Command.
2418 &quot;A String&quot;,
2419 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002420 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2421 &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`.
2422 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2423 &quot;A String&quot;,
2424 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002425 },
2426 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002427 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002428 &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.
2429 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2430 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2431 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2432 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2433 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2434 &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.
2435 { # 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.
2436 &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.
2437 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2438 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2439 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2440 },
2441 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2442 &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.
2443 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2444 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2445 },
2446 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2447 },
2448 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2449 },
2450 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2451 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2452 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2453 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2454 },
2455 &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.
2456 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2457 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2458 },
2459 &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).
2460 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2461 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2462 },
2463 &quot;labels&quot;: { # Labels with user defined metadata.
2464 &quot;a_key&quot;: &quot;A String&quot;,
2465 },
2466 },
2467 ],
2468 &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.
2469 &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)).
2470 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2471 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2472 },
2473 &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.
2474 &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.
2475 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2476 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2477 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2478 },
2479 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2480 &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.
2481 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2482 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2483 },
2484 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2485 },
2486 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2487 },
2488 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2489 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2490 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2491 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2492 },
2493 &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.
2494 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2495 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2496 },
2497 &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).
2498 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2499 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2500 },
2501 &quot;labels&quot;: { # Labels with user defined metadata.
2502 &quot;a_key&quot;: &quot;A String&quot;,
2503 },
2504 },
2505 &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.
2506 &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.
2507 &quot;fileHash&quot;: [ # Collection of file hashes.
2508 { # Container message for hash values.
2509 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2510 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2511 },
2512 ],
2513 },
2514 },
2515 &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.
2516 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2517 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2518 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2519 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2520 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2521 },
2522 &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.
2523 &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)).
2524 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2525 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2526 },
2527 },
2528 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2529 &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 -08002530 },
2531 &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.
2532 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002533 &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.
2534 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2535 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2536 { # Details about files that caused a compliance check to fail.
2537 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2538 &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.
2539 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2540 },
2541 ],
2542 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002543 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002544 &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 -08002545 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2546 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2547 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2548 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002549 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2550 &quot;A String&quot;,
2551 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002552 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002553 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002554 },
2555 &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.
2556 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2557 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2558 &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 -08002559 &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 -08002560 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2561 &quot;A String&quot;,
2562 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002563 &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 -08002564 },
2565 &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.
2566 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002567 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002568 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002569 },
2570 ],
2571 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002572 &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 -08002573 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002574 &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.
2575 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2576 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2577 {
2578 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2579 },
2580 ],
2581 &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.
2582 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002583 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002584 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2585 &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.
2586 &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.
2587 &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.
2588 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2589 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2590 {
2591 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2592 },
2593 ],
2594 &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.
2595 },
2596 &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.
2597 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2598 },
2599 &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}`.
2600 &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`.
2601 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2602 },
2603 },
2604 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002605 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2606 &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.
2607 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2608 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2609 &quot;signatures&quot;: [ # The signatures over the payload
2610 { # A DSSE signature
2611 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2612 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2613 },
2614 ],
2615 },
2616 &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;.
2617 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2618 &quot;provenance&quot;: {
2619 &quot;builderConfig&quot;: { # required
2620 &quot;id&quot;: &quot;A String&quot;,
2621 },
2622 &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.
2623 &quot;A String&quot;,
2624 ],
2625 &quot;metadata&quot;: { # Other properties of the build.
2626 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2627 &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.
2628 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2629 &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.
2630 &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.
2631 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2632 &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;.
2633 },
2634 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2635 },
2636 &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
2637 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002638 {
2639 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2640 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002641 ],
2642 &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.
2643 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002644 &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.
2645 {
2646 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2647 },
2648 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002649 &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.
2650 },
2651 },
2652 &quot;subject&quot;: [
2653 {
2654 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2655 &quot;a_key&quot;: &quot;A String&quot;,
2656 },
2657 &quot;name&quot;: &quot;A String&quot;,
2658 },
2659 ],
2660 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2661 },
2662 },
2663 &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
2664 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2665 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2666 &quot;signatures&quot;: [ # The signatures over the payload
2667 { # A DSSE signature
2668 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2669 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2670 },
2671 ],
2672 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002673 &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.
2674 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2675 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2676 &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.
2677 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2678 &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.
2679 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002680 &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 -08002681 &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.
2682 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2683 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2684 },
2685 },
2686 ],
2687 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2688 },
2689 &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.
2690 &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;
2691 &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.
2692 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2693 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2694 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2695 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2696 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2697 },
2698 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2699 &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.
2700 },
2701 &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 -07002702 &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.
2703 &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
2704 &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
2705 &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
2706 &quot;A String&quot;,
2707 ],
2708 &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
2709 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2710 &quot;A String&quot;,
2711 ],
2712 &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
2713 &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
2714 &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
2715 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2716 },
2717 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2718 &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
2719 &quot;A String&quot;,
2720 ],
2721 &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
2722 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2723 &quot;A String&quot;,
2724 ],
2725 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2726 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2727 &quot;A String&quot;,
2728 ],
2729 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002730 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
2731 &quot;comments&quot;: &quot;A String&quot;, # Comments
2732 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2733 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07002734 &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
2735 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002736 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002737 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2738 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002739 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07002740 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002741 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
2742 &quot;comments&quot;: &quot;A String&quot;, # Comments
2743 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
2744 },
2745 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07002746 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002747 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
2748 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
2749 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07002750 },
2751 &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.
2752 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2753 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2754 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07002755 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07002756 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002757 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2758 &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.
2759 &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.
2760 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2761 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2762 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2763 &quot;A String&quot;,
2764 ],
2765 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2766 },
2767 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2768 &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.
2769 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002770 &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 -08002771 &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.
2772 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2773 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2774 },
2775 },
2776 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2777 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002778 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002779 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2780 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2781 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2782 &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.
2783 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2784 &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.
2785 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002786 &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 -08002787 &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.
2788 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2789 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2790 },
2791 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002792 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002793 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2794 &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.
2795 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2796 &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.
2797 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002798 &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 -08002799 &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.
2800 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2801 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2802 },
2803 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002804 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002805 &quot;severityName&quot;: &quot;A String&quot;,
2806 },
2807 ],
2808 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002809 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002810 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002811}
2812
2813 updateMask: string, The fields to update.
2814 x__xgafv: string, V1 error format.
2815 Allowed values
2816 1 - v1 error format
2817 2 - v2 error format
2818
2819Returns:
2820 An object of the form:
2821
2822 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002823 &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.
2824 &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.
2825 &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).
2826 &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`.
2827 &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.
2828 },
2829 },
2830 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002831 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2832 &quot;builderConfig&quot;: { # required
2833 &quot;id&quot;: &quot;A String&quot;,
2834 },
2835 &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.
2836 &quot;A String&quot;,
2837 ],
2838 &quot;metadata&quot;: { # Other properties of the build.
2839 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2840 &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.
2841 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2842 &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.
2843 &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.
2844 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2845 &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;.
2846 },
2847 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2848 },
2849 &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
2850 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002851 {
2852 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2853 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002854 ],
2855 &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.
2856 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07002857 &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.
2858 {
2859 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2860 },
2861 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002862 &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.
2863 },
2864 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002865 &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
2866 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2867 &quot;a_key&quot;: &quot;A String&quot;,
2868 },
2869 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2870 &quot;builtArtifacts&quot;: [ # Output of the build.
2871 { # Artifact describes a build product.
2872 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2873 &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
2874 &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.
2875 &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.
2876 &quot;A String&quot;,
2877 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002878 },
2879 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002880 &quot;commands&quot;: [ # Commands requested by the build.
2881 { # Command describes a step performed as part of the build pipeline.
2882 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2883 &quot;A String&quot;,
2884 ],
2885 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2886 &quot;env&quot;: [ # Environment variables set before running this Command.
2887 &quot;A String&quot;,
2888 ],
2889 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2890 &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`.
2891 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2892 &quot;A String&quot;,
2893 ],
2894 },
2895 ],
2896 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2897 &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.
2898 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2899 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2900 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2901 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2902 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2903 &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.
2904 { # 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 -08002905 &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 -08002906 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2907 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2908 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2909 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002910 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002911 &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.
2912 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2913 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2914 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002915 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002916 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002917 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002918 },
2919 &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 -08002920 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2921 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2922 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2923 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002924 &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 -08002925 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2926 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2927 },
2928 &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).
2929 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2930 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002931 },
2932 &quot;labels&quot;: { # Labels with user defined metadata.
2933 &quot;a_key&quot;: &quot;A String&quot;,
2934 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002935 },
2936 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002937 &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.
2938 &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)).
2939 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2940 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002941 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002942 &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.
2943 &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.
2944 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2945 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2946 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2947 },
2948 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2949 &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.
2950 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2951 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2952 },
2953 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2954 },
2955 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2956 },
2957 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2958 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2959 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2960 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2961 },
2962 &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.
2963 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2964 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2965 },
2966 &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).
2967 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2968 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2969 },
2970 &quot;labels&quot;: { # Labels with user defined metadata.
2971 &quot;a_key&quot;: &quot;A String&quot;,
2972 },
2973 },
2974 &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.
2975 &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.
2976 &quot;fileHash&quot;: [ # Collection of file hashes.
2977 { # Container message for hash values.
2978 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2979 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2980 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002981 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002982 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002983 },
2984 &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.
2985 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2986 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2987 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2988 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2989 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2990 },
2991 &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.
2992 &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)).
2993 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2994 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2995 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002996 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002997 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2998 &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 -08002999 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003000 &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.
3001 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07003002 &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.
3003 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
3004 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
3005 { # Details about files that caused a compliance check to fail.
3006 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
3007 &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.
3008 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
3009 },
3010 ],
3011 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003012 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
3013 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3014 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3015 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3016 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
3017 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3018 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
3019 &quot;A String&quot;,
3020 ],
3021 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3022 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3023 },
3024 &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.
3025 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
3026 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
3027 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
3028 &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.
3029 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003030 &quot;A String&quot;,
3031 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003032 &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 -08003033 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003034 &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.
3035 { # Layer holds metadata specific to a layer of a Docker image.
3036 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3037 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08003038 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003039 ],
3040 },
3041 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3042 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3043 &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.
3044 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3045 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3046 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003047 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3048 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003049 ],
3050 &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.
3051 },
3052 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3053 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3054 &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.
3055 &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.
3056 &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 -08003057 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3058 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
3059 {
3060 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3061 },
3062 ],
3063 &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.
3064 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003065 &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.
3066 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3067 },
3068 &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}`.
3069 &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`.
3070 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3071 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08003072 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003073 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003074 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
3075 &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.
3076 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3077 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3078 &quot;signatures&quot;: [ # The signatures over the payload
3079 { # A DSSE signature
3080 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3081 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3082 },
3083 ],
3084 },
3085 &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;.
3086 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
3087 &quot;provenance&quot;: {
3088 &quot;builderConfig&quot;: { # required
3089 &quot;id&quot;: &quot;A String&quot;,
3090 },
3091 &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.
3092 &quot;A String&quot;,
3093 ],
3094 &quot;metadata&quot;: { # Other properties of the build.
3095 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3096 &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.
3097 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3098 &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.
3099 &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.
3100 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3101 &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;.
3102 },
3103 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3104 },
3105 &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
3106 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003107 {
3108 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3109 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003110 ],
3111 &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.
3112 &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.
yoshi-code-bot2da5ed12021-09-07 00:20:27 -07003113 &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.
3114 {
3115 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3116 },
3117 ],
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07003118 &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.
3119 },
3120 },
3121 &quot;subject&quot;: [
3122 {
3123 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3124 &quot;a_key&quot;: &quot;A String&quot;,
3125 },
3126 &quot;name&quot;: &quot;A String&quot;,
3127 },
3128 ],
3129 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3130 },
3131 },
3132 &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
3133 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3134 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3135 &quot;signatures&quot;: [ # The signatures over the payload
3136 { # A DSSE signature
3137 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3138 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3139 },
3140 ],
3141 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003142 &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.
3143 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3144 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3145 &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.
3146 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
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 installed at this location.
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 ],
3156 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3157 },
3158 &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.
3159 &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;
3160 &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.
3161 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3162 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3163 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3164 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3165 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3166 },
3167 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3168 &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.
3169 },
3170 &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 -07003171 &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.
3172 &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
3173 &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
3174 &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
3175 &quot;A String&quot;,
3176 ],
3177 &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
3178 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3179 &quot;A String&quot;,
3180 ],
3181 &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
3182 &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
3183 &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
3184 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3185 },
3186 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3187 &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
3188 &quot;A String&quot;,
3189 ],
3190 &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
3191 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3192 &quot;A String&quot;,
3193 ],
3194 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3195 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3196 &quot;A String&quot;,
3197 ],
3198 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003199 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # 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
3200 &quot;comments&quot;: &quot;A String&quot;, # Comments
3201 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3202 },
yoshi-code-botb539cc42021-08-03 00:20:27 -07003203 &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
3204 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003205 &quot;spdxPackage&quot;: { # PackageInfoOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003206 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3207 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003208 &quot;homePage&quot;: &quot;A String&quot;, # Output only. Provide a place for the SPDX file creator to record a web site that serves as the package&#x27;s home page
yoshi-code-botb539cc42021-08-03 00:20:27 -07003209 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003210 &quot;licenseConcluded&quot;: { # License information: https://spdx.github.io/spdx-spec/3-package-information/#315-declared-license # package or alternative values, if the governing license cannot be determined
3211 &quot;comments&quot;: &quot;A String&quot;, # Comments
3212 &quot;expression&quot;: &quot;A String&quot;, # Expression: https://spdx.github.io/spdx-spec/appendix-IV-SPDX-license-expressions/
3213 },
3214 &quot;packageType&quot;: &quot;A String&quot;, # Output only. The type of package: OS, MAVEN, GO, GO_STDLIB, etc.
yoshi-code-botb539cc42021-08-03 00:20:27 -07003215 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003216 &quot;summaryDescription&quot;: &quot;A String&quot;, # Output only. A short description of the package
3217 &quot;title&quot;: &quot;A String&quot;, # Output only. Identify the full name of the package as given by the Package Originator
3218 &quot;version&quot;: &quot;A String&quot;, # Output only. Identify the version of the package
yoshi-code-botb539cc42021-08-03 00:20:27 -07003219 },
3220 &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.
3221 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3222 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3223 &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
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003224 &quot;type&quot;: &quot;A String&quot;, # Output only. The type of relationship between the source and target SPDX elements
yoshi-code-botb539cc42021-08-03 00:20:27 -07003225 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003226 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3227 &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.
3228 &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.
3229 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3230 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3231 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3232 &quot;A String&quot;,
3233 ],
3234 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3235 },
3236 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3237 &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.
3238 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003239 &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 -08003240 &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.
3241 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3242 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3243 },
3244 },
3245 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3246 &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.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003247 &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. When there are multiple package issues for this vulnerability, they can have different effective severities because some might come from the distro and some might come from installed language packs (e.g. Maven JARs or Go binaries). For this reason, it is advised to use the effective severity on the PackageIssue level, as this field may eventually be deprecated. In the case where multiple PackageIssues have different effective severities, the one set here will be the highest severity of any of the PackageIssues.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003248 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3249 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3250 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3251 &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.
3252 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3253 &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.
3254 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003255 &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 -08003256 &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.
3257 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3258 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3259 },
3260 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003261 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # Output only. The distro or language system assigned severity for this vulnerability when that is available and note provider assigned severity when distro or language system has not yet assigned a severity for this vulnerability.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003262 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3263 &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.
3264 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3265 &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.
3266 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003267 &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 -08003268 &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.
3269 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3270 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3271 },
3272 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003273 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003274 &quot;severityName&quot;: &quot;A String&quot;,
3275 },
3276 ],
3277 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003278 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc). This may be deprecated in the future because we can have multiple PackageIssues with different package types.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003279 },
3280}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003281</div>
3282
3283<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003284 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003285 <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 -07003286
3287Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003288 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 -07003289 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003290 The object takes the form of:
3291
3292{ # Request message for `SetIamPolicy` method.
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003293 &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`, or principals, to a single `role`. Principals 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.
3294 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3295 { # Associates `members`, or principals, with a `role`.
3296 &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 principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003297 &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.
3298 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3299 &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.
3300 &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 -07003301 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003302 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003303 &quot;A String&quot;,
3304 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003305 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003306 },
3307 ],
3308 &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.
3309 &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).
3310 },
3311}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003312
3313 x__xgafv: string, V1 error format.
3314 Allowed values
3315 1 - v1 error format
3316 2 - v2 error format
3317
3318Returns:
3319 An object of the form:
3320
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003321 { # 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`, or principals, to a single `role`. Principals 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/).
3322 &quot;bindings&quot;: [ # Associates a list of `members`, or principals, with 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 principal. The `bindings` in a `Policy` can refer to up to 1,500 principals; up to 250 of these principals can be Google groups. Each occurrence of a principal counts towards these limits. For example, if the `bindings` grant 50 different roles to `user:alice@example.com`, and not to any other principal, then you can add another 1,450 principals to the `bindings` in the `Policy`.
3323 { # Associates `members`, or principals, with a `role`.
3324 &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 principals in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003325 &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.
3326 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3327 &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.
3328 &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 -07003329 },
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003330 &quot;members&quot;: [ # Specifies the principals 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`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003331 &quot;A String&quot;,
3332 ],
yoshi-code-bot12d387c2021-10-26 00:24:32 -07003333 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to the list of `members`, or principals. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003334 },
3335 ],
3336 &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.
3337 &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).
3338}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003339</div>
3340
3341<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003342 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003343 <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 -07003344
3345Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003346 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 -07003347 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003348 The object takes the form of:
3349
3350{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003351 &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).
3352 &quot;A String&quot;,
3353 ],
3354}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003355
3356 x__xgafv: string, V1 error format.
3357 Allowed values
3358 1 - v1 error format
3359 2 - v2 error format
3360
3361Returns:
3362 An object of the form:
3363
3364 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003365 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3366 &quot;A String&quot;,
3367 ],
3368}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003369</div>
3370
3371</body></html>