blob: 438770ff987c38fa11e1fb3b234327f45f284a15 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Returns the requested `Occurrence`.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets the `Note` attached to the given `Occurrence`.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
98<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080099 <code><a href="#list">list(parent, filter=None, kind=None, name=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Lists active `Occurrences` for a given project matching the filters.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates an existing occurrence.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <pre>Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122
123Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 The object takes the form of:
127
128{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800129 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
130 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
131 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
132 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
133 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
134 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800135 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800136 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700137 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
138 &quot;builderConfig&quot;: { # required
139 &quot;id&quot;: &quot;A String&quot;,
140 },
141 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
142 &quot;A String&quot;,
143 ],
144 &quot;metadata&quot;: { # Other properties of the build.
145 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
146 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
147 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
148 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
149 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
150 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
151 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
152 },
153 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
154 },
155 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
156 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
157 &quot;A String&quot;,
158 ],
159 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
160 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
161 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
162 &quot;a_key&quot;: &quot;A String&quot;,
163 },
164 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
165 },
166 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800167 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800168 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
169 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800170 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800171 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800172 &quot;builtArtifacts&quot;: [ # Output of the build.
173 { # Artifact describes a build product.
174 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800175 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800176 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800177 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
178 &quot;A String&quot;,
179 ],
180 },
181 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800182 &quot;commands&quot;: [ # Commands requested by the build.
183 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800184 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
185 &quot;A String&quot;,
186 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800187 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800188 &quot;env&quot;: [ # Environment variables set before running this Command.
189 &quot;A String&quot;,
190 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800191 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
192 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
193 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
194 &quot;A String&quot;,
195 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800196 },
197 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800198 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800199 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
200 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
201 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
202 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
203 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
204 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
205 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
206 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
207 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
208 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
209 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
210 &quot;name&quot;: &quot;A String&quot;, # The alias name.
211 },
212 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
213 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
214 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
215 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
216 },
217 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
218 },
219 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
220 },
221 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
222 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
223 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
224 &quot;name&quot;: &quot;A String&quot;, # The alias name.
225 },
226 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
227 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
228 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
229 },
230 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
231 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
232 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
233 },
234 &quot;labels&quot;: { # Labels with user defined metadata.
235 &quot;a_key&quot;: &quot;A String&quot;,
236 },
237 },
238 ],
239 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
240 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
241 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
242 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
243 },
244 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
245 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
246 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
247 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
248 &quot;name&quot;: &quot;A String&quot;, # The alias name.
249 },
250 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
251 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
252 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
253 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
254 },
255 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
256 },
257 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
258 },
259 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
260 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
261 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
262 &quot;name&quot;: &quot;A String&quot;, # The alias name.
263 },
264 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
265 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
266 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
267 },
268 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
269 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
270 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
271 },
272 &quot;labels&quot;: { # Labels with user defined metadata.
273 &quot;a_key&quot;: &quot;A String&quot;,
274 },
275 },
276 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
277 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
278 &quot;fileHash&quot;: [ # Collection of file hashes.
279 { # Container message for hash values.
280 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
281 &quot;value&quot;: &quot;A String&quot;, # The hash value.
282 },
283 ],
284 },
285 },
286 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
287 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
288 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
289 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
290 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
291 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
292 },
293 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
294 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
295 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
296 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
297 },
298 },
299 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
300 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800301 },
302 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
303 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700304 &quot;compliance&quot;: { # An indication that the compliance checks in the associated ComplianceNote were not satisfied for particular resources or a specified reason. # Describes whether or not a resource passes compliance checks.
305 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
306 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
307 { # Details about files that caused a compliance check to fail.
308 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
309 &quot;path&quot;: &quot;A String&quot;, # display_command is a single command that can be used to display a list of non compliant files. When there is no such command, we can also iterate a list of non compliant file using &#x27;path&#x27;. Empty if `display_command` is set.
310 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
311 },
312 ],
313 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800314 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800315 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800316 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
317 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
318 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
319 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800320 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
321 &quot;A String&quot;,
322 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800323 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800324 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800325 },
326 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
327 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
328 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
329 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800330 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800331 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
332 &quot;A String&quot;,
333 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800334 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800335 },
336 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
337 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800338 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800339 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800340 },
341 ],
342 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800343 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800344 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800345 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
346 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
347 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
348 {
349 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
350 },
351 ],
352 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
353 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800354 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800355 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
356 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
357 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
358 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
359 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
360 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
361 {
362 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
363 },
364 ],
365 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
366 },
367 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
368 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
369 },
370 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
371 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 },
375 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700376 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
377 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
378 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
379 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
380 &quot;signatures&quot;: [ # The signatures over the payload
381 { # A DSSE signature
382 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
383 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
384 },
385 ],
386 },
387 &quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
388 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
389 &quot;provenance&quot;: {
390 &quot;builderConfig&quot;: { # required
391 &quot;id&quot;: &quot;A String&quot;,
392 },
393 &quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
394 &quot;A String&quot;,
395 ],
396 &quot;metadata&quot;: { # Other properties of the build.
397 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
398 &quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
399 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
400 &quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
401 &quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
402 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
403 &quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
404 },
405 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
406 },
407 &quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
408 &quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint.
409 &quot;A String&quot;,
410 ],
411 &quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
412 &quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
413 &quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy.
414 &quot;a_key&quot;: &quot;A String&quot;,
415 },
416 &quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
417 },
418 },
419 &quot;subject&quot;: [
420 {
421 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
422 &quot;a_key&quot;: &quot;A String&quot;,
423 },
424 &quot;name&quot;: &quot;A String&quot;,
425 },
426 ],
427 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
428 },
429 },
430 &quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse
431 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
432 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
433 &quot;signatures&quot;: [ # The signatures over the payload
434 { # A DSSE signature
435 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
436 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
437 },
438 ],
439 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800440 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
441 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
442 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
443 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
444 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
445 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
446 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800447 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800448 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
449 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
450 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
451 },
452 },
453 ],
454 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
455 },
456 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
457 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
458 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
459 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
460 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
461 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
462 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
463 &quot;value&quot;: &quot;A String&quot;, # The hash value.
464 },
465 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
466 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
467 },
468 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
yoshi-code-botb539cc42021-08-03 00:20:27 -0700469 &quot;sbom&quot;: { # DocumentOccurrence represents an SPDX Document Creation Information section: https://spdx.github.io/spdx-spec/2-document-creation-information/ # Describes a specific software bill of materials document.
470 &quot;createTime&quot;: &quot;A String&quot;, # Identify when the SPDX file was originally created. The date is to be specified according to combined date and time in UTC format as specified in ISO 8601 standard
471 &quot;creatorComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide general comments about the creation of the SPDX file or any other relevant comment not included in the other fields
472 &quot;creators&quot;: [ # Identify who (or what, in the case of a tool) created the SPDX file. If the SPDX file was created by an individual, indicate the person&#x27;s name
473 &quot;A String&quot;,
474 ],
475 &quot;documentComment&quot;: &quot;A String&quot;, # A field for creators of the SPDX file content to provide comments to the consumers of the SPDX document
476 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
477 &quot;A String&quot;,
478 ],
479 &quot;id&quot;: &quot;A String&quot;, # Identify the current SPDX document which may be referenced in relationships by other files, packages internally and documents externally
480 &quot;licenseListVersion&quot;: &quot;A String&quot;, # A field for creators of the SPDX file to provide the version of the SPDX License List used when the SPDX file was created
481 &quot;namespace&quot;: &quot;A String&quot;, # Provide an SPDX document specific namespace as a unique absolute Uniform Resource Identifier (URI) as specified in RFC-3986, with the exception of the ‘#’ delimiter
482 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
483 },
484 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
485 &quot;attributions&quot;: [ # This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
486 &quot;A String&quot;,
487 ],
488 &quot;comment&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any general comments about the file
489 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
490 &quot;A String&quot;,
491 ],
492 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
493 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
494 &quot;A String&quot;,
495 ],
496 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
497 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
498 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
499 &quot;notice&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
500 },
501 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
502 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
503 &quot;filename&quot;: &quot;A String&quot;, # Provide the actual file name of the package, or path of the directory being treated as a package
504 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
505 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
506 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
507 &quot;sourceInfo&quot;: &quot;A String&quot;, # Provide a place for the SPDX file creator to record any relevant background information or additional comments about the origin of the package
508 },
509 &quot;spdxRelationship&quot;: { # RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/ # Describes a specific relationship between SPDX elements.
510 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
511 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
512 &quot;target&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are &quot;known unknowns&quot;, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
513 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
514 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800515 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
516 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
517 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
518 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
519 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
520 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
521 &quot;A String&quot;,
522 ],
523 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
524 },
525 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
526 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
527 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800528 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800529 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
530 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
531 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
532 },
533 },
534 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
535 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700536 &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 -0800537 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
538 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
539 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
540 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
541 &quot;package&quot;: &quot;A String&quot;, # The package being described.
542 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
543 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800544 &quot;inclusive&quot;: True or False, # Whether this version is vulnerable, when defining the version bounds. For example, if the minimum version is 2.0, inclusive=true would say 2.0 is vulnerable, while inclusive=false would say it&#x27;s not
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800545 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
546 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
547 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
548 },
549 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700550 &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 -0800551 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
552 &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.
553 &quot;package&quot;: &quot;A String&quot;, # The package being described.
554 &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.
555 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800556 &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 -0800557 &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.
558 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
559 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
560 },
561 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -0700562 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800563 &quot;severityName&quot;: &quot;A String&quot;,
564 },
565 ],
566 &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 -0700567 &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 -0800568 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700569}
570
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700571 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 -0700572 x__xgafv: string, V1 error format.
573 Allowed values
574 1 - v1 error format
575 2 - v2 error format
576
577Returns:
578 An object of the form:
579
580 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800581 &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.
582 &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.
583 &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).
584 &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`.
585 &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.
586 },
587 },
588 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700589 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
590 &quot;builderConfig&quot;: { # required
591 &quot;id&quot;: &quot;A String&quot;,
592 },
593 &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.
594 &quot;A String&quot;,
595 ],
596 &quot;metadata&quot;: { # Other properties of the build.
597 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
598 &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.
599 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
600 &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.
601 &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.
602 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
603 &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;.
604 },
605 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
606 },
607 &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
608 &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.
609 &quot;A String&quot;,
610 ],
611 &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.
612 &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.
613 &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.
614 &quot;a_key&quot;: &quot;A String&quot;,
615 },
616 &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.
617 },
618 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800619 &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
620 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
621 &quot;a_key&quot;: &quot;A String&quot;,
622 },
623 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
624 &quot;builtArtifacts&quot;: [ # Output of the build.
625 { # Artifact describes a build product.
626 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
627 &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
628 &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.
629 &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.
630 &quot;A String&quot;,
631 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -0800632 },
633 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800634 &quot;commands&quot;: [ # Commands requested by the build.
635 { # Command describes a step performed as part of the build pipeline.
636 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
637 &quot;A String&quot;,
638 ],
639 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
640 &quot;env&quot;: [ # Environment variables set before running this Command.
641 &quot;A String&quot;,
642 ],
643 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
644 &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`.
645 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
646 &quot;A String&quot;,
647 ],
648 },
649 ],
650 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
651 &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.
652 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
653 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
654 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
655 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
656 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
657 &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.
658 { # 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 -0800659 &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 -0800660 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
661 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
662 &quot;name&quot;: &quot;A String&quot;, # The alias name.
663 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800664 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800665 &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.
666 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
667 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
668 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800669 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800670 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800671 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800672 },
673 &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 -0800674 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
675 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
676 &quot;name&quot;: &quot;A String&quot;, # The alias name.
677 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800678 &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 -0800679 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
680 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
681 },
682 &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).
683 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
684 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800685 },
686 &quot;labels&quot;: { # Labels with user defined metadata.
687 &quot;a_key&quot;: &quot;A String&quot;,
688 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800689 },
690 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800691 &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.
692 &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)).
693 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
694 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800695 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800696 &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.
697 &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.
698 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
699 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
700 &quot;name&quot;: &quot;A String&quot;, # The alias name.
701 },
702 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
703 &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.
704 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
705 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
706 },
707 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
708 },
709 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
710 },
711 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
712 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
713 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
714 &quot;name&quot;: &quot;A String&quot;, # The alias name.
715 },
716 &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.
717 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
718 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
719 },
720 &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).
721 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
722 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
723 },
724 &quot;labels&quot;: { # Labels with user defined metadata.
725 &quot;a_key&quot;: &quot;A String&quot;,
726 },
727 },
728 &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.
729 &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.
730 &quot;fileHash&quot;: [ # Collection of file hashes.
731 { # Container message for hash values.
732 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
733 &quot;value&quot;: &quot;A String&quot;, # The hash value.
734 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800735 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800736 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800737 },
738 &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.
739 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
740 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
741 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
742 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
743 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
744 },
745 &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.
746 &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)).
747 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
748 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
749 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800750 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800751 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
752 &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 -0800753 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800754 &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.
755 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -0700756 &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.
757 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
758 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
759 { # Details about files that caused a compliance check to fail.
760 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
761 &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.
762 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
763 },
764 ],
765 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800766 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
767 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
768 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
769 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
770 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
771 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
772 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
773 &quot;A String&quot;,
774 ],
775 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
776 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
777 },
778 &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.
779 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
780 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
781 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
782 &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.
783 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800784 &quot;A String&quot;,
785 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800786 &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 -0800787 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800788 &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.
789 { # Layer holds metadata specific to a layer of a Docker image.
790 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
791 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800792 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800793 ],
794 },
795 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
796 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
797 &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.
798 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
799 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
800 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800801 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
802 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800803 ],
804 &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.
805 },
806 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
807 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
808 &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.
809 &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.
810 &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 -0800811 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
812 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
813 {
814 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
815 },
816 ],
817 &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.
818 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800819 &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.
820 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
821 },
822 &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}`.
823 &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`.
824 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
825 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800826 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800827 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -0700828 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
829 &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.
830 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
831 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
832 &quot;signatures&quot;: [ # The signatures over the payload
833 { # A DSSE signature
834 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
835 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
836 },
837 ],
838 },
839 &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;.
840 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
841 &quot;provenance&quot;: {
842 &quot;builderConfig&quot;: { # required
843 &quot;id&quot;: &quot;A String&quot;,
844 },
845 &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.
846 &quot;A String&quot;,
847 ],
848 &quot;metadata&quot;: { # Other properties of the build.
849 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
850 &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.
851 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
852 &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.
853 &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.
854 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
855 &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;.
856 },
857 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
858 },
859 &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
860 &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.
861 &quot;A String&quot;,
862 ],
863 &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.
864 &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.
865 &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.
866 &quot;a_key&quot;: &quot;A String&quot;,
867 },
868 &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.
869 },
870 },
871 &quot;subject&quot;: [
872 {
873 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
874 &quot;a_key&quot;: &quot;A String&quot;,
875 },
876 &quot;name&quot;: &quot;A String&quot;,
877 },
878 ],
879 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
880 },
881 },
882 &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
883 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
884 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
885 &quot;signatures&quot;: [ # The signatures over the payload
886 { # A DSSE signature
887 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
888 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
889 },
890 ],
891 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800892 &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.
893 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
894 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
895 &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.
896 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
897 &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.
898 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800899 &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 -0800900 &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.
901 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
902 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
903 },
904 },
905 ],
906 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
907 },
908 &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.
909 &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;
910 &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.
911 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
912 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
913 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
914 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
915 &quot;value&quot;: &quot;A String&quot;, # The hash value.
916 },
917 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
918 &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.
919 },
920 &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 -0700921 &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.
922 &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
923 &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
924 &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
925 &quot;A String&quot;,
926 ],
927 &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
928 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
929 &quot;A String&quot;,
930 ],
931 &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
932 &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
933 &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
934 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
935 },
936 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
937 &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
938 &quot;A String&quot;,
939 ],
940 &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
941 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
942 &quot;A String&quot;,
943 ],
944 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
945 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
946 &quot;A String&quot;,
947 ],
948 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
949 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
950 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
951 &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
952 },
953 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
954 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
955 &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
956 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
957 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
958 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
959 &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
960 },
961 &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.
962 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
963 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
964 &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
965 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
966 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800967 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
968 &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.
969 &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.
970 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
971 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
972 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
973 &quot;A String&quot;,
974 ],
975 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
976 },
977 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
978 &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.
979 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800980 &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 -0800981 &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.
982 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
983 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
984 },
985 },
986 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
987 &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 -0700988 &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 -0800989 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
990 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
991 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
992 &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.
993 &quot;package&quot;: &quot;A String&quot;, # The package being described.
994 &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.
995 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -0800996 &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 -0800997 &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.
998 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
999 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1000 },
1001 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001002 &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 -08001003 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1004 &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.
1005 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1006 &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.
1007 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001008 &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 -08001009 &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.
1010 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1011 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1012 },
1013 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001014 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001015 &quot;severityName&quot;: &quot;A String&quot;,
1016 },
1017 ],
1018 &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 -07001019 &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 -08001020 },
1021}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001022</div>
1023
1024<div class="method">
1025 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001026 <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 -07001027
1028Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001029 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 -07001030 x__xgafv: string, V1 error format.
1031 Allowed values
1032 1 - v1 error format
1033 2 - v2 error format
1034
1035Returns:
1036 An object of the form:
1037
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001038 { # 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 -08001039}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001040</div>
1041
1042<div class="method">
1043 <code class="details" id="get">get(name, x__xgafv=None)</code>
1044 <pre>Returns the requested `Occurrence`.
1045
1046Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001047 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 -07001048 x__xgafv: string, V1 error format.
1049 Allowed values
1050 1 - v1 error format
1051 2 - v2 error format
1052
1053Returns:
1054 An object of the form:
1055
1056 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001057 &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.
1058 &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.
1059 &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).
1060 &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`.
1061 &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.
1062 },
1063 },
1064 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001065 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1066 &quot;builderConfig&quot;: { # required
1067 &quot;id&quot;: &quot;A String&quot;,
1068 },
1069 &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.
1070 &quot;A String&quot;,
1071 ],
1072 &quot;metadata&quot;: { # Other properties of the build.
1073 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1074 &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.
1075 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1076 &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.
1077 &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.
1078 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1079 &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;.
1080 },
1081 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1082 },
1083 &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
1084 &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.
1085 &quot;A String&quot;,
1086 ],
1087 &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.
1088 &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.
1089 &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.
1090 &quot;a_key&quot;: &quot;A String&quot;,
1091 },
1092 &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.
1093 },
1094 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001095 &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
1096 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1097 &quot;a_key&quot;: &quot;A String&quot;,
1098 },
1099 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1100 &quot;builtArtifacts&quot;: [ # Output of the build.
1101 { # Artifact describes a build product.
1102 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1103 &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
1104 &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.
1105 &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.
1106 &quot;A String&quot;,
1107 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001108 },
1109 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001110 &quot;commands&quot;: [ # Commands requested by the build.
1111 { # Command describes a step performed as part of the build pipeline.
1112 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1113 &quot;A String&quot;,
1114 ],
1115 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1116 &quot;env&quot;: [ # Environment variables set before running this Command.
1117 &quot;A String&quot;,
1118 ],
1119 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1120 &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`.
1121 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1122 &quot;A String&quot;,
1123 ],
1124 },
1125 ],
1126 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1127 &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.
1128 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1129 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1130 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1131 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1132 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1133 &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.
1134 { # 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 -08001135 &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 -08001136 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1137 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1138 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1139 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001140 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001141 &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.
1142 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1143 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1144 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001145 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001146 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001147 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001148 },
1149 &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 -08001150 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1151 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1152 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1153 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001154 &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 -08001155 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1156 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1157 },
1158 &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).
1159 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1160 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001161 },
1162 &quot;labels&quot;: { # Labels with user defined metadata.
1163 &quot;a_key&quot;: &quot;A String&quot;,
1164 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001165 },
1166 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001167 &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.
1168 &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)).
1169 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1170 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001171 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001172 &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.
1173 &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.
1174 &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 },
1178 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1179 &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 },
1183 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1184 },
1185 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1186 },
1187 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1188 &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 },
1192 &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.
1193 &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.
1199 },
1200 &quot;labels&quot;: { # Labels with user defined metadata.
1201 &quot;a_key&quot;: &quot;A String&quot;,
1202 },
1203 },
1204 &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.
1205 &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.
1206 &quot;fileHash&quot;: [ # Collection of file hashes.
1207 { # Container message for hash values.
1208 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1209 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1210 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001211 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001212 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001213 },
1214 &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.
1215 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1216 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1217 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1218 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1219 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1220 },
1221 &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.
1222 &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)).
1223 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1224 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1225 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001226 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001227 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1228 &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 -08001229 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001230 &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.
1231 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001232 &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.
1233 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1234 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1235 { # Details about files that caused a compliance check to fail.
1236 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1237 &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.
1238 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1239 },
1240 ],
1241 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001242 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1243 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1244 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1245 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1246 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1247 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1248 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1249 &quot;A String&quot;,
1250 ],
1251 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1252 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1253 },
1254 &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.
1255 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1256 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1257 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1258 &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.
1259 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001260 &quot;A String&quot;,
1261 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001262 &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 -08001263 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001264 &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.
1265 { # Layer holds metadata specific to a layer of a Docker image.
1266 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1267 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001268 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001269 ],
1270 },
1271 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1272 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1273 &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.
1274 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1275 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1276 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001277 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1278 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001279 ],
1280 &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.
1281 },
1282 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1283 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1284 &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.
1285 &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.
1286 &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 -08001287 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1288 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1289 {
1290 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1291 },
1292 ],
1293 &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.
1294 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001295 &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.
1296 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1297 },
1298 &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}`.
1299 &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`.
1300 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1301 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001302 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001303 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001304 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
1305 &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.
1306 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1307 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1308 &quot;signatures&quot;: [ # The signatures over the payload
1309 { # A DSSE signature
1310 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1311 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1312 },
1313 ],
1314 },
1315 &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;.
1316 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
1317 &quot;provenance&quot;: {
1318 &quot;builderConfig&quot;: { # required
1319 &quot;id&quot;: &quot;A String&quot;,
1320 },
1321 &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.
1322 &quot;A String&quot;,
1323 ],
1324 &quot;metadata&quot;: { # Other properties of the build.
1325 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1326 &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.
1327 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1328 &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.
1329 &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.
1330 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1331 &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;.
1332 },
1333 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1334 },
1335 &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
1336 &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.
1337 &quot;A String&quot;,
1338 ],
1339 &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.
1340 &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.
1341 &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.
1342 &quot;a_key&quot;: &quot;A String&quot;,
1343 },
1344 &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.
1345 },
1346 },
1347 &quot;subject&quot;: [
1348 {
1349 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
1350 &quot;a_key&quot;: &quot;A String&quot;,
1351 },
1352 &quot;name&quot;: &quot;A String&quot;,
1353 },
1354 ],
1355 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
1356 },
1357 },
1358 &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
1359 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
1360 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
1361 &quot;signatures&quot;: [ # The signatures over the payload
1362 { # A DSSE signature
1363 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
1364 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
1365 },
1366 ],
1367 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001368 &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.
1369 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1370 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1371 &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.
1372 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1373 &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.
1374 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001375 &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 -08001376 &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.
1377 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1378 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1379 },
1380 },
1381 ],
1382 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1383 },
1384 &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.
1385 &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;
1386 &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.
1387 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1388 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1389 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1390 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1391 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1392 },
1393 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1394 &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.
1395 },
1396 &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 -07001397 &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.
1398 &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
1399 &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
1400 &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
1401 &quot;A String&quot;,
1402 ],
1403 &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
1404 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
1405 &quot;A String&quot;,
1406 ],
1407 &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
1408 &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
1409 &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
1410 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
1411 },
1412 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
1413 &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
1414 &quot;A String&quot;,
1415 ],
1416 &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
1417 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
1418 &quot;A String&quot;,
1419 ],
1420 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
1421 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
1422 &quot;A String&quot;,
1423 ],
1424 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1425 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
1426 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
1427 &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
1428 },
1429 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
1430 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
1431 &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
1432 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
1433 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
1434 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
1435 &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
1436 },
1437 &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.
1438 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
1439 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
1440 &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
1441 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
1442 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001443 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1444 &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.
1445 &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.
1446 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1447 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1448 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1449 &quot;A String&quot;,
1450 ],
1451 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1452 },
1453 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1454 &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.
1455 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001456 &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 -08001457 &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.
1458 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1459 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1460 },
1461 },
1462 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1463 &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 -07001464 &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 -08001465 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1466 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1467 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1468 &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.
1469 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1470 &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.
1471 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001472 &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 -08001473 &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.
1474 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1475 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1476 },
1477 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001478 &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 -08001479 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1480 &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.
1481 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1482 &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.
1483 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001484 &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 -08001485 &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.
1486 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1487 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1488 },
1489 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07001490 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001491 &quot;severityName&quot;: &quot;A String&quot;,
1492 },
1493 ],
1494 &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 -07001495 &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 -08001496 },
1497}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001498</div>
1499
1500<div class="method">
1501 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001502 <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 -07001503
1504Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001505 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 -07001506 body: object, The request body.
1507 The object takes the form of:
1508
1509{ # Request message for `GetIamPolicy` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001510 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1511 &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).
1512 },
1513}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001514
1515 x__xgafv: string, V1 error format.
1516 Allowed values
1517 1 - v1 error format
1518 2 - v2 error format
1519
1520Returns:
1521 An object of the form:
1522
yoshi-code-bot96afc042021-08-24 00:22:31 -07001523 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001524 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
1525 { # Associates `members` with a `role`.
1526 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1527 &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.
1528 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1529 &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.
1530 &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 -07001531 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001532 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
1533 &quot;A String&quot;,
1534 ],
1535 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1536 },
1537 ],
1538 &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.
1539 &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).
1540}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001541</div>
1542
1543<div class="method">
1544 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1545 <pre>Gets the `Note` attached to the given `Occurrence`.
1546
1547Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001548 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 -07001549 x__xgafv: string, V1 error format.
1550 Allowed values
1551 1 - v1 error format
1552 2 - v2 error format
1553
1554Returns:
1555 An object of the form:
1556
1557 { # Provides a detailed description of a `Note`.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001558 &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.
1559 &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.
1560 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1561 },
1562 },
1563 &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.
1564 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1565 &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.
1566 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1567 &quot;A String&quot;,
1568 ],
1569 &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.
1570 },
1571 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
1572 },
1573 &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.
1574 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1575 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1576 &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).
1577 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1578 &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`
1579 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1580 },
1581 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001582 &quot;compliance&quot;: { # ComplianceNote encapsulates all information about a specific compliance check. # A note describing a compliance check.
1583 &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.
1584 &quot;profileLevel&quot;: 42, # The profile level of this CIS benchmark check.
1585 &quot;severity&quot;: &quot;A String&quot;, # The severity level of this CIS benchmark check.
1586 },
1587 &quot;description&quot;: &quot;A String&quot;, # A description about this compliance check.
1588 &quot;rationale&quot;: &quot;A String&quot;, # A rationale for the existence of this compliance check.
1589 &quot;remediation&quot;: &quot;A String&quot;, # A description of remediation steps if the compliance check fails.
1590 &quot;scanInstructions&quot;: &quot;A String&quot;, # Serialized scan instructions with a predefined format.
1591 &quot;title&quot;: &quot;A String&quot;, # The title that identifies this compliance check.
1592 &quot;version&quot;: [ # The OS and config versions the benchmark applies to.
1593 { # Describes the CIS benchmark version that is applicable to a given OS and os version.
1594 &quot;cpeUri&quot;: &quot;A String&quot;, # The CPE URI (https://cpe.mitre.org/specification/) this benchmark is applicable to.
1595 &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.
1596 },
1597 ],
1598 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001599 &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.
1600 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1601 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1602 &quot;A String&quot;,
1603 ],
1604 },
1605 &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.
1606 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1607 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001608 &quot;dsseAttestation&quot;: { # A note describing an attestation # A note describing a dsse attestation note.
1609 &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.
1610 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;cloudbuild-prod&quot;.
1611 },
1612 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001613 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1614 &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.
1615 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1616 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1617 &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.
1618 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1619 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
1620 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1621 &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.
1622 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1623 &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 -08001624 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001625 &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 -08001626 &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 -08001627 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001628 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1629 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001630 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1631 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001632 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001633 ],
1634 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1635 },
1636 &quot;relatedUrl&quot;: [ # URLs associated with this note
1637 { # Metadata for any related URL information
1638 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1639 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1640 },
1641 ],
yoshi-code-botb539cc42021-08-03 00:20:27 -07001642 &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.
1643 &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;)
1644 &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
1645 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001646 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001647 &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.
1648 &quot;checksum&quot;: [ # Provide a unique identifier to match analysis information on each specific file in a package
1649 &quot;A String&quot;,
1650 ],
1651 &quot;fileType&quot;: &quot;A String&quot;, # This field provides information about the type of file identified
1652 &quot;title&quot;: &quot;A String&quot;, # Identify the full path and filename that corresponds to the file information in this section
1653 },
1654 &quot;spdxPackage&quot;: { # PackageNote represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # A note describing an SPDX Package.
1655 &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
1656 &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
1657 &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
1658 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holders of the package, as well as any dates present
1659 &quot;detailedDescription&quot;: &quot;A String&quot;, # A more detailed description of the package
1660 &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
1661 &quot;externalRefs&quot;: [ # ExternalRef
1662 { # 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
1663 &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
1664 &quot;comment&quot;: &quot;A String&quot;, # Human-readable information about the purpose and target of the reference
1665 &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
1666 &quot;type&quot;: &quot;A String&quot;, # Type of category (e.g. &#x27;npm&#x27; for the PACKAGE_MANAGER category)
1667 },
1668 ],
1669 &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
1670 &quot;A String&quot;,
1671 ],
1672 &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
1673 &quot;licenseDeclared&quot;: &quot;A String&quot;, # List the licenses that have been declared by the authors of the package
1674 &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
1675 &quot;summaryDescription&quot;: &quot;A String&quot;, # A short description of the package
1676 &quot;supplier&quot;: &quot;A String&quot;, # Identify the actual distribution source for the package/directory identified in the SPDX file
1677 &quot;title&quot;: &quot;A String&quot;, # Identify the full name of the package as given by the Package Originator
1678 &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
1679 &quot;version&quot;: &quot;A String&quot;, # Identify the version of the package
1680 },
1681 &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.
1682 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001683 &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.
1684 &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.
1685 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1686 { # 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.
1687 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1688 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1689 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001690 &quot;A String&quot;,
1691 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001692 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001693 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001694 ],
1695 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1696 &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.
1697 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001698 &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 -08001699 &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.
1700 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1701 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1702 },
1703 },
1704 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1705 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1706 &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.
1707 { # 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
1708 &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.
1709 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
1710 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
1711 &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.
1712 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1713 &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.
1714 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001715 &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 -08001716 &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.
1717 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1718 &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 -08001719 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001720 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001721 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
1722 &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.
1723 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001724 &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 -08001725 &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.
1726 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1727 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1728 },
1729 &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.
1730 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001731 &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 -08001732 &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.
1733 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1734 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1735 },
1736 &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.
1737 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1738 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08001739 &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 -07001740 &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 -08001741 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001742 ],
1743 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
1744 },
1745}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001746</div>
1747
1748<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001749 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001750 <pre>Gets a summary of the number and severity of occurrences.
1751
1752Args:
1753 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001754 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001755 x__xgafv: string, V1 error format.
1756 Allowed values
1757 1 - v1 error format
1758 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001759
1760Returns:
1761 An object of the form:
1762
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001763 { # 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 -08001764 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
1765 { # The number of occurrences created for a specific severity.
1766 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
1767 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
1768 },
1769 ],
1770}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001771</div>
1772
1773<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001774 <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 -07001775 <pre>Lists active `Occurrences` for a given project matching the filters.
1776
1777Args:
1778 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001779 filter: string, The filter expression.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001780 kind: string, The kind of occurrences to filter on.
1781 Allowed values
1782 KIND_UNSPECIFIED - Unknown
1783 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1784 BUILD_DETAILS - The note and occurrence assert build provenance.
1785 IMAGE_BASIS - This represents an image basis relationship.
1786 PACKAGE_MANAGER - This represents a package installed via a package manager.
1787 DEPLOYABLE - The note and occurrence track deployment events.
1788 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1789 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1790 UPGRADE - This represents an available software upgrade.
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001791 COMPLIANCE - This represents a compliance check that can be applied to a resource.
yoshi-code-botb539cc42021-08-03 00:20:27 -07001792 SBOM - This represents a software bill of materials.
1793 SPDX_PACKAGE - This represents an SPDX Package.
1794 SPDX_FILE - This represents an SPDX File.
1795 SPDX_RELATIONSHIP - This represents an SPDX Relationship.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001796 DSSE_ATTESTATION - This represents a DSSE attestation Note
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001797 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
1798 pageSize: integer, Number of occurrences to return in the list.
1799 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001800 x__xgafv: string, V1 error format.
1801 Allowed values
1802 1 - v1 error format
1803 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001804
1805Returns:
1806 An object of the form:
1807
1808 { # Response including listed active occurrences.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001809 &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.
1810 &quot;occurrences&quot;: [ # The occurrences requested.
1811 { # `Occurrence` includes information about analysis occurrences for an image.
1812 &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.
1813 &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.
1814 &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).
1815 &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`.
1816 &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.
1817 },
1818 },
1819 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07001820 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
1821 &quot;builderConfig&quot;: { # required
1822 &quot;id&quot;: &quot;A String&quot;,
1823 },
1824 &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.
1825 &quot;A String&quot;,
1826 ],
1827 &quot;metadata&quot;: { # Other properties of the build.
1828 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
1829 &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.
1830 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
1831 &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.
1832 &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.
1833 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
1834 &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;.
1835 },
1836 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
1837 },
1838 &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
1839 &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.
1840 &quot;A String&quot;,
1841 ],
1842 &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.
1843 &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.
1844 &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.
1845 &quot;a_key&quot;: &quot;A String&quot;,
1846 },
1847 &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.
1848 },
1849 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001850 &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
1851 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1852 &quot;a_key&quot;: &quot;A String&quot;,
1853 },
1854 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1855 &quot;builtArtifacts&quot;: [ # Output of the build.
1856 { # Artifact describes a build product.
1857 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1858 &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
1859 &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.
1860 &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.
1861 &quot;A String&quot;,
1862 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08001863 },
1864 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001865 &quot;commands&quot;: [ # Commands requested by the build.
1866 { # Command describes a step performed as part of the build pipeline.
1867 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1868 &quot;A String&quot;,
1869 ],
1870 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1871 &quot;env&quot;: [ # Environment variables set before running this Command.
1872 &quot;A String&quot;,
1873 ],
1874 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1875 &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`.
1876 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1877 &quot;A String&quot;,
1878 ],
1879 },
1880 ],
1881 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1882 &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.
1883 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1884 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1885 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1886 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1887 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1888 &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.
1889 { # 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 -08001890 &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 -08001891 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1892 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1893 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1894 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001895 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001896 &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.
1897 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1898 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1899 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001900 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001901 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001902 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001903 },
1904 &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 -08001905 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1906 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1907 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1908 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001909 &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 -08001910 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1911 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1912 },
1913 &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).
1914 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1915 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001916 },
1917 &quot;labels&quot;: { # Labels with user defined metadata.
1918 &quot;a_key&quot;: &quot;A String&quot;,
1919 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001920 },
1921 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001922 &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.
1923 &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)).
1924 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1925 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08001926 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001927 &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.
1928 &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.
1929 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1930 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1931 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1932 },
1933 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1934 &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.
1935 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1936 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1937 },
1938 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1939 },
1940 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1941 },
1942 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1943 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1944 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1945 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1946 },
1947 &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.
1948 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1949 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1950 },
1951 &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).
1952 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1953 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1954 },
1955 &quot;labels&quot;: { # Labels with user defined metadata.
1956 &quot;a_key&quot;: &quot;A String&quot;,
1957 },
1958 },
1959 &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.
1960 &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.
1961 &quot;fileHash&quot;: [ # Collection of file hashes.
1962 { # Container message for hash values.
1963 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1964 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1965 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001966 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001967 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001968 },
1969 &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.
1970 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1971 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1972 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1973 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1974 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1975 },
1976 &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.
1977 &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)).
1978 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1979 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1980 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001981 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001982 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1983 &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 -08001984 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001985 &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.
1986 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07001987 &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.
1988 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
1989 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
1990 { # Details about files that caused a compliance check to fail.
1991 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
1992 &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.
1993 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
1994 },
1995 ],
1996 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08001997 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
1998 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1999 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2000 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2001 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2002 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2003 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2004 &quot;A String&quot;,
2005 ],
2006 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2007 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2008 },
2009 &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.
2010 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2011 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2012 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2013 &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.
2014 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002015 &quot;A String&quot;,
2016 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002017 &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 -08002018 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002019 &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.
2020 { # Layer holds metadata specific to a layer of a Docker image.
2021 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2022 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002023 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002024 ],
2025 },
2026 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2027 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2028 &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.
2029 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2030 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2031 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002032 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2033 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002034 ],
2035 &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.
2036 },
2037 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2038 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2039 &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.
2040 &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.
2041 &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 -08002042 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2043 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2044 {
2045 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2046 },
2047 ],
2048 &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.
2049 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002050 &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.
2051 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2052 },
2053 &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}`.
2054 &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`.
2055 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2056 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002057 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002058 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002059 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2060 &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.
2061 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2062 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2063 &quot;signatures&quot;: [ # The signatures over the payload
2064 { # A DSSE signature
2065 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2066 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2067 },
2068 ],
2069 },
2070 &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;.
2071 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2072 &quot;provenance&quot;: {
2073 &quot;builderConfig&quot;: { # required
2074 &quot;id&quot;: &quot;A String&quot;,
2075 },
2076 &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.
2077 &quot;A String&quot;,
2078 ],
2079 &quot;metadata&quot;: { # Other properties of the build.
2080 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2081 &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.
2082 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2083 &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.
2084 &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.
2085 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2086 &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;.
2087 },
2088 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2089 },
2090 &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
2091 &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.
2092 &quot;A String&quot;,
2093 ],
2094 &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.
2095 &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.
2096 &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.
2097 &quot;a_key&quot;: &quot;A String&quot;,
2098 },
2099 &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.
2100 },
2101 },
2102 &quot;subject&quot;: [
2103 {
2104 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2105 &quot;a_key&quot;: &quot;A String&quot;,
2106 },
2107 &quot;name&quot;: &quot;A String&quot;,
2108 },
2109 ],
2110 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2111 },
2112 },
2113 &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
2114 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2115 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2116 &quot;signatures&quot;: [ # The signatures over the payload
2117 { # A DSSE signature
2118 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2119 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2120 },
2121 ],
2122 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002123 &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.
2124 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2125 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2126 &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.
2127 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2128 &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.
2129 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002130 &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 -08002131 &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.
2132 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2133 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2134 },
2135 },
2136 ],
2137 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2138 },
2139 &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.
2140 &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;
2141 &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.
2142 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2143 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2144 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2145 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2146 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2147 },
2148 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2149 &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.
2150 },
2151 &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 -07002152 &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.
2153 &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
2154 &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
2155 &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
2156 &quot;A String&quot;,
2157 ],
2158 &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
2159 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2160 &quot;A String&quot;,
2161 ],
2162 &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
2163 &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
2164 &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
2165 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2166 },
2167 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2168 &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
2169 &quot;A String&quot;,
2170 ],
2171 &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
2172 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2173 &quot;A String&quot;,
2174 ],
2175 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2176 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2177 &quot;A String&quot;,
2178 ],
2179 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2180 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2181 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2182 &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
2183 },
2184 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2185 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2186 &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
2187 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2188 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2189 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2190 &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
2191 },
2192 &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.
2193 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2194 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2195 &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
2196 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2197 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002198 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2199 &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.
2200 &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.
2201 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2202 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2203 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2204 &quot;A String&quot;,
2205 ],
2206 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2207 },
2208 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2209 &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.
2210 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002211 &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 -08002212 &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.
2213 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2214 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2215 },
2216 },
2217 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2218 &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 -07002219 &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 -08002220 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2221 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2222 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2223 &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.
2224 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2225 &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.
2226 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002227 &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 -08002228 &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.
2229 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2230 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2231 },
2232 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002233 &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 -08002234 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2235 &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.
2236 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2237 &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.
2238 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002239 &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 -08002240 &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.
2241 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2242 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2243 },
2244 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002245 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002246 &quot;severityName&quot;: &quot;A String&quot;,
2247 },
2248 ],
2249 &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 -07002250 &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 -08002251 },
2252 },
2253 ],
2254}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002255</div>
2256
2257<div class="method">
2258 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2259 <pre>Retrieves the next page of results.
2260
2261Args:
2262 previous_request: The request for the previous page. (required)
2263 previous_response: The response from the request for the previous page. (required)
2264
2265Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002266 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002267 page. Returns None if there are no more items in the collection.
2268 </pre>
2269</div>
2270
2271<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002272 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002273 <pre>Updates an existing occurrence.
2274
2275Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002276 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 -07002277 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002278 The object takes the form of:
2279
2280{ # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002281 &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.
2282 &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.
2283 &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).
2284 &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`.
2285 &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.
2286 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002287 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002288 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002289 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2290 &quot;builderConfig&quot;: { # required
2291 &quot;id&quot;: &quot;A String&quot;,
2292 },
2293 &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.
2294 &quot;A String&quot;,
2295 ],
2296 &quot;metadata&quot;: { # Other properties of the build.
2297 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2298 &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.
2299 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2300 &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.
2301 &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.
2302 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2303 &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;.
2304 },
2305 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2306 },
2307 &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
2308 &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.
2309 &quot;A String&quot;,
2310 ],
2311 &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.
2312 &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.
2313 &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.
2314 &quot;a_key&quot;: &quot;A String&quot;,
2315 },
2316 &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.
2317 },
2318 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002319 &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 -08002320 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2321 &quot;a_key&quot;: &quot;A String&quot;,
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002322 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002323 &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 -08002324 &quot;builtArtifacts&quot;: [ # Output of the build.
2325 { # Artifact describes a build product.
2326 &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 -08002327 &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 -08002328 &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 -08002329 &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.
2330 &quot;A String&quot;,
2331 ],
2332 },
2333 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002334 &quot;commands&quot;: [ # Commands requested by the build.
2335 { # Command describes a step performed as part of the build pipeline.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002336 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2337 &quot;A String&quot;,
2338 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002339 &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 -08002340 &quot;env&quot;: [ # Environment variables set before running this Command.
2341 &quot;A String&quot;,
2342 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002343 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2344 &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`.
2345 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2346 &quot;A String&quot;,
2347 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002348 },
2349 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002350 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002351 &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.
2352 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2353 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2354 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2355 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2356 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2357 &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.
2358 { # 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.
2359 &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.
2360 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2361 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2362 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2363 },
2364 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2365 &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.
2366 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2367 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2368 },
2369 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2370 },
2371 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2372 },
2373 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2374 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2375 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2376 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2377 },
2378 &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.
2379 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2380 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2381 },
2382 &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).
2383 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2384 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2385 },
2386 &quot;labels&quot;: { # Labels with user defined metadata.
2387 &quot;a_key&quot;: &quot;A String&quot;,
2388 },
2389 },
2390 ],
2391 &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.
2392 &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)).
2393 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2394 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2395 },
2396 &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.
2397 &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.
2398 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2399 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2400 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2401 },
2402 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2403 &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.
2404 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2405 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2406 },
2407 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2408 },
2409 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2410 },
2411 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2412 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2413 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2414 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2415 },
2416 &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.
2417 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2418 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2419 },
2420 &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).
2421 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2422 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2423 },
2424 &quot;labels&quot;: { # Labels with user defined metadata.
2425 &quot;a_key&quot;: &quot;A String&quot;,
2426 },
2427 },
2428 &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.
2429 &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.
2430 &quot;fileHash&quot;: [ # Collection of file hashes.
2431 { # Container message for hash values.
2432 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2433 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2434 },
2435 ],
2436 },
2437 },
2438 &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.
2439 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2440 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2441 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2442 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2443 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2444 },
2445 &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.
2446 &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)).
2447 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2448 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2449 },
2450 },
2451 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2452 &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 -08002453 },
2454 &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.
2455 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002456 &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.
2457 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2458 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2459 { # Details about files that caused a compliance check to fail.
2460 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2461 &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.
2462 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2463 },
2464 ],
2465 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002466 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002467 &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 -08002468 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2469 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2470 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2471 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002472 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2473 &quot;A String&quot;,
2474 ],
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002475 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002476 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002477 },
2478 &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.
2479 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2480 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2481 &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 -08002482 &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 -08002483 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2484 &quot;A String&quot;,
2485 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002486 &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 -08002487 },
2488 &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.
2489 { # Layer holds metadata specific to a layer of a Docker image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002490 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002491 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002492 },
2493 ],
2494 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002495 &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 -08002496 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002497 &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.
2498 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2499 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2500 {
2501 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2502 },
2503 ],
2504 &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.
2505 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002506 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002507 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2508 &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.
2509 &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.
2510 &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.
2511 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2512 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2513 {
2514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2515 },
2516 ],
2517 &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.
2518 },
2519 &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.
2520 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2521 },
2522 &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}`.
2523 &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`.
2524 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2525 },
2526 },
2527 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002528 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2529 &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.
2530 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2531 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2532 &quot;signatures&quot;: [ # The signatures over the payload
2533 { # A DSSE signature
2534 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2535 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2536 },
2537 ],
2538 },
2539 &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;.
2540 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2541 &quot;provenance&quot;: {
2542 &quot;builderConfig&quot;: { # required
2543 &quot;id&quot;: &quot;A String&quot;,
2544 },
2545 &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.
2546 &quot;A String&quot;,
2547 ],
2548 &quot;metadata&quot;: { # Other properties of the build.
2549 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2550 &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.
2551 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2552 &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.
2553 &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.
2554 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2555 &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;.
2556 },
2557 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2558 },
2559 &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
2560 &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.
2561 &quot;A String&quot;,
2562 ],
2563 &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.
2564 &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.
2565 &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.
2566 &quot;a_key&quot;: &quot;A String&quot;,
2567 },
2568 &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.
2569 },
2570 },
2571 &quot;subject&quot;: [
2572 {
2573 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
2574 &quot;a_key&quot;: &quot;A String&quot;,
2575 },
2576 &quot;name&quot;: &quot;A String&quot;,
2577 },
2578 ],
2579 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
2580 },
2581 },
2582 &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
2583 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2584 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2585 &quot;signatures&quot;: [ # The signatures over the payload
2586 { # A DSSE signature
2587 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2588 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2589 },
2590 ],
2591 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002592 &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.
2593 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2594 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2595 &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.
2596 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2597 &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.
2598 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002599 &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 -08002600 &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.
2601 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2602 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2603 },
2604 },
2605 ],
2606 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2607 },
2608 &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.
2609 &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;
2610 &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.
2611 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2612 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
2613 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2614 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2615 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2616 },
2617 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2618 &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.
2619 },
2620 &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 -07002621 &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.
2622 &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
2623 &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
2624 &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
2625 &quot;A String&quot;,
2626 ],
2627 &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
2628 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
2629 &quot;A String&quot;,
2630 ],
2631 &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
2632 &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
2633 &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
2634 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
2635 },
2636 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
2637 &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
2638 &quot;A String&quot;,
2639 ],
2640 &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
2641 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
2642 &quot;A String&quot;,
2643 ],
2644 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
2645 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
2646 &quot;A String&quot;,
2647 ],
2648 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2649 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
2650 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
2651 &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
2652 },
2653 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
2654 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
2655 &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
2656 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
2657 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
2658 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
2659 &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
2660 },
2661 &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.
2662 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
2663 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
2664 &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
2665 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
2666 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002667 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2668 &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.
2669 &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.
2670 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
2671 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
2672 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2673 &quot;A String&quot;,
2674 ],
2675 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2676 },
2677 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2678 &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.
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 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2687 &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 -07002688 &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 -08002689 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2690 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2691 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2692 &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.
2693 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2694 &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.
2695 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002696 &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 -08002697 &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.
2698 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2699 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2700 },
2701 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002702 &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 -08002703 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2704 &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.
2705 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2706 &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.
2707 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08002708 &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 -08002709 &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.
2710 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2711 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2712 },
2713 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07002714 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002715 &quot;severityName&quot;: &quot;A String&quot;,
2716 },
2717 ],
2718 &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 -07002719 &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 -08002720 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002721}
2722
2723 updateMask: string, The fields to update.
2724 x__xgafv: string, V1 error format.
2725 Allowed values
2726 1 - v1 error format
2727 2 - v2 error format
2728
2729Returns:
2730 An object of the form:
2731
2732 { # `Occurrence` includes information about analysis occurrences for an image.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002733 &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.
2734 &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.
2735 &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).
2736 &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`.
2737 &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.
2738 },
2739 },
2740 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002741 &quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
2742 &quot;builderConfig&quot;: { # required
2743 &quot;id&quot;: &quot;A String&quot;,
2744 },
2745 &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.
2746 &quot;A String&quot;,
2747 ],
2748 &quot;metadata&quot;: { # Other properties of the build.
2749 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
2750 &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.
2751 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
2752 &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.
2753 &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.
2754 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
2755 &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;.
2756 },
2757 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
2758 },
2759 &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
2760 &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.
2761 &quot;A String&quot;,
2762 ],
2763 &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.
2764 &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.
2765 &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.
2766 &quot;a_key&quot;: &quot;A String&quot;,
2767 },
2768 &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.
2769 },
2770 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002771 &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
2772 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2773 &quot;a_key&quot;: &quot;A String&quot;,
2774 },
2775 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2776 &quot;builtArtifacts&quot;: [ # Output of the build.
2777 { # Artifact describes a build product.
2778 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2779 &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
2780 &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.
2781 &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.
2782 &quot;A String&quot;,
2783 ],
Yoshi Automation Botb6971b02020-11-26 17:16:03 -08002784 },
2785 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002786 &quot;commands&quot;: [ # Commands requested by the build.
2787 { # Command describes a step performed as part of the build pipeline.
2788 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2789 &quot;A String&quot;,
2790 ],
2791 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2792 &quot;env&quot;: [ # Environment variables set before running this Command.
2793 &quot;A String&quot;,
2794 ],
2795 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2796 &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`.
2797 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2798 &quot;A String&quot;,
2799 ],
2800 },
2801 ],
2802 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2803 &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.
2804 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2805 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2806 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2807 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2808 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2809 &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.
2810 { # 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 -08002811 &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 -08002812 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2813 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2814 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2815 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002816 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002817 &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.
2818 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2819 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2820 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002821 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002822 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002823 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002824 },
2825 &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 -08002826 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2827 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2828 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2829 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002830 &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 -08002831 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2832 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2833 },
2834 &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).
2835 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2836 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002837 },
2838 &quot;labels&quot;: { # Labels with user defined metadata.
2839 &quot;a_key&quot;: &quot;A String&quot;,
2840 },
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002841 },
2842 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002843 &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.
2844 &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)).
2845 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2846 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002847 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002848 &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.
2849 &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.
2850 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2851 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2852 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2853 },
2854 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2855 &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.
2856 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2857 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2858 },
2859 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2860 },
2861 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2862 },
2863 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2864 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2865 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2866 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2867 },
2868 &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.
2869 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2870 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2871 },
2872 &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).
2873 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2874 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2875 },
2876 &quot;labels&quot;: { # Labels with user defined metadata.
2877 &quot;a_key&quot;: &quot;A String&quot;,
2878 },
2879 },
2880 &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.
2881 &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.
2882 &quot;fileHash&quot;: [ # Collection of file hashes.
2883 { # Container message for hash values.
2884 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2885 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2886 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002887 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002888 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002889 },
2890 &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.
2891 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2892 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2893 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2894 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2895 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2896 },
2897 &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.
2898 &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)).
2899 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2900 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2901 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002902 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002903 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2904 &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 -08002905 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002906 &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.
2907 },
yoshi-code-bot26aa9e22021-06-10 00:24:06 -07002908 &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.
2909 &quot;nonComplianceReason&quot;: &quot;A String&quot;, # The reason for non compliance of these files.
2910 &quot;nonCompliantFiles&quot;: [ # A list of files which are violating compliance checks.
2911 { # Details about files that caused a compliance check to fail.
2912 &quot;displayCommand&quot;: &quot;A String&quot;, # Command to display the non-compliant files.
2913 &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.
2914 &quot;reason&quot;: &quot;A String&quot;, # Explains why a file is non compliant for a CIS check.
2915 },
2916 ],
2917 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002918 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
2919 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2920 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2921 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2922 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2923 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2924 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2925 &quot;A String&quot;,
2926 ],
2927 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2928 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2929 },
2930 &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.
2931 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2932 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2933 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2934 &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.
2935 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002936 &quot;A String&quot;,
2937 ],
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002938 &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 -08002939 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002940 &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.
2941 { # Layer holds metadata specific to a layer of a Docker image.
2942 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2943 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -08002944 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002945 ],
2946 },
2947 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2948 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2949 &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.
2950 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2951 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2952 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002953 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2954 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002955 ],
2956 &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.
2957 },
2958 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2959 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2960 &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.
2961 &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.
2962 &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 -08002963 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2964 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2965 {
2966 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2967 },
2968 ],
2969 &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.
2970 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002971 &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.
2972 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2973 },
2974 &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}`.
2975 &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`.
2976 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2977 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002978 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08002979 },
yoshi-code-bot3e4b5db2021-08-10 00:22:29 -07002980 &quot;dsseAttestation&quot;: { # An occurrence describing an attestation on a resource # This represents a DSSE attestation occurrence
2981 &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.
2982 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
2983 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
2984 &quot;signatures&quot;: [ # The signatures over the payload
2985 { # A DSSE signature
2986 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
2987 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
2988 },
2989 ],
2990 },
2991 &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;.
2992 &quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
2993 &quot;provenance&quot;: {
2994 &quot;builderConfig&quot;: { # required
2995 &quot;id&quot;: &quot;A String&quot;,
2996 },
2997 &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.
2998 &quot;A String&quot;,
2999 ],
3000 &quot;metadata&quot;: { # Other properties of the build.
3001 &quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
3002 &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.
3003 &quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
3004 &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.
3005 &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.
3006 &quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
3007 &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;.
3008 },
3009 &quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
3010 },
3011 &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
3012 &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.
3013 &quot;A String&quot;,
3014 ],
3015 &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.
3016 &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.
3017 &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.
3018 &quot;a_key&quot;: &quot;A String&quot;,
3019 },
3020 &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.
3021 },
3022 },
3023 &quot;subject&quot;: [
3024 {
3025 &quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
3026 &quot;a_key&quot;: &quot;A String&quot;,
3027 },
3028 &quot;name&quot;: &quot;A String&quot;,
3029 },
3030 ],
3031 &quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
3032 },
3033 },
3034 &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
3035 &quot;payload&quot;: &quot;A String&quot;, # The bytes being signed
3036 &quot;payloadType&quot;: &quot;A String&quot;, # The type of payload being signed
3037 &quot;signatures&quot;: [ # The signatures over the payload
3038 { # A DSSE signature
3039 &quot;keyid&quot;: &quot;A String&quot;, # A reference id to the key being used for signing
3040 &quot;sig&quot;: &quot;A String&quot;, # The signature itself
3041 },
3042 ],
3043 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003044 &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.
3045 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
3046 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
3047 &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.
3048 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
3049 &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.
3050 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003051 &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 -08003052 &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.
3053 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3054 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3055 },
3056 },
3057 ],
3058 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3059 },
3060 &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.
3061 &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;
3062 &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.
3063 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3064 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
3065 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3066 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3067 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3068 },
3069 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3070 &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.
3071 },
3072 &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 -07003073 &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.
3074 &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
3075 &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
3076 &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
3077 &quot;A String&quot;,
3078 ],
3079 &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
3080 &quot;externalDocumentRefs&quot;: [ # Identify any external SPDX documents referenced within this SPDX document
3081 &quot;A String&quot;,
3082 ],
3083 &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
3084 &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
3085 &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
3086 &quot;title&quot;: &quot;A String&quot;, # Identify name of this document as designated by creator
3087 },
3088 &quot;spdxFile&quot;: { # FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/ # Describes a specific SPDX File.
3089 &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
3090 &quot;A String&quot;,
3091 ],
3092 &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
3093 &quot;contributors&quot;: [ # This field provides a place for the SPDX file creator to record file contributors
3094 &quot;A String&quot;,
3095 ],
3096 &quot;copyright&quot;: &quot;A String&quot;, # Identify the copyright holder of the file, as well as any dates present
3097 &quot;filesLicenseInfo&quot;: [ # This field contains the license information actually found in the file, if any
3098 &quot;A String&quot;,
3099 ],
3100 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3101 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background references or analysis that went in to arriving at the Concluded License for a file
3102 &quot;licenseConcluded&quot;: &quot;A String&quot;, # This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
3103 &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
3104 },
3105 &quot;spdxPackage&quot;: { # PackageOccurrence represents an SPDX Package Information section: https://spdx.github.io/spdx-spec/3-package-information/ # Describes a specific SPDX Package.
3106 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the package being described
3107 &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
3108 &quot;id&quot;: &quot;A String&quot;, # Uniquely identify any element in an SPDX document which may be referenced by other elements
3109 &quot;licenseComments&quot;: &quot;A String&quot;, # This field provides a place for the SPDX file creator to record any relevant background information or analysis that went in to arriving at the Concluded License for a package
3110 &quot;licenseConcluded&quot;: &quot;A String&quot;, # package or alternative values, if the governing license cannot be determined
3111 &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
3112 },
3113 &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.
3114 &quot;comment&quot;: &quot;A String&quot;, # A place for the SPDX file creator to record any general comments about the relationship
3115 &quot;source&quot;: &quot;A String&quot;, # Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
3116 &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
3117 &quot;type&quot;: &quot;A String&quot;, # The type of relationship between the source and target SPDX elements
3118 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003119 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3120 &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.
3121 &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.
3122 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
3123 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
3124 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3125 &quot;A String&quot;,
3126 ],
3127 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3128 },
3129 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3130 &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.
3131 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003132 &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 -08003133 &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.
3134 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3135 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3136 },
3137 },
3138 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
3139 &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 -07003140 &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 -08003141 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
3142 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
3143 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3144 &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.
3145 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3146 &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.
3147 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003148 &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 -08003149 &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.
3150 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3151 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3152 },
3153 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003154 &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 -08003155 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3156 &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.
3157 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3158 &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.
3159 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
yoshi-code-botb6dc1b92021-03-02 11:49:08 -08003160 &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 -08003161 &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.
3162 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3163 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3164 },
3165 },
yoshi-code-bot8bb904c2021-08-31 00:28:27 -07003166 &quot;packageType&quot;: &quot;A String&quot;, # The type of package (e.g. OS, MAVEN, GO).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003167 &quot;severityName&quot;: &quot;A String&quot;,
3168 },
3169 ],
3170 &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 -07003171 &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 -08003172 },
3173}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003174</div>
3175
3176<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003177 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003178 <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 -07003179
3180Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003181 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 -07003182 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003183 The object takes the form of:
3184
3185{ # Request message for `SetIamPolicy` method.
yoshi-code-bot96afc042021-08-24 00:22:31 -07003186 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003187 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3188 { # Associates `members` with a `role`.
3189 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3190 &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.
3191 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3192 &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.
3193 &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 -07003194 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003195 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3196 &quot;A String&quot;,
3197 ],
3198 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3199 },
3200 ],
3201 &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.
3202 &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).
3203 },
3204}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003205
3206 x__xgafv: string, V1 error format.
3207 Allowed values
3208 1 - v1 error format
3209 2 - v2 error format
3210
3211Returns:
3212 An object of the form:
3213
yoshi-code-bot96afc042021-08-24 00:22:31 -07003214 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) etag: BwWWja0YfJA= version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003215 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
3216 { # Associates `members` with a `role`.
3217 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3218 &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.
3219 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
3220 &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.
3221 &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 -07003222 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003223 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
3224 &quot;A String&quot;,
3225 ],
3226 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
3227 },
3228 ],
3229 &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.
3230 &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).
3231}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003232</div>
3233
3234<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003235 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003236 <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 -07003237
3238Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07003239 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 -07003240 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003241 The object takes the form of:
3242
3243{ # Request message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003244 &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).
3245 &quot;A String&quot;,
3246 ],
3247}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003248
3249 x__xgafv: string, V1 error format.
3250 Allowed values
3251 1 - v1 error format
3252 2 - v2 error format
3253
3254Returns:
3255 An object of the form:
3256
3257 { # Response message for `TestIamPermissions` method.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -08003258 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
3259 &quot;A String&quot;,
3260 ],
3261}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003262</div>
3263
3264</body></html>