blob: 6e573c3a0044c1a254257d66558bd5d15cd1e2cd [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">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences`</p>
80<p class="toc_element">
81 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
82<p class="firstline">Deletes the given `Occurrence` from the system. Use this when</p>
83<p class="toc_element">
84 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
85<p class="firstline">Returns the requested `Occurrence`.</p>
86<p class="toc_element">
87 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
88<p class="firstline">Gets the access control policy for a note or an `Occurrence` resource.</p>
89<p class="toc_element">
90 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the `Note` attached to the given `Occurrence`.</p>
92<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070093 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
95<p class="toc_element">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070096 <code><a href="#list">list(parent, pageToken=None, kind=None, pageSize=None, name=None, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Lists active `Occurrences` for a given project matching the filters.</p>
98<p class="toc_element">
99 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
100<p class="firstline">Retrieves the next page of results.</p>
101<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700102 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Updates an existing occurrence.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Returns the permissions that a caller has on the specified note or</p>
110<h3>Method Details</h3>
111<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700112 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113 <pre>Creates a new `Occurrence`. Use this method to create `Occurrences`
114for a resource.
115
116Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700117 parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 The object takes the form of:
120
121{ # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700122 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700123 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
124 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700125 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
126 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
127 # build providers can enter any desired additional details.
128 &quot;a_key&quot;: &quot;A String&quot;,
129 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700130 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
131 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700132 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700133 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
134 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
135 # Repository.
136 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
137 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
138 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
139 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
140 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
141 },
142 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
143 # Storage.
144 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700145 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
147 # Requirements]
148 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
149 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 },
151 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
152 # source integrity was maintained in the build.
153 #
154 # The keys to this map are file paths used as build source and the values
155 # contain the hash values for those files.
156 #
157 # If the build source came in a single package such as a gzipped tarfile
158 # (.tar.gz), the FileHash will be for the single path to that file.
159 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
160 # messages to verify integrity of source input to the build.
161 &quot;fileHash&quot;: [ # Collection of file hashes.
162 { # Container message for hash values.
163 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
164 &quot;value&quot;: &quot;A String&quot;, # The hash value.
165 },
166 ],
167 },
168 },
169 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
170 # location.
171 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700172 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700173 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
174 # Requirements]
175 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
176 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700177 },
178 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
179 # these locations, in the case where the source repository had multiple
180 # remotes or submodules. This list will not include the context specified in
181 # the context field.
182 { # A SourceContext is a reference to a tree of files. A SourceContext together
183 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700184 &quot;labels&quot;: { # Labels with user defined metadata.
185 &quot;a_key&quot;: &quot;A String&quot;,
186 },
187 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
188 # repository (e.g., GitHub).
189 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
190 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
191 },
192 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
193 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
194 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
195 # the hostURI/project.
196 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
197 &quot;name&quot;: &quot;A String&quot;, # The alias name.
198 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
199 },
200 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
201 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
202 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700203 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
204 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700205 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
206 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
207 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
208 # winged-cargo-31) and a repo name within that project.
209 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
210 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
211 },
212 },
213 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
214 &quot;name&quot;: &quot;A String&quot;, # The alias name.
215 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
216 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700217 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700218 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700219 },
220 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700221 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
222 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700223 &quot;labels&quot;: { # Labels with user defined metadata.
224 &quot;a_key&quot;: &quot;A String&quot;,
225 },
226 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
227 # repository (e.g., GitHub).
228 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
229 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
230 },
231 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
232 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
233 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
234 # the hostURI/project.
235 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
236 &quot;name&quot;: &quot;A String&quot;, # The alias name.
237 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
238 },
239 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
240 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
241 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700242 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
243 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700244 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
245 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
246 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
247 # winged-cargo-31) and a repo name within that project.
248 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
249 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
250 },
251 },
252 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
253 &quot;name&quot;: &quot;A String&quot;, # The alias name.
254 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
255 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700256 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 },
258 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700259 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700260 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
261 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
262 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
263 # user&#x27;s e-mail address at the time the build was initiated; this address may
264 # not represent the same end-user for all time.
265 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
266 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
267 &quot;commands&quot;: [ # Commands requested by the build.
268 { # Command describes a step performed as part of the build pipeline.
269 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
270 # packaged as a Docker container, as presented to `docker pull`.
271 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
272 # this Command as a dependency.
273 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
274 # this Command.
275 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
276 &quot;A String&quot;,
277 ],
278 &quot;env&quot;: [ # Environment variables set before running this Command.
279 &quot;A String&quot;,
280 ],
281 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
282 &quot;A String&quot;,
283 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700284 },
285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700286 &quot;builtArtifacts&quot;: [ # Output of the build.
287 { # Artifact describes a build product.
288 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
289 # like gcr.io/projectID/imagename@sha256:123456
290 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
291 # the case of a container build, the name used to push the container image to
292 # Google Container Registry, as presented to `docker push`. Note that a
293 # single Artifact ID can have multiple names, for example if two tags are
294 # applied to one image.
295 &quot;A String&quot;,
296 ],
297 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
298 # the case of a container build, the name used to push the container image to
299 # Google Container Registry, as presented to `docker push`.
300 #
301 # This field is deprecated in favor of the plural `names` field; it continues
302 # to exist here to allow existing BuildProvenance serialized to json in
303 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
304 # deserialize back into proto.
305 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
306 # container.
307 },
308 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700309 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700310 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
311 # `BuildSignature` in the corresponding Result. After verifying the
312 # signature, `provenance_bytes` can be unmarshalled and compared to the
313 # provenance to confirm that it is unchanged. A base64-encoded string
314 # representation of the provenance bytes is used for the signature in order
315 # to interoperate with openssl which expects this format for signature
316 # verification.
317 #
318 # The serialized form is captured both to avoid ambiguity in how the
319 # provenance is marshalled to json as well to prevent incompatibilities with
320 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700322 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
323 # specified. This field can be used as a filter in list requests.
324 &quot;resource&quot;: { # #
325 # The resource for which the `Occurrence` applies.
326 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700327 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
328 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700329 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
330 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
331 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
332 &quot;value&quot;: &quot;A String&quot;, # The hash value.
333 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700334 },
335 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
336 # applies. For example, https://gcr.io/project/image@sha256:foo This field
337 # can be used as a filter in list requests.
338 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
339 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
340 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700341 # Attestation can be verified using the attached signature. If the verifier
342 # trusts the public key of the signer, then verifying the signature is
343 # sufficient to establish trust. In this circumstance, the
344 # AttestationAuthority to which this Attestation is attached is primarily
345 # useful for look-up (how to find this Attestation if you already know the
346 # Authority and artifact to be verified) and intent (which authority was this
347 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -0700348 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700349 # This message only supports `ATTACHED` signatures, where the payload that is
350 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700351 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
352 # equivalent. Since this message only supports attached signatures, the
353 # payload that was signed must be attached. While the signature format
354 # supported is dependent on the verification implementation, currently only
355 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
356 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
357 # --output=signature.gpg payload.json` will create the signature content
358 # expected in this field in `signature.gpg` for the `payload.json`
359 # attestation payload.
360 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700361 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
362 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
363 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700364 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700365 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
366 # In gpg, the full fingerprint can be retrieved from the `fpr` field
367 # returned when calling --list-keys with --with-colons. For example:
368 # ```
369 # gpg --with-colons --with-fingerprint --force-v4-certs \
370 # --list-keys attester@example.com
371 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -0700372 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700373 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
374 # ```
375 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700376 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700377 # The verifier must ensure that the provided type is one that the verifier
378 # supports, and that the attestation payload is a valid instantiation of that
379 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 },
381 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700382 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
383 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700384 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700385 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
386 # have been found.
387 { # An occurrence of a particular package installation found within a
388 # system&#x27;s filesystem.
389 # e.g. glibc was found in /var/lib/dpkg/status
390 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
391 # denoting the package manager version distributing a package.
392 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
393 # For a discussion of this in Debian/Ubuntu:
394 # http://serverfault.com/questions/604541/debian-packages-version-convention
395 # For a discussion of this in Redhat/Fedora/Centos:
396 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
397 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
398 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
399 # If kind is not NORMAL, then the other fields are ignored.
400 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
401 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
402 },
403 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 },
405 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700406 },
407 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
408 # specific upgrade. This presence is supplied via local sources (i.e. it is
409 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -0700410 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
411 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
412 # For a discussion of this in Debian/Ubuntu:
413 # http://serverfault.com/questions/604541/debian-packages-version-convention
414 # For a discussion of this in Redhat/Fedora/Centos:
415 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
416 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
417 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
418 # If kind is not NORMAL, then the other fields are ignored.
419 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
420 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700421 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700422 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
423 # for the resource_url. This allows efficient filtering, as well as
424 # making it easier to use the occurrence.
425 # operating system (CPE). Some distributions have additional metadata around
426 # updates, classifying them into various categories and severities.
427 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
428 # upstream operating system upgrade feed.
429 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
430 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
431 # https://cpe.mitre.org/specification/.
432 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
433 &quot;A String&quot;,
434 ],
435 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700436 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700437 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
438 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
439 # This field is deprecated, do not use.
440 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700441 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
442 # method returns no data on success, such as `Delete`, the response is
443 # `google.protobuf.Empty`. If the original method is standard
444 # `Get`/`Create`/`Update`, the response should be the resource. For other
445 # methods, the response should have the type `XxxResponse`, where `Xxx`
446 # is the original method name. For example, if the original method name
447 # is `TakeSnapshot()`, the inferred response type is
448 # `TakeSnapshotResponse`.
449 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
450 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700451 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
452 # originally returns it. If you use the default HTTP mapping, the
453 # `name` should be a resource name ending with `operations/{unique_id}`.
454 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
455 # different programming environments, including REST APIs and RPC APIs. It is
456 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
457 # three pieces of data: error code, error message, and error details.
458 #
459 # You can find out more about this error model and how to work with it in the
460 # [API Design Guide](https://cloud.google.com/apis/design/errors).
461 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
462 # message types for APIs to use.
463 {
464 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
465 },
466 ],
467 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
468 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
469 # user-facing error message should be localized and sent in the
470 # google.rpc.Status.details field, or localized by the client.
471 },
472 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
473 # contains progress information and common metadata such as create time.
474 # Some services might not provide such metadata. Any method that returns a
475 # long-running operation should document the metadata type, if any.
476 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
477 },
478 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
479 # If `true`, the operation is completed, and either `error` or `response` is
480 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 },
482 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
483 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
484 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
485 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
486 # details to show to the user. The LocalizedMessage output only and
487 # populated by the API.
488 # different programming environments, including REST APIs and RPC APIs. It is
489 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
490 # three pieces of data: error code, error message, and error details.
491 #
492 # You can find out more about this error model and how to work with it in the
493 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700494 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
495 # message types for APIs to use.
496 {
497 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
498 },
499 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700500 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
501 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
502 # user-facing error message should be localized and sent in the
503 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -0700504 },
505 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700506 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
507 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
508 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700509 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700510 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700511 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
512 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
513 # deployable field with the same name.
514 &quot;A String&quot;,
515 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700516 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700517 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700518 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
519 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -0700520 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700521 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700522 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
523 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -0700524 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
525 # available and note provider assigned severity when distro has not yet
526 # assigned a severity for this vulnerability.
527 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
528 # the associated resource.
529 { # This message wraps a location affected by a vulnerability and its
530 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700531 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -0700532 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700533 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
534 # filter in list requests.
535 # For a discussion of this in Debian/Ubuntu:
536 # http://serverfault.com/questions/604541/debian-packages-version-convention
537 # For a discussion of this in Redhat/Fedora/Centos:
538 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
539 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
540 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
541 # If kind is not NORMAL, then the other fields are ignored.
542 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
543 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
544 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700545 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
546 # format. Examples include distro or storage location for vulnerable jar.
547 # This field can be used as a filter in list requests.
548 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -0700549 },
550 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -0700551 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
552 # filter in list requests.
553 # For a discussion of this in Debian/Ubuntu:
554 # http://serverfault.com/questions/604541/debian-packages-version-convention
555 # For a discussion of this in Redhat/Fedora/Centos:
556 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
557 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
558 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
559 # If kind is not NORMAL, then the other fields are ignored.
560 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
561 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
562 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700563 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
564 # format. Examples include distro or storage location for vulnerable jar.
565 # This field can be used as a filter in list requests.
566 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -0700567 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700568 },
569 ],
570 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700571 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
572 # scale of 0-10 where 0 indicates low severity and 10 indicates high
573 # severity.
574 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
575 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -0700576 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700577 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
578 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
579 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
580 # in the associated note.
581 # DockerImage relationship. This image would be produced from a Dockerfile
582 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
583 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
584 # associated image basis.
585 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
586 # occurrence.
587 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
588 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
589 &quot;A String&quot;,
590 ],
591 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
592 # representation.
593 # This field can be used as a filter in list requests.
594 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
595 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
596 # Only the name of the final blob is kept.
597 # This field can be used as a filter in list requests.
598 },
599 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
600 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
601 # following the base image and [1] being the final layer.
602 { # Layer holds metadata specific to a layer of a Docker image.
603 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
604 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
605 },
606 ],
607 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700608}
609
Bu Sun Kim65020912020-05-20 12:08:20 -0700610 name: string, The name of the project. Should be of the form &quot;projects/{project_id}&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700611@Deprecated
612 x__xgafv: string, V1 error format.
613 Allowed values
614 1 - v1 error format
615 2 - v2 error format
616
617Returns:
618 An object of the form:
619
620 { # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700621 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700622 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
623 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700624 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
625 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
626 # build providers can enter any desired additional details.
627 &quot;a_key&quot;: &quot;A String&quot;,
628 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700629 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
630 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700631 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -0700632 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
633 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
634 # Repository.
635 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
636 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
637 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
638 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
639 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
640 },
641 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
642 # Storage.
643 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700644 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700645 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
646 # Requirements]
647 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
648 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 },
650 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
651 # source integrity was maintained in the build.
652 #
653 # The keys to this map are file paths used as build source and the values
654 # contain the hash values for those files.
655 #
656 # If the build source came in a single package such as a gzipped tarfile
657 # (.tar.gz), the FileHash will be for the single path to that file.
658 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
659 # messages to verify integrity of source input to the build.
660 &quot;fileHash&quot;: [ # Collection of file hashes.
661 { # Container message for hash values.
662 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
663 &quot;value&quot;: &quot;A String&quot;, # The hash value.
664 },
665 ],
666 },
667 },
668 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
669 # location.
670 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700671 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -0700672 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
673 # Requirements]
674 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
675 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -0700676 },
677 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
678 # these locations, in the case where the source repository had multiple
679 # remotes or submodules. This list will not include the context specified in
680 # the context field.
681 { # A SourceContext is a reference to a tree of files. A SourceContext together
682 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700683 &quot;labels&quot;: { # Labels with user defined metadata.
684 &quot;a_key&quot;: &quot;A String&quot;,
685 },
686 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
687 # repository (e.g., GitHub).
688 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
689 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
690 },
691 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
692 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
693 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
694 # the hostURI/project.
695 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
696 &quot;name&quot;: &quot;A String&quot;, # The alias name.
697 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
698 },
699 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
700 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
701 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700702 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
703 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700704 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
705 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
706 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
707 # winged-cargo-31) and a repo name within that project.
708 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
709 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
710 },
711 },
712 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
713 &quot;name&quot;: &quot;A String&quot;, # The alias name.
714 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
715 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700716 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700717 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 },
719 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700720 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
721 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700722 &quot;labels&quot;: { # Labels with user defined metadata.
723 &quot;a_key&quot;: &quot;A String&quot;,
724 },
725 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
726 # repository (e.g., GitHub).
727 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
728 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
729 },
730 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
731 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
732 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
733 # the hostURI/project.
734 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
735 &quot;name&quot;: &quot;A String&quot;, # The alias name.
736 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
737 },
738 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
739 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
740 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700741 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
742 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -0700743 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
744 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
745 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
746 # winged-cargo-31) and a repo name within that project.
747 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
748 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
749 },
750 },
751 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
752 &quot;name&quot;: &quot;A String&quot;, # The alias name.
753 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
754 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700755 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 },
757 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700758 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700759 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
760 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
761 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
762 # user&#x27;s e-mail address at the time the build was initiated; this address may
763 # not represent the same end-user for all time.
764 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
765 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
766 &quot;commands&quot;: [ # Commands requested by the build.
767 { # Command describes a step performed as part of the build pipeline.
768 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
769 # packaged as a Docker container, as presented to `docker pull`.
770 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
771 # this Command as a dependency.
772 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
773 # this Command.
774 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
775 &quot;A String&quot;,
776 ],
777 &quot;env&quot;: [ # Environment variables set before running this Command.
778 &quot;A String&quot;,
779 ],
780 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
781 &quot;A String&quot;,
782 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700783 },
784 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700785 &quot;builtArtifacts&quot;: [ # Output of the build.
786 { # Artifact describes a build product.
787 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
788 # like gcr.io/projectID/imagename@sha256:123456
789 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
790 # the case of a container build, the name used to push the container image to
791 # Google Container Registry, as presented to `docker push`. Note that a
792 # single Artifact ID can have multiple names, for example if two tags are
793 # applied to one image.
794 &quot;A String&quot;,
795 ],
796 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
797 # the case of a container build, the name used to push the container image to
798 # Google Container Registry, as presented to `docker push`.
799 #
800 # This field is deprecated in favor of the plural `names` field; it continues
801 # to exist here to allow existing BuildProvenance serialized to json in
802 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
803 # deserialize back into proto.
804 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
805 # container.
806 },
807 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700808 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700809 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
810 # `BuildSignature` in the corresponding Result. After verifying the
811 # signature, `provenance_bytes` can be unmarshalled and compared to the
812 # provenance to confirm that it is unchanged. A base64-encoded string
813 # representation of the provenance bytes is used for the signature in order
814 # to interoperate with openssl which expects this format for signature
815 # verification.
816 #
817 # The serialized form is captured both to avoid ambiguity in how the
818 # provenance is marshalled to json as well to prevent incompatibilities with
819 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700821 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
822 # specified. This field can be used as a filter in list requests.
823 &quot;resource&quot;: { # #
824 # The resource for which the `Occurrence` applies.
825 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700826 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
827 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -0700828 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
829 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
830 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
831 &quot;value&quot;: &quot;A String&quot;, # The hash value.
832 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700833 },
834 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
835 # applies. For example, https://gcr.io/project/image@sha256:foo This field
836 # can be used as a filter in list requests.
837 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
838 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
839 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700840 # Attestation can be verified using the attached signature. If the verifier
841 # trusts the public key of the signer, then verifying the signature is
842 # sufficient to establish trust. In this circumstance, the
843 # AttestationAuthority to which this Attestation is attached is primarily
844 # useful for look-up (how to find this Attestation if you already know the
845 # Authority and artifact to be verified) and intent (which authority was this
846 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -0700847 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700848 # This message only supports `ATTACHED` signatures, where the payload that is
849 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700850 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
851 # equivalent. Since this message only supports attached signatures, the
852 # payload that was signed must be attached. While the signature format
853 # supported is dependent on the verification implementation, currently only
854 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
855 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
856 # --output=signature.gpg payload.json` will create the signature content
857 # expected in this field in `signature.gpg` for the `payload.json`
858 # attestation payload.
859 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700860 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
861 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
862 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700863 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700864 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
865 # In gpg, the full fingerprint can be retrieved from the `fpr` field
866 # returned when calling --list-keys with --with-colons. For example:
867 # ```
868 # gpg --with-colons --with-fingerprint --force-v4-certs \
869 # --list-keys attester@example.com
870 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -0700871 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700872 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
873 # ```
874 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700875 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700876 # The verifier must ensure that the provided type is one that the verifier
877 # supports, and that the attestation payload is a valid instantiation of that
878 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700879 },
880 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
882 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700883 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -0700884 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
885 # have been found.
886 { # An occurrence of a particular package installation found within a
887 # system&#x27;s filesystem.
888 # e.g. glibc was found in /var/lib/dpkg/status
889 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
890 # denoting the package manager version distributing a package.
891 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
892 # For a discussion of this in Debian/Ubuntu:
893 # http://serverfault.com/questions/604541/debian-packages-version-convention
894 # For a discussion of this in Redhat/Fedora/Centos:
895 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
896 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
897 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
898 # If kind is not NORMAL, then the other fields are ignored.
899 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
900 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
901 },
902 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700903 },
904 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700905 },
906 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
907 # specific upgrade. This presence is supplied via local sources (i.e. it is
908 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -0700909 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
910 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
911 # For a discussion of this in Debian/Ubuntu:
912 # http://serverfault.com/questions/604541/debian-packages-version-convention
913 # For a discussion of this in Redhat/Fedora/Centos:
914 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
915 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
916 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
917 # If kind is not NORMAL, then the other fields are ignored.
918 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
919 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700920 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700921 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
922 # for the resource_url. This allows efficient filtering, as well as
923 # making it easier to use the occurrence.
924 # operating system (CPE). Some distributions have additional metadata around
925 # updates, classifying them into various categories and severities.
926 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
927 # upstream operating system upgrade feed.
928 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
929 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
930 # https://cpe.mitre.org/specification/.
931 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
932 &quot;A String&quot;,
933 ],
934 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700935 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700936 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
937 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
938 # This field is deprecated, do not use.
939 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -0700940 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
941 # method returns no data on success, such as `Delete`, the response is
942 # `google.protobuf.Empty`. If the original method is standard
943 # `Get`/`Create`/`Update`, the response should be the resource. For other
944 # methods, the response should have the type `XxxResponse`, where `Xxx`
945 # is the original method name. For example, if the original method name
946 # is `TakeSnapshot()`, the inferred response type is
947 # `TakeSnapshotResponse`.
948 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
949 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700950 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
951 # originally returns it. If you use the default HTTP mapping, the
952 # `name` should be a resource name ending with `operations/{unique_id}`.
953 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
954 # different programming environments, including REST APIs and RPC APIs. It is
955 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
956 # three pieces of data: error code, error message, and error details.
957 #
958 # You can find out more about this error model and how to work with it in the
959 # [API Design Guide](https://cloud.google.com/apis/design/errors).
960 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
961 # message types for APIs to use.
962 {
963 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
964 },
965 ],
966 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
967 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
968 # user-facing error message should be localized and sent in the
969 # google.rpc.Status.details field, or localized by the client.
970 },
971 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
972 # contains progress information and common metadata such as create time.
973 # Some services might not provide such metadata. Any method that returns a
974 # long-running operation should document the metadata type, if any.
975 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
976 },
977 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
978 # If `true`, the operation is completed, and either `error` or `response` is
979 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -0700980 },
981 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
982 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
983 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
984 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
985 # details to show to the user. The LocalizedMessage output only and
986 # populated by the API.
987 # different programming environments, including REST APIs and RPC APIs. It is
988 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
989 # three pieces of data: error code, error message, and error details.
990 #
991 # You can find out more about this error model and how to work with it in the
992 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -0700993 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
994 # message types for APIs to use.
995 {
996 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
997 },
998 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700999 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1000 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1001 # user-facing error message should be localized and sent in the
1002 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001003 },
1004 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001005 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
1006 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
1007 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001008 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001009 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001010 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1011 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
1012 # deployable field with the same name.
1013 &quot;A String&quot;,
1014 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001015 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001016 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001017 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1018 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001019 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001020 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001021 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
1022 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001023 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
1024 # available and note provider assigned severity when distro has not yet
1025 # assigned a severity for this vulnerability.
1026 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
1027 # the associated resource.
1028 { # This message wraps a location affected by a vulnerability and its
1029 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001030 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001031 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001032 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
1033 # filter in list requests.
1034 # For a discussion of this in Debian/Ubuntu:
1035 # http://serverfault.com/questions/604541/debian-packages-version-convention
1036 # For a discussion of this in Redhat/Fedora/Centos:
1037 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1038 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1039 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1040 # If kind is not NORMAL, then the other fields are ignored.
1041 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1042 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1043 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001044 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1045 # format. Examples include distro or storage location for vulnerable jar.
1046 # This field can be used as a filter in list requests.
1047 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001048 },
1049 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001050 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
1051 # filter in list requests.
1052 # For a discussion of this in Debian/Ubuntu:
1053 # http://serverfault.com/questions/604541/debian-packages-version-convention
1054 # For a discussion of this in Redhat/Fedora/Centos:
1055 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1056 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1057 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1058 # If kind is not NORMAL, then the other fields are ignored.
1059 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1060 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1061 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001062 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1063 # format. Examples include distro or storage location for vulnerable jar.
1064 # This field can be used as a filter in list requests.
1065 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001067 },
1068 ],
1069 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001070 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
1071 # scale of 0-10 where 0 indicates low severity and 10 indicates high
1072 # severity.
1073 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1074 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -07001075 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001076 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1077 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1078 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
1079 # in the associated note.
1080 # DockerImage relationship. This image would be produced from a Dockerfile
1081 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
1082 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
1083 # associated image basis.
1084 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
1085 # occurrence.
1086 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1087 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1088 &quot;A String&quot;,
1089 ],
1090 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1091 # representation.
1092 # This field can be used as a filter in list requests.
1093 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1094 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1095 # Only the name of the final blob is kept.
1096 # This field can be used as a filter in list requests.
1097 },
1098 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
1099 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
1100 # following the base image and [1] being the final layer.
1101 { # Layer holds metadata specific to a layer of a Docker image.
1102 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1103 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1104 },
1105 ],
1106 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001107 }</pre>
1108</div>
1109
1110<div class="method">
1111 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
1112 <pre>Deletes the given `Occurrence` from the system. Use this when
1113an `Occurrence` is no longer applicable for the given resource.
1114
1115Args:
1116 name: string, The name of the occurrence in the form of
Bu Sun Kim65020912020-05-20 12:08:20 -07001117&quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001118 x__xgafv: string, V1 error format.
1119 Allowed values
1120 1 - v1 error format
1121 2 - v2 error format
1122
1123Returns:
1124 An object of the form:
1125
1126 { # A generic empty message that you can re-use to avoid defining duplicated
1127 # empty messages in your APIs. A typical example is to use it as the request
1128 # or the response type of an API method. For instance:
1129 #
1130 # service Foo {
1131 # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
1132 # }
1133 #
1134 # The JSON representation for `Empty` is empty JSON object `{}`.
1135 }</pre>
1136</div>
1137
1138<div class="method">
1139 <code class="details" id="get">get(name, x__xgafv=None)</code>
1140 <pre>Returns the requested `Occurrence`.
1141
1142Args:
1143 name: string, The name of the occurrence of the form
Bu Sun Kim65020912020-05-20 12:08:20 -07001144&quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001145 x__xgafv: string, V1 error format.
1146 Allowed values
1147 1 - v1 error format
1148 2 - v2 error format
1149
1150Returns:
1151 An object of the form:
1152
1153 { # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -07001154 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001155 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
1156 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001157 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1158 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
1159 # build providers can enter any desired additional details.
1160 &quot;a_key&quot;: &quot;A String&quot;,
1161 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001162 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1163 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001164 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001165 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1166 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
1167 # Repository.
1168 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1169 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1170 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1171 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1172 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1173 },
1174 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
1175 # Storage.
1176 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001177 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001178 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
1179 # Requirements]
1180 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1181 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07001182 },
1183 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
1184 # source integrity was maintained in the build.
1185 #
1186 # The keys to this map are file paths used as build source and the values
1187 # contain the hash values for those files.
1188 #
1189 # If the build source came in a single package such as a gzipped tarfile
1190 # (.tar.gz), the FileHash will be for the single path to that file.
1191 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
1192 # messages to verify integrity of source input to the build.
1193 &quot;fileHash&quot;: [ # Collection of file hashes.
1194 { # Container message for hash values.
1195 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1196 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1197 },
1198 ],
1199 },
1200 },
1201 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
1202 # location.
1203 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001204 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07001205 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
1206 # Requirements]
1207 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1208 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07001209 },
1210 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
1211 # these locations, in the case where the source repository had multiple
1212 # remotes or submodules. This list will not include the context specified in
1213 # the context field.
1214 { # A SourceContext is a reference to a tree of files. A SourceContext together
1215 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001216 &quot;labels&quot;: { # Labels with user defined metadata.
1217 &quot;a_key&quot;: &quot;A String&quot;,
1218 },
1219 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
1220 # repository (e.g., GitHub).
1221 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1222 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1223 },
1224 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1225 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
1226 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
1227 # the hostURI/project.
1228 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1229 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1230 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1231 },
1232 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1233 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1234 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001235 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
1236 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07001237 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1238 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1239 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
1240 # winged-cargo-31) and a repo name within that project.
1241 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1242 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1243 },
1244 },
1245 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1246 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1247 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1248 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001249 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001250 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001251 },
1252 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001253 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
1254 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001255 &quot;labels&quot;: { # Labels with user defined metadata.
1256 &quot;a_key&quot;: &quot;A String&quot;,
1257 },
1258 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
1259 # repository (e.g., GitHub).
1260 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1261 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1262 },
1263 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1264 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
1265 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
1266 # the hostURI/project.
1267 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1268 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1269 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1270 },
1271 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1272 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1273 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001274 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
1275 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07001276 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1277 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1278 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
1279 # winged-cargo-31) and a repo name within that project.
1280 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1281 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1282 },
1283 },
1284 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1285 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1286 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1287 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001288 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 },
1290 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001291 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001292 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1293 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1294 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
1295 # user&#x27;s e-mail address at the time the build was initiated; this address may
1296 # not represent the same end-user for all time.
1297 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1298 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1299 &quot;commands&quot;: [ # Commands requested by the build.
1300 { # Command describes a step performed as part of the build pipeline.
1301 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
1302 # packaged as a Docker container, as presented to `docker pull`.
1303 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
1304 # this Command as a dependency.
1305 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
1306 # this Command.
1307 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1308 &quot;A String&quot;,
1309 ],
1310 &quot;env&quot;: [ # Environment variables set before running this Command.
1311 &quot;A String&quot;,
1312 ],
1313 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1314 &quot;A String&quot;,
1315 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001316 },
1317 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001318 &quot;builtArtifacts&quot;: [ # Output of the build.
1319 { # Artifact describes a build product.
1320 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
1321 # like gcr.io/projectID/imagename@sha256:123456
1322 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
1323 # the case of a container build, the name used to push the container image to
1324 # Google Container Registry, as presented to `docker push`. Note that a
1325 # single Artifact ID can have multiple names, for example if two tags are
1326 # applied to one image.
1327 &quot;A String&quot;,
1328 ],
1329 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
1330 # the case of a container build, the name used to push the container image to
1331 # Google Container Registry, as presented to `docker push`.
1332 #
1333 # This field is deprecated in favor of the plural `names` field; it continues
1334 # to exist here to allow existing BuildProvenance serialized to json in
1335 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
1336 # deserialize back into proto.
1337 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
1338 # container.
1339 },
1340 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001341 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001342 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
1343 # `BuildSignature` in the corresponding Result. After verifying the
1344 # signature, `provenance_bytes` can be unmarshalled and compared to the
1345 # provenance to confirm that it is unchanged. A base64-encoded string
1346 # representation of the provenance bytes is used for the signature in order
1347 # to interoperate with openssl which expects this format for signature
1348 # verification.
1349 #
1350 # The serialized form is captured both to avoid ambiguity in how the
1351 # provenance is marshalled to json as well to prevent incompatibilities with
1352 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001353 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001354 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
1355 # specified. This field can be used as a filter in list requests.
1356 &quot;resource&quot;: { # #
1357 # The resource for which the `Occurrence` applies.
1358 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001359 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
1360 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -07001361 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1362 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1363 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1364 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1365 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001366 },
1367 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
1368 # applies. For example, https://gcr.io/project/image@sha256:foo This field
1369 # can be used as a filter in list requests.
1370 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
1371 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
1372 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001373 # Attestation can be verified using the attached signature. If the verifier
1374 # trusts the public key of the signer, then verifying the signature is
1375 # sufficient to establish trust. In this circumstance, the
1376 # AttestationAuthority to which this Attestation is attached is primarily
1377 # useful for look-up (how to find this Attestation if you already know the
1378 # Authority and artifact to be verified) and intent (which authority was this
1379 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07001380 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001381 # This message only supports `ATTACHED` signatures, where the payload that is
1382 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001383 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
1384 # equivalent. Since this message only supports attached signatures, the
1385 # payload that was signed must be attached. While the signature format
1386 # supported is dependent on the verification implementation, currently only
1387 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
1388 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
1389 # --output=signature.gpg payload.json` will create the signature content
1390 # expected in this field in `signature.gpg` for the `payload.json`
1391 # attestation payload.
1392 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001393 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
1394 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
1395 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001396 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001397 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
1398 # In gpg, the full fingerprint can be retrieved from the `fpr` field
1399 # returned when calling --list-keys with --with-colons. For example:
1400 # ```
1401 # gpg --with-colons --with-fingerprint --force-v4-certs \
1402 # --list-keys attester@example.com
1403 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07001404 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001405 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
1406 # ```
1407 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001408 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001409 # The verifier must ensure that the provided type is one that the verifier
1410 # supports, and that the attestation payload is a valid instantiation of that
1411 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001412 },
1413 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
1415 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001416 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -07001417 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
1418 # have been found.
1419 { # An occurrence of a particular package installation found within a
1420 # system&#x27;s filesystem.
1421 # e.g. glibc was found in /var/lib/dpkg/status
1422 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1423 # denoting the package manager version distributing a package.
1424 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
1425 # For a discussion of this in Debian/Ubuntu:
1426 # http://serverfault.com/questions/604541/debian-packages-version-convention
1427 # For a discussion of this in Redhat/Fedora/Centos:
1428 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1429 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1430 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1431 # If kind is not NORMAL, then the other fields are ignored.
1432 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1433 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1434 },
1435 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001436 },
1437 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001438 },
1439 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
1440 # specific upgrade. This presence is supplied via local sources (i.e. it is
1441 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -07001442 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1443 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
1444 # For a discussion of this in Debian/Ubuntu:
1445 # http://serverfault.com/questions/604541/debian-packages-version-convention
1446 # For a discussion of this in Redhat/Fedora/Centos:
1447 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1448 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1449 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1450 # If kind is not NORMAL, then the other fields are ignored.
1451 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1452 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001453 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001454 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
1455 # for the resource_url. This allows efficient filtering, as well as
1456 # making it easier to use the occurrence.
1457 # operating system (CPE). Some distributions have additional metadata around
1458 # updates, classifying them into various categories and severities.
1459 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1460 # upstream operating system upgrade feed.
1461 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1462 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1463 # https://cpe.mitre.org/specification/.
1464 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1465 &quot;A String&quot;,
1466 ],
1467 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001468 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001469 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1470 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
1471 # This field is deprecated, do not use.
1472 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07001473 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1474 # method returns no data on success, such as `Delete`, the response is
1475 # `google.protobuf.Empty`. If the original method is standard
1476 # `Get`/`Create`/`Update`, the response should be the resource. For other
1477 # methods, the response should have the type `XxxResponse`, where `Xxx`
1478 # is the original method name. For example, if the original method name
1479 # is `TakeSnapshot()`, the inferred response type is
1480 # `TakeSnapshotResponse`.
1481 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1482 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001483 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1484 # originally returns it. If you use the default HTTP mapping, the
1485 # `name` should be a resource name ending with `operations/{unique_id}`.
1486 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
1487 # different programming environments, including REST APIs and RPC APIs. It is
1488 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1489 # three pieces of data: error code, error message, and error details.
1490 #
1491 # You can find out more about this error model and how to work with it in the
1492 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1493 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1494 # message types for APIs to use.
1495 {
1496 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1497 },
1498 ],
1499 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1500 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1501 # user-facing error message should be localized and sent in the
1502 # google.rpc.Status.details field, or localized by the client.
1503 },
1504 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1505 # contains progress information and common metadata such as create time.
1506 # Some services might not provide such metadata. Any method that returns a
1507 # long-running operation should document the metadata type, if any.
1508 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1509 },
1510 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1511 # If `true`, the operation is completed, and either `error` or `response` is
1512 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07001513 },
1514 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1515 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1516 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1517 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
1518 # details to show to the user. The LocalizedMessage output only and
1519 # populated by the API.
1520 # different programming environments, including REST APIs and RPC APIs. It is
1521 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1522 # three pieces of data: error code, error message, and error details.
1523 #
1524 # You can find out more about this error model and how to work with it in the
1525 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07001526 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1527 # message types for APIs to use.
1528 {
1529 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1530 },
1531 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001532 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1533 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1534 # user-facing error message should be localized and sent in the
1535 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07001536 },
1537 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001538 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
1539 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
1540 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001541 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001542 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001543 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1544 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
1545 # deployable field with the same name.
1546 &quot;A String&quot;,
1547 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001548 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001549 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001550 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1551 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07001552 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001553 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07001554 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
1555 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -07001556 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
1557 # available and note provider assigned severity when distro has not yet
1558 # assigned a severity for this vulnerability.
1559 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
1560 # the associated resource.
1561 { # This message wraps a location affected by a vulnerability and its
1562 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001563 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07001564 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001565 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
1566 # filter in list requests.
1567 # For a discussion of this in Debian/Ubuntu:
1568 # http://serverfault.com/questions/604541/debian-packages-version-convention
1569 # For a discussion of this in Redhat/Fedora/Centos:
1570 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1571 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1572 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1573 # If kind is not NORMAL, then the other fields are ignored.
1574 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1575 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1576 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001577 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1578 # format. Examples include distro or storage location for vulnerable jar.
1579 # This field can be used as a filter in list requests.
1580 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001581 },
1582 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07001583 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
1584 # filter in list requests.
1585 # For a discussion of this in Debian/Ubuntu:
1586 # http://serverfault.com/questions/604541/debian-packages-version-convention
1587 # For a discussion of this in Redhat/Fedora/Centos:
1588 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1589 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1590 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1591 # If kind is not NORMAL, then the other fields are ignored.
1592 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1593 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1594 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001595 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1596 # format. Examples include distro or storage location for vulnerable jar.
1597 # This field can be used as a filter in list requests.
1598 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07001599 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001600 },
1601 ],
1602 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001603 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
1604 # scale of 0-10 where 0 indicates low severity and 10 indicates high
1605 # severity.
1606 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1607 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -07001608 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001609 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1610 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1611 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
1612 # in the associated note.
1613 # DockerImage relationship. This image would be produced from a Dockerfile
1614 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
1615 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
1616 # associated image basis.
1617 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
1618 # occurrence.
1619 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1620 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1621 &quot;A String&quot;,
1622 ],
1623 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1624 # representation.
1625 # This field can be used as a filter in list requests.
1626 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1627 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1628 # Only the name of the final blob is kept.
1629 # This field can be used as a filter in list requests.
1630 },
1631 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
1632 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
1633 # following the base image and [1] being the final layer.
1634 { # Layer holds metadata specific to a layer of a Docker image.
1635 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1636 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1637 },
1638 ],
1639 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001640 }</pre>
1641</div>
1642
1643<div class="method">
1644 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
1645 <pre>Gets the access control policy for a note or an `Occurrence` resource.
1646Requires `containeranalysis.notes.setIamPolicy` or
1647`containeranalysis.occurrences.setIamPolicy` permission if the resource is
1648a note or occurrence, respectively.
1649Attempting to call this method on a resource without the required
1650permission will result in a `PERMISSION_DENIED` error. Attempting to call
1651this method on a non-existent resource will result in a `NOT_FOUND` error
1652if the user has list permission on the project, or a `PERMISSION_DENIED`
1653error otherwise. The resource takes the following formats:
1654`projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and
1655projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
1656
1657Args:
1658 resource: string, REQUIRED: The resource for which the policy is being requested.
1659See the operation documentation for the appropriate value for this field. (required)
1660 body: object, The request body.
1661 The object takes the form of:
1662
1663{ # Request message for `GetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07001664 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
Dan O'Mearadd494642020-05-01 07:42:23 -07001665 # `GetIamPolicy`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001666 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned.
Dan O'Mearadd494642020-05-01 07:42:23 -07001667 #
1668 # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
1669 # rejected.
1670 #
1671 # Requests for policies with any conditional bindings must specify version 3.
1672 # Policies without any conditional bindings may specify any valid value or
1673 # leave the field unset.
Bu Sun Kim65020912020-05-20 12:08:20 -07001674 #
1675 # To learn which resources support conditions in their IAM policies, see the
1676 # [IAM
1677 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001678 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001679 }
1680
1681 x__xgafv: string, V1 error format.
1682 Allowed values
1683 1 - v1 error format
1684 2 - v2 error format
1685
1686Returns:
1687 An object of the form:
1688
Dan O'Mearadd494642020-05-01 07:42:23 -07001689 { # An Identity and Access Management (IAM) policy, which specifies access
1690 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001691 #
1692 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001693 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
1694 # `members` to a single `role`. Members can be user accounts, service accounts,
1695 # Google groups, and domains (such as G Suite). A `role` is a named list of
1696 # permissions; each `role` can be an IAM predefined role or a user-created
1697 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001698 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001699 # For some types of Google Cloud resources, a `binding` can also specify a
1700 # `condition`, which is a logical expression that allows access to a resource
1701 # only if the expression evaluates to `true`. A condition can add constraints
1702 # based on attributes of the request, the resource, or both. To learn which
1703 # resources support conditions in their IAM policies, see the
1704 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001705 #
1706 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001707 #
1708 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001709 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001710 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001711 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
1712 # &quot;members&quot;: [
1713 # &quot;user:mike@example.com&quot;,
1714 # &quot;group:admins@example.com&quot;,
1715 # &quot;domain:google.com&quot;,
1716 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001717 # ]
1718 # },
1719 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07001720 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
1721 # &quot;members&quot;: [
1722 # &quot;user:eve@example.com&quot;
1723 # ],
1724 # &quot;condition&quot;: {
1725 # &quot;title&quot;: &quot;expirable access&quot;,
1726 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
1727 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07001728 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001729 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07001730 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001731 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
1732 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001733 # }
1734 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001735 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001736 #
1737 # bindings:
1738 # - members:
1739 # - user:mike@example.com
1740 # - group:admins@example.com
1741 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07001742 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
1743 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001744 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07001745 # - user:eve@example.com
1746 # role: roles/resourcemanager.organizationViewer
1747 # condition:
1748 # title: expirable access
1749 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07001750 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07001751 # - etag: BwWWja0YfJA=
1752 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001753 #
1754 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07001755 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07001756 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
1757 # prevent simultaneous updates of a policy from overwriting each other.
1758 # It is strongly suggested that systems make use of the `etag` in the
1759 # read-modify-write cycle to perform policy updates in order to avoid race
1760 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
1761 # systems are expected to put that etag in the request to `setIamPolicy` to
1762 # ensure that their change will be applied to the same version of the policy.
1763 #
1764 # **Important:** If you use IAM Conditions, you must include the `etag` field
1765 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1766 # you to overwrite a version `3` policy with a version `1` policy, and all of
1767 # the conditions in the version `3` policy are lost.
1768 &quot;version&quot;: 42, # Specifies the format of the policy.
1769 #
1770 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
1771 # are rejected.
1772 #
1773 # Any operation that affects conditional role bindings must specify version
1774 # `3`. This requirement applies to the following operations:
1775 #
1776 # * Getting a policy that includes a conditional role binding
1777 # * Adding a conditional role binding to a policy
1778 # * Changing a conditional role binding in a policy
1779 # * Removing any role binding, with or without a condition, from a policy
1780 # that includes conditions
1781 #
1782 # **Important:** If you use IAM Conditions, you must include the `etag` field
1783 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
1784 # you to overwrite a version `3` policy with a version `1` policy, and all of
1785 # the conditions in the version `3` policy are lost.
1786 #
1787 # If a policy does not include any conditions, operations on that policy may
1788 # specify any valid version or leave the field unset.
1789 #
1790 # To learn which resources support conditions in their IAM policies, see the
1791 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1792 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07001793 # `condition` that determines how and when the `bindings` are applied. Each
1794 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001795 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001796 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1797 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001798 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1799 #
1800 # If the condition evaluates to `true`, then this binding applies to the
1801 # current request.
1802 #
1803 # If the condition evaluates to `false`, then this binding does not apply to
1804 # the current request. However, a different role binding might grant the same
1805 # role to one or more of the members in this binding.
1806 #
1807 # To learn which resources support conditions in their IAM policies, see the
1808 # [IAM
1809 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1810 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1811 # are documented at https://github.com/google/cel-spec.
1812 #
1813 # Example (Comparison):
1814 #
1815 # title: &quot;Summary size limit&quot;
1816 # description: &quot;Determines if a summary is less than 100 chars&quot;
1817 # expression: &quot;document.summary.size() &lt; 100&quot;
1818 #
1819 # Example (Equality):
1820 #
1821 # title: &quot;Requestor is owner&quot;
1822 # description: &quot;Determines if requestor is the document owner&quot;
1823 # expression: &quot;document.owner == request.auth.claims.email&quot;
1824 #
1825 # Example (Logic):
1826 #
1827 # title: &quot;Public documents&quot;
1828 # description: &quot;Determine whether the document should be publicly visible&quot;
1829 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1830 #
1831 # Example (Data Manipulation):
1832 #
1833 # title: &quot;Notification string&quot;
1834 # description: &quot;Create a notification string with a timestamp.&quot;
1835 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1836 #
1837 # The exact variables and functions that may be referenced within an expression
1838 # are determined by the service that evaluates it. See the service
1839 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07001840 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
1841 # its purpose. This can be used e.g. in UIs which allow to enter the
1842 # expression.
1843 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
1844 # reporting, e.g. a file name and a position in the file.
1845 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
1846 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001847 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1848 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07001849 },
1850 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001851 # `members` can have the following values:
1852 #
1853 # * `allUsers`: A special identifier that represents anyone who is
1854 # on the internet; with or without a Google account.
1855 #
1856 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1857 # who is authenticated with a Google account or a service account.
1858 #
1859 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001860 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001861 #
1862 #
1863 # * `serviceAccount:{emailid}`: An email address that represents a service
1864 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1865 #
1866 # * `group:{emailid}`: An email address that represents a Google group.
1867 # For example, `admins@example.com`.
1868 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001869 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1870 # identifier) representing a user that has been recently deleted. For
1871 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1872 # recovered, this value reverts to `user:{emailid}` and the recovered user
1873 # retains the role in the binding.
1874 #
1875 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1876 # unique identifier) representing a service account that has been recently
1877 # deleted. For example,
1878 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1879 # If the service account is undeleted, this value reverts to
1880 # `serviceAccount:{emailid}` and the undeleted service account retains the
1881 # role in the binding.
1882 #
1883 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1884 # identifier) representing a Google group that has been recently
1885 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1886 # the group is recovered, this value reverts to `group:{emailid}` and the
1887 # recovered group retains the role in the binding.
1888 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001889 #
1890 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1891 # users of that domain. For example, `google.com` or `example.com`.
1892 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001894 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001895 },
1896 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001897 }</pre>
1898</div>
1899
1900<div class="method">
1901 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1902 <pre>Gets the `Note` attached to the given `Occurrence`.
1903
1904Args:
1905 name: string, The name of the occurrence in the form
Bu Sun Kim65020912020-05-20 12:08:20 -07001906&quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001907 x__xgafv: string, V1 error format.
1908 Allowed values
1909 1 - v1 error format
1910 2 - v2 error format
1911
1912Returns:
1913 An object of the form:
1914
1915 { # Provides a detailed description of a `Note`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001916 &quot;relatedUrl&quot;: [ # URLs associated with this note
1917 { # Metadata for any related URL information
1918 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
1919 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1920 },
1921 ],
1922 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
1923 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
1924 # relationship. Linked occurrences are derived from this or an
1925 # equivalent image via:
1926 # FROM &lt;Basis.resource_url&gt;
1927 # Or an equivalent reference, e.g. a tag of the resource_url.
1928 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1929 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1930 &quot;A String&quot;,
1931 ],
1932 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1933 # representation.
1934 # This field can be used as a filter in list requests.
1935 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1936 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1937 # Only the name of the final blob is kept.
1938 # This field can be used as a filter in list requests.
1939 },
1940 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of
1941 # associated occurrence images.
1942 },
1943 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This
1944 # field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001945 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of # Build provenance type for a verifiable build.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001946 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001947 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001948 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001949 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001950 # findings are valid and unchanged. If `key_type` is empty, this defaults
1951 # to PEM encoded public keys.
1952 #
1953 # This field may be empty if `key_id` references an external key.
1954 #
1955 # For Cloud Build based signatures, this is a PEM encoded public
1956 # key. To verify the Cloud Build signature, place the contents of
1957 # this field into a file (public.pem). The signature field is base64-decoded
1958 # into its binary representation in signature.bin, and the provenance bytes
1959 # from `BuildDetails` are base64-decoded into a binary representation in
1960 # signed.bin. OpenSSL can then verify the signature:
1961 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001962 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1963 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1964 # CN for a cert), or a reference to an external key (such as a reference to a
1965 # key in Cloud Key Management Service).
1966 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1967 # `key_id`
1968 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
Bu Sun Kim65020912020-05-20 12:08:20 -07001969 },
1970 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1971 },
1972 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001973 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1974 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1975 &quot;A String&quot;,
1976 ],
1977 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001978 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1979 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For # A note describing an attestation role.
1980 # example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and
1981 # one for &quot;build&quot;. This Note is intended to act strictly as a grouping
1982 # mechanism for the attached Occurrences (Attestations). This grouping
1983 # mechanism also provides a security boundary, since IAM ACLs gate the ability
1984 # for a principle to attach an Occurrence to a given Note. It also provides a
1985 # single point of lookup to find all attached Attestation Occurrences, even if
1986 # they don&#x27;t all live in the same project.
1987 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the
1988 # AttestationAuthority. Because the name of a Note acts as its resource
1989 # reference, it is important to disambiguate the canonical name of the Note
1990 # (which might be a UUID for security purposes) from &quot;readable&quot; names more
1991 # suitable for debug output. Note that these hints should NOT be used to
1992 # look up AttestationAuthorities in security sensitive contexts, such as when
1993 # looking up Attestations to verify.
1994 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001995 },
1996 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001997 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form
1998 # &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
1999 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
Bu Sun Kim65020912020-05-20 12:08:20 -07002000 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
2001 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002002 # vulnerability. One entry per (version range and cpe_uri) the
2003 # package vulnerability has manifested in.
2004 { # Identifies all occurrences of this vulnerability in the package for a
2005 # specific distro/location
2006 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07002007 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Bu Sun Kim65020912020-05-20 12:08:20 -07002008 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002009 # filter in list requests.
2010 # For a discussion of this in Debian/Ubuntu:
2011 # http://serverfault.com/questions/604541/debian-packages-version-convention
2012 # For a discussion of this in Redhat/Fedora/Centos:
2013 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2015 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002016 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07002017 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2018 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002019 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002020 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
2021 # format. Examples include distro or storage location for vulnerable jar.
2022 # This field can be used as a filter in list requests.
2023 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07002024 },
2025 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
2026 # node.js packages etc)
2027 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
2028 # which the vulnerability manifests. Examples include distro or storage
2029 # location for vulnerable jar.
2030 # This field can be used as a filter in list requests.
2031 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2032 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
2033 # For a discussion of this in Debian/Ubuntu:
2034 # http://serverfault.com/questions/604541/debian-packages-version-convention
2035 # For a discussion of this in Redhat/Fedora/Centos:
2036 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2037 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2038 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2039 # If kind is not NORMAL, then the other fields are ignored.
2040 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2041 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2042 },
2043 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2044 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
2045 # This field can be used as a filter in list requests.
2046 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
2047 # For a discussion of this in Debian/Ubuntu:
2048 # http://serverfault.com/questions/604541/debian-packages-version-convention
2049 # For a discussion of this in Redhat/Fedora/Centos:
2050 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2051 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2052 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2053 # If kind is not NORMAL, then the other fields are ignored.
2054 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2055 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002056 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002057 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
2058 # obsolete details.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002059 },
2060 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002061 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002062 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002063 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade.
2064 # version. For each package version combination (i.e. bash 4.0, bash 4.1,
2065 # bash 4.1.2), there will be a Upgrade Note.
Bu Sun Kim65020912020-05-20 12:08:20 -07002066 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
2067 # For a discussion of this in Debian/Ubuntu:
2068 # http://serverfault.com/questions/604541/debian-packages-version-convention
2069 # For a discussion of this in Redhat/Fedora/Centos:
2070 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2071 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2072 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2073 # If kind is not NORMAL, then the other fields are ignored.
2074 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2075 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2076 },
2077 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
2078 { # The Upgrade Distribution represents metadata about the Upgrade for each
2079 # operating system (CPE). Some distributions have additional metadata around
2080 # updates, classifying them into various categories and severities.
Bu Sun Kim65020912020-05-20 12:08:20 -07002081 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
2082 # upstream operating system upgrade feed.
2083 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2084 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
2085 # https://cpe.mitre.org/specification/.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002086 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2087 &quot;A String&quot;,
2088 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002089 },
2090 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002091 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Bu Sun Kim65020912020-05-20 12:08:20 -07002092 },
2093 &quot;package&quot;: { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002094 # various channels.
2095 # e.g. glibc (aka libc6) is distributed by many, at various versions.
Bu Sun Kim65020912020-05-20 12:08:20 -07002096 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
2097 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002098 { # This represents a particular channel of distribution for a given package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002099 # e.g. Debian&#x27;s jessie-backports dpkg mirror
Bu Sun Kim65020912020-05-20 12:08:20 -07002100 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. # The latest available version of this package in
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002101 # this distribution channel.
2102 # For a discussion of this in Debian/Ubuntu:
2103 # http://serverfault.com/questions/604541/debian-packages-version-convention
2104 # For a discussion of this in Redhat/Fedora/Centos:
2105 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07002106 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2107 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002108 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07002109 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2110 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002111 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002112 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2113 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
2114 # denoting the package manager version distributing a package.
2115 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2116 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
2117 # channel were built
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002118 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002119 },
2120 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002121 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002122 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002123 # filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002124 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
2125 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2126 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002127 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07002128 # note for a resource indicates that analysis hasn&#x27;t started.
2129 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002130 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002131 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2132 # a filter in list requests.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002133 }</pre>
2134</div>
2135
2136<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07002137 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002138 <pre>Gets a summary of the number and severity of occurrences.
2139
2140Args:
2141 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07002142 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002143 x__xgafv: string, V1 error format.
2144 Allowed values
2145 1 - v1 error format
2146 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002147
2148Returns:
2149 An object of the form:
2150
2151 { # A summary of how many vulnz occurrences there are per severity type.
2152 # counts by groups, or if we should have different summary messages
2153 # like this.
Bu Sun Kim65020912020-05-20 12:08:20 -07002154 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002155 { # The number of occurrences created for a specific severity.
Bu Sun Kim65020912020-05-20 12:08:20 -07002156 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
2157 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002158 },
2159 ],
2160 }</pre>
2161</div>
2162
2163<div class="method">
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002164 <code class="details" id="list">list(parent, pageToken=None, kind=None, pageSize=None, name=None, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002165 <pre>Lists active `Occurrences` for a given project matching the filters.
2166
2167Args:
2168 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002169 pageToken: string, Token to provide to skip to a particular spot in the list.
2170 kind: string, The kind of occurrences to filter on.
2171 pageSize: integer, Number of occurrences to return in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002172 name: string, The name field contains the project Id. For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07002173&quot;projects/{project_id}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002174@Deprecated
Bu Sun Kim65020912020-05-20 12:08:20 -07002175 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002176 x__xgafv: string, V1 error format.
2177 Allowed values
2178 1 - v1 error format
2179 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002180
2181Returns:
2182 An object of the form:
2183
2184 { # Response including listed active occurrences.
Bu Sun Kim65020912020-05-20 12:08:20 -07002185 &quot;occurrences&quot;: [ # The occurrences requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002186 { # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002188 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
2189 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002190 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2191 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
2192 # build providers can enter any desired additional details.
2193 &quot;a_key&quot;: &quot;A String&quot;,
2194 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002195 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2196 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002197 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07002198 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2199 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
2200 # Repository.
2201 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2202 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2203 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2204 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2205 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2206 },
2207 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
2208 # Storage.
2209 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002210 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002211 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2212 # Requirements]
2213 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2214 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 },
2216 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
2217 # source integrity was maintained in the build.
2218 #
2219 # The keys to this map are file paths used as build source and the values
2220 # contain the hash values for those files.
2221 #
2222 # If the build source came in a single package such as a gzipped tarfile
2223 # (.tar.gz), the FileHash will be for the single path to that file.
2224 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
2225 # messages to verify integrity of source input to the build.
2226 &quot;fileHash&quot;: [ # Collection of file hashes.
2227 { # Container message for hash values.
2228 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2229 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2230 },
2231 ],
2232 },
2233 },
2234 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
2235 # location.
2236 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002237 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002238 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2239 # Requirements]
2240 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2241 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002242 },
2243 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
2244 # these locations, in the case where the source repository had multiple
2245 # remotes or submodules. This list will not include the context specified in
2246 # the context field.
2247 { # A SourceContext is a reference to a tree of files. A SourceContext together
2248 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002249 &quot;labels&quot;: { # Labels with user defined metadata.
2250 &quot;a_key&quot;: &quot;A String&quot;,
2251 },
2252 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
2253 # repository (e.g., GitHub).
2254 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2255 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2256 },
2257 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2258 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2259 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2260 # the hostURI/project.
2261 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2262 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2263 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2264 },
2265 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2266 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2267 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002268 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
2269 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07002270 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2271 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2272 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
2273 # winged-cargo-31) and a repo name within that project.
2274 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2275 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2276 },
2277 },
2278 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2279 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2280 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2281 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002282 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002283 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002284 },
2285 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002286 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
2287 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002288 &quot;labels&quot;: { # Labels with user defined metadata.
2289 &quot;a_key&quot;: &quot;A String&quot;,
2290 },
2291 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
2292 # repository (e.g., GitHub).
2293 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2294 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2295 },
2296 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2297 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2298 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2299 # the hostURI/project.
2300 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2301 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2302 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2303 },
2304 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2305 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2306 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002307 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
2308 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07002309 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2310 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2311 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
2312 # winged-cargo-31) and a repo name within that project.
2313 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2314 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2315 },
2316 },
2317 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2318 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2319 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2320 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002321 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002322 },
2323 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002324 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002325 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2326 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2327 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
2328 # user&#x27;s e-mail address at the time the build was initiated; this address may
2329 # not represent the same end-user for all time.
2330 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2331 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2332 &quot;commands&quot;: [ # Commands requested by the build.
2333 { # Command describes a step performed as part of the build pipeline.
2334 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
2335 # packaged as a Docker container, as presented to `docker pull`.
2336 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
2337 # this Command as a dependency.
2338 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
2339 # this Command.
2340 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2341 &quot;A String&quot;,
2342 ],
2343 &quot;env&quot;: [ # Environment variables set before running this Command.
2344 &quot;A String&quot;,
2345 ],
2346 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2347 &quot;A String&quot;,
2348 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002349 },
2350 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002351 &quot;builtArtifacts&quot;: [ # Output of the build.
2352 { # Artifact describes a build product.
2353 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
2354 # like gcr.io/projectID/imagename@sha256:123456
2355 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
2356 # the case of a container build, the name used to push the container image to
2357 # Google Container Registry, as presented to `docker push`. Note that a
2358 # single Artifact ID can have multiple names, for example if two tags are
2359 # applied to one image.
2360 &quot;A String&quot;,
2361 ],
2362 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
2363 # the case of a container build, the name used to push the container image to
2364 # Google Container Registry, as presented to `docker push`.
2365 #
2366 # This field is deprecated in favor of the plural `names` field; it continues
2367 # to exist here to allow existing BuildProvenance serialized to json in
2368 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
2369 # deserialize back into proto.
2370 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
2371 # container.
2372 },
2373 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002374 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002375 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
2376 # `BuildSignature` in the corresponding Result. After verifying the
2377 # signature, `provenance_bytes` can be unmarshalled and compared to the
2378 # provenance to confirm that it is unchanged. A base64-encoded string
2379 # representation of the provenance bytes is used for the signature in order
2380 # to interoperate with openssl which expects this format for signature
2381 # verification.
2382 #
2383 # The serialized form is captured both to avoid ambiguity in how the
2384 # provenance is marshalled to json as well to prevent incompatibilities with
2385 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002386 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002387 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
2388 # specified. This field can be used as a filter in list requests.
2389 &quot;resource&quot;: { # #
2390 # The resource for which the `Occurrence` applies.
2391 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002392 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
2393 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -07002394 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2395 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2396 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2397 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2398 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002399 },
2400 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
2401 # applies. For example, https://gcr.io/project/image@sha256:foo This field
2402 # can be used as a filter in list requests.
2403 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
2404 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2405 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002406 # Attestation can be verified using the attached signature. If the verifier
2407 # trusts the public key of the signer, then verifying the signature is
2408 # sufficient to establish trust. In this circumstance, the
2409 # AttestationAuthority to which this Attestation is attached is primarily
2410 # useful for look-up (how to find this Attestation if you already know the
2411 # Authority and artifact to be verified) and intent (which authority was this
2412 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07002413 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002414 # This message only supports `ATTACHED` signatures, where the payload that is
2415 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002416 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
2417 # equivalent. Since this message only supports attached signatures, the
2418 # payload that was signed must be attached. While the signature format
2419 # supported is dependent on the verification implementation, currently only
2420 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
2421 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
2422 # --output=signature.gpg payload.json` will create the signature content
2423 # expected in this field in `signature.gpg` for the `payload.json`
2424 # attestation payload.
2425 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002426 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
2427 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
2428 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002429 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002430 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
2431 # In gpg, the full fingerprint can be retrieved from the `fpr` field
2432 # returned when calling --list-keys with --with-colons. For example:
2433 # ```
2434 # gpg --with-colons --with-fingerprint --force-v4-certs \
2435 # --list-keys attester@example.com
2436 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07002437 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002438 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
2439 # ```
2440 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002441 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002442 # The verifier must ensure that the provided type is one that the verifier
2443 # supports, and that the attestation payload is a valid instantiation of that
2444 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002445 },
2446 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002447 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
2448 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002449 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002450 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
2451 # have been found.
2452 { # An occurrence of a particular package installation found within a
2453 # system&#x27;s filesystem.
2454 # e.g. glibc was found in /var/lib/dpkg/status
2455 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
2456 # denoting the package manager version distributing a package.
2457 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
2458 # For a discussion of this in Debian/Ubuntu:
2459 # http://serverfault.com/questions/604541/debian-packages-version-convention
2460 # For a discussion of this in Redhat/Fedora/Centos:
2461 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2462 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2463 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2464 # If kind is not NORMAL, then the other fields are ignored.
2465 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2466 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2467 },
2468 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002469 },
2470 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002471 },
2472 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
2473 # specific upgrade. This presence is supplied via local sources (i.e. it is
2474 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -07002475 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2476 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
2477 # For a discussion of this in Debian/Ubuntu:
2478 # http://serverfault.com/questions/604541/debian-packages-version-convention
2479 # For a discussion of this in Redhat/Fedora/Centos:
2480 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2481 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2482 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2483 # If kind is not NORMAL, then the other fields are ignored.
2484 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2485 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002486 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002487 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
2488 # for the resource_url. This allows efficient filtering, as well as
2489 # making it easier to use the occurrence.
2490 # operating system (CPE). Some distributions have additional metadata around
2491 # updates, classifying them into various categories and severities.
2492 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
2493 # upstream operating system upgrade feed.
2494 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2495 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
2496 # https://cpe.mitre.org/specification/.
2497 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2498 &quot;A String&quot;,
2499 ],
2500 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002501 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002502 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2503 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
2504 # This field is deprecated, do not use.
2505 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07002506 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
2507 # method returns no data on success, such as `Delete`, the response is
2508 # `google.protobuf.Empty`. If the original method is standard
2509 # `Get`/`Create`/`Update`, the response should be the resource. For other
2510 # methods, the response should have the type `XxxResponse`, where `Xxx`
2511 # is the original method name. For example, if the original method name
2512 # is `TakeSnapshot()`, the inferred response type is
2513 # `TakeSnapshotResponse`.
2514 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2515 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002516 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
2517 # originally returns it. If you use the default HTTP mapping, the
2518 # `name` should be a resource name ending with `operations/{unique_id}`.
2519 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
2520 # different programming environments, including REST APIs and RPC APIs. It is
2521 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2522 # three pieces of data: error code, error message, and error details.
2523 #
2524 # You can find out more about this error model and how to work with it in the
2525 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2526 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2527 # message types for APIs to use.
2528 {
2529 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2530 },
2531 ],
2532 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2533 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2534 # user-facing error message should be localized and sent in the
2535 # google.rpc.Status.details field, or localized by the client.
2536 },
2537 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
2538 # contains progress information and common metadata such as create time.
2539 # Some services might not provide such metadata. Any method that returns a
2540 # long-running operation should document the metadata type, if any.
2541 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2542 },
2543 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2544 # If `true`, the operation is completed, and either `error` or `response` is
2545 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07002546 },
2547 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2548 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2549 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2550 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
2551 # details to show to the user. The LocalizedMessage output only and
2552 # populated by the API.
2553 # different programming environments, including REST APIs and RPC APIs. It is
2554 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2555 # three pieces of data: error code, error message, and error details.
2556 #
2557 # You can find out more about this error model and how to work with it in the
2558 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07002559 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2560 # message types for APIs to use.
2561 {
2562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2563 },
2564 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002565 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2566 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2567 # user-facing error message should be localized and sent in the
2568 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07002569 },
2570 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002571 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
2572 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
2573 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002574 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002575 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07002576 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2577 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
2578 # deployable field with the same name.
2579 &quot;A String&quot;,
2580 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002581 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002582 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07002583 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2584 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07002585 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002586 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07002587 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
2588 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -07002589 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
2590 # available and note provider assigned severity when distro has not yet
2591 # assigned a severity for this vulnerability.
2592 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
2593 # the associated resource.
2594 { # This message wraps a location affected by a vulnerability and its
2595 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002596 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07002597 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002598 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
2599 # filter in list requests.
2600 # For a discussion of this in Debian/Ubuntu:
2601 # http://serverfault.com/questions/604541/debian-packages-version-convention
2602 # For a discussion of this in Redhat/Fedora/Centos:
2603 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2604 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2605 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2606 # If kind is not NORMAL, then the other fields are ignored.
2607 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2608 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2609 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002610 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
2611 # format. Examples include distro or storage location for vulnerable jar.
2612 # This field can be used as a filter in list requests.
2613 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07002614 },
2615 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07002616 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
2617 # filter in list requests.
2618 # For a discussion of this in Debian/Ubuntu:
2619 # http://serverfault.com/questions/604541/debian-packages-version-convention
2620 # For a discussion of this in Redhat/Fedora/Centos:
2621 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2622 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2623 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2624 # If kind is not NORMAL, then the other fields are ignored.
2625 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2626 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2627 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002628 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
2629 # format. Examples include distro or storage location for vulnerable jar.
2630 # This field can be used as a filter in list requests.
2631 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07002632 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002633 },
2634 ],
2635 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002636 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
2637 # scale of 0-10 where 0 indicates low severity and 10 indicates high
2638 # severity.
2639 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
2640 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -07002641 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002642 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2643 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2644 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
2645 # in the associated note.
2646 # DockerImage relationship. This image would be produced from a Dockerfile
2647 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
2648 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
2649 # associated image basis.
2650 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
2651 # occurrence.
2652 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2653 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2654 &quot;A String&quot;,
2655 ],
2656 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
2657 # representation.
2658 # This field can be used as a filter in list requests.
2659 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2660 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2661 # Only the name of the final blob is kept.
2662 # This field can be used as a filter in list requests.
2663 },
2664 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
2665 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
2666 # following the base image and [1] being the final layer.
2667 { # Layer holds metadata specific to a layer of a Docker image.
2668 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
2669 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2670 },
2671 ],
2672 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002673 },
2674 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002675 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as
2676 # `page_token` for the following request. An empty value means no more
2677 # results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002678 }</pre>
2679</div>
2680
2681<div class="method">
2682 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2683 <pre>Retrieves the next page of results.
2684
2685Args:
2686 previous_request: The request for the previous page. (required)
2687 previous_response: The response from the request for the previous page. (required)
2688
2689Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002690 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002691 page. Returns None if there are no more items in the collection.
2692 </pre>
2693</div>
2694
2695<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002696 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002697 <pre>Updates an existing occurrence.
2698
2699Args:
2700 name: string, The name of the occurrence.
Bu Sun Kim65020912020-05-20 12:08:20 -07002701Should be of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002702 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002703 The object takes the form of:
2704
2705{ # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -07002706 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002707 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
2708 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002709 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2710 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
2711 # build providers can enter any desired additional details.
2712 &quot;a_key&quot;: &quot;A String&quot;,
2713 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002714 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2715 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002716 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07002717 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2718 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
2719 # Repository.
2720 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2721 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2722 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2723 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2724 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2725 },
2726 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
2727 # Storage.
2728 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002729 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002730 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2731 # Requirements]
2732 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2733 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002734 },
2735 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
2736 # source integrity was maintained in the build.
2737 #
2738 # The keys to this map are file paths used as build source and the values
2739 # contain the hash values for those files.
2740 #
2741 # If the build source came in a single package such as a gzipped tarfile
2742 # (.tar.gz), the FileHash will be for the single path to that file.
2743 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
2744 # messages to verify integrity of source input to the build.
2745 &quot;fileHash&quot;: [ # Collection of file hashes.
2746 { # Container message for hash values.
2747 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2748 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2749 },
2750 ],
2751 },
2752 },
2753 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
2754 # location.
2755 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002756 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07002757 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2758 # Requirements]
2759 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2760 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07002761 },
2762 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
2763 # these locations, in the case where the source repository had multiple
2764 # remotes or submodules. This list will not include the context specified in
2765 # the context field.
2766 { # A SourceContext is a reference to a tree of files. A SourceContext together
2767 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002768 &quot;labels&quot;: { # Labels with user defined metadata.
2769 &quot;a_key&quot;: &quot;A String&quot;,
2770 },
2771 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
2772 # repository (e.g., GitHub).
2773 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2774 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2775 },
2776 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2777 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2778 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2779 # the hostURI/project.
2780 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2781 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2782 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2783 },
2784 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2785 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2786 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002787 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
2788 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07002789 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2790 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2791 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
2792 # winged-cargo-31) and a repo name within that project.
2793 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2794 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2795 },
2796 },
2797 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2798 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2799 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2800 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002801 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002802 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002803 },
2804 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002805 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
2806 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002807 &quot;labels&quot;: { # Labels with user defined metadata.
2808 &quot;a_key&quot;: &quot;A String&quot;,
2809 },
2810 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
2811 # repository (e.g., GitHub).
2812 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2813 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2814 },
2815 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2816 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2817 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2818 # the hostURI/project.
2819 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2820 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2821 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2822 },
2823 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2824 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2825 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002826 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
2827 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07002828 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2829 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2830 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
2831 # winged-cargo-31) and a repo name within that project.
2832 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2833 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2834 },
2835 },
2836 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2837 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2838 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2839 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002840 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07002841 },
2842 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002843 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002844 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2845 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2846 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
2847 # user&#x27;s e-mail address at the time the build was initiated; this address may
2848 # not represent the same end-user for all time.
2849 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2850 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2851 &quot;commands&quot;: [ # Commands requested by the build.
2852 { # Command describes a step performed as part of the build pipeline.
2853 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
2854 # packaged as a Docker container, as presented to `docker pull`.
2855 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
2856 # this Command as a dependency.
2857 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
2858 # this Command.
2859 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2860 &quot;A String&quot;,
2861 ],
2862 &quot;env&quot;: [ # Environment variables set before running this Command.
2863 &quot;A String&quot;,
2864 ],
2865 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2866 &quot;A String&quot;,
2867 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002868 },
2869 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002870 &quot;builtArtifacts&quot;: [ # Output of the build.
2871 { # Artifact describes a build product.
2872 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
2873 # like gcr.io/projectID/imagename@sha256:123456
2874 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
2875 # the case of a container build, the name used to push the container image to
2876 # Google Container Registry, as presented to `docker push`. Note that a
2877 # single Artifact ID can have multiple names, for example if two tags are
2878 # applied to one image.
2879 &quot;A String&quot;,
2880 ],
2881 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
2882 # the case of a container build, the name used to push the container image to
2883 # Google Container Registry, as presented to `docker push`.
2884 #
2885 # This field is deprecated in favor of the plural `names` field; it continues
2886 # to exist here to allow existing BuildProvenance serialized to json in
2887 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
2888 # deserialize back into proto.
2889 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
2890 # container.
2891 },
2892 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002893 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002894 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
2895 # `BuildSignature` in the corresponding Result. After verifying the
2896 # signature, `provenance_bytes` can be unmarshalled and compared to the
2897 # provenance to confirm that it is unchanged. A base64-encoded string
2898 # representation of the provenance bytes is used for the signature in order
2899 # to interoperate with openssl which expects this format for signature
2900 # verification.
2901 #
2902 # The serialized form is captured both to avoid ambiguity in how the
2903 # provenance is marshalled to json as well to prevent incompatibilities with
2904 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002905 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002906 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
2907 # specified. This field can be used as a filter in list requests.
2908 &quot;resource&quot;: { # #
2909 # The resource for which the `Occurrence` applies.
2910 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002911 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
2912 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -07002913 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2914 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2915 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2916 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2917 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002918 },
2919 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
2920 # applies. For example, https://gcr.io/project/image@sha256:foo This field
2921 # can be used as a filter in list requests.
2922 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
2923 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2924 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002925 # Attestation can be verified using the attached signature. If the verifier
2926 # trusts the public key of the signer, then verifying the signature is
2927 # sufficient to establish trust. In this circumstance, the
2928 # AttestationAuthority to which this Attestation is attached is primarily
2929 # useful for look-up (how to find this Attestation if you already know the
2930 # Authority and artifact to be verified) and intent (which authority was this
2931 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07002932 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002933 # This message only supports `ATTACHED` signatures, where the payload that is
2934 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002935 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
2936 # equivalent. Since this message only supports attached signatures, the
2937 # payload that was signed must be attached. While the signature format
2938 # supported is dependent on the verification implementation, currently only
2939 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
2940 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
2941 # --output=signature.gpg payload.json` will create the signature content
2942 # expected in this field in `signature.gpg` for the `payload.json`
2943 # attestation payload.
2944 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002945 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
2946 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
2947 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002948 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002949 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
2950 # In gpg, the full fingerprint can be retrieved from the `fpr` field
2951 # returned when calling --list-keys with --with-colons. For example:
2952 # ```
2953 # gpg --with-colons --with-fingerprint --force-v4-certs \
2954 # --list-keys attester@example.com
2955 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07002956 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002957 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
2958 # ```
2959 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002960 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002961 # The verifier must ensure that the provided type is one that the verifier
2962 # supports, and that the attestation payload is a valid instantiation of that
2963 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002964 },
2965 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002966 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
2967 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002968 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -07002969 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
2970 # have been found.
2971 { # An occurrence of a particular package installation found within a
2972 # system&#x27;s filesystem.
2973 # e.g. glibc was found in /var/lib/dpkg/status
2974 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
2975 # denoting the package manager version distributing a package.
2976 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
2977 # For a discussion of this in Debian/Ubuntu:
2978 # http://serverfault.com/questions/604541/debian-packages-version-convention
2979 # For a discussion of this in Redhat/Fedora/Centos:
2980 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2981 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2982 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2983 # If kind is not NORMAL, then the other fields are ignored.
2984 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2985 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2986 },
2987 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002988 },
2989 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002990 },
2991 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
2992 # specific upgrade. This presence is supplied via local sources (i.e. it is
2993 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -07002994 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2995 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
2996 # For a discussion of this in Debian/Ubuntu:
2997 # http://serverfault.com/questions/604541/debian-packages-version-convention
2998 # For a discussion of this in Redhat/Fedora/Centos:
2999 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3000 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3001 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3002 # If kind is not NORMAL, then the other fields are ignored.
3003 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3004 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003005 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003006 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
3007 # for the resource_url. This allows efficient filtering, as well as
3008 # making it easier to use the occurrence.
3009 # operating system (CPE). Some distributions have additional metadata around
3010 # updates, classifying them into various categories and severities.
3011 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
3012 # upstream operating system upgrade feed.
3013 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3014 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
3015 # https://cpe.mitre.org/specification/.
3016 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3017 &quot;A String&quot;,
3018 ],
3019 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003020 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003021 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3022 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
3023 # This field is deprecated, do not use.
3024 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07003025 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
3026 # method returns no data on success, such as `Delete`, the response is
3027 # `google.protobuf.Empty`. If the original method is standard
3028 # `Get`/`Create`/`Update`, the response should be the resource. For other
3029 # methods, the response should have the type `XxxResponse`, where `Xxx`
3030 # is the original method name. For example, if the original method name
3031 # is `TakeSnapshot()`, the inferred response type is
3032 # `TakeSnapshotResponse`.
3033 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3034 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003035 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
3036 # originally returns it. If you use the default HTTP mapping, the
3037 # `name` should be a resource name ending with `operations/{unique_id}`.
3038 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
3039 # different programming environments, including REST APIs and RPC APIs. It is
3040 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3041 # three pieces of data: error code, error message, and error details.
3042 #
3043 # You can find out more about this error model and how to work with it in the
3044 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3045 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3046 # message types for APIs to use.
3047 {
3048 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3049 },
3050 ],
3051 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3052 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3053 # user-facing error message should be localized and sent in the
3054 # google.rpc.Status.details field, or localized by the client.
3055 },
3056 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3057 # contains progress information and common metadata such as create time.
3058 # Some services might not provide such metadata. Any method that returns a
3059 # long-running operation should document the metadata type, if any.
3060 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3061 },
3062 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
3063 # If `true`, the operation is completed, and either `error` or `response` is
3064 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003065 },
3066 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3067 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3068 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3069 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
3070 # details to show to the user. The LocalizedMessage output only and
3071 # populated by the API.
3072 # different programming environments, including REST APIs and RPC APIs. It is
3073 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3074 # three pieces of data: error code, error message, and error details.
3075 #
3076 # You can find out more about this error model and how to work with it in the
3077 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07003078 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3079 # message types for APIs to use.
3080 {
3081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3082 },
3083 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003084 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3085 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3086 # user-facing error message should be localized and sent in the
3087 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07003088 },
3089 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003090 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
3091 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
3092 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003093 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003094 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003095 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3096 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
3097 # deployable field with the same name.
3098 &quot;A String&quot;,
3099 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003100 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003101 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003102 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3103 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003104 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003105 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07003106 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
3107 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -07003108 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
3109 # available and note provider assigned severity when distro has not yet
3110 # assigned a severity for this vulnerability.
3111 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
3112 # the associated resource.
3113 { # This message wraps a location affected by a vulnerability and its
3114 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003115 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07003116 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07003117 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
3118 # filter in list requests.
3119 # For a discussion of this in Debian/Ubuntu:
3120 # http://serverfault.com/questions/604541/debian-packages-version-convention
3121 # For a discussion of this in Redhat/Fedora/Centos:
3122 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3123 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3124 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3125 # If kind is not NORMAL, then the other fields are ignored.
3126 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3127 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3128 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003129 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3130 # format. Examples include distro or storage location for vulnerable jar.
3131 # This field can be used as a filter in list requests.
3132 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07003133 },
3134 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07003135 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
3136 # filter in list requests.
3137 # For a discussion of this in Debian/Ubuntu:
3138 # http://serverfault.com/questions/604541/debian-packages-version-convention
3139 # For a discussion of this in Redhat/Fedora/Centos:
3140 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3141 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3142 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3143 # If kind is not NORMAL, then the other fields are ignored.
3144 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3145 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3146 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003147 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3148 # format. Examples include distro or storage location for vulnerable jar.
3149 # This field can be used as a filter in list requests.
3150 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07003151 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003152 },
3153 ],
3154 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003155 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
3156 # scale of 0-10 where 0 indicates low severity and 10 indicates high
3157 # severity.
3158 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
3159 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -07003160 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003161 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3162 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3163 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
3164 # in the associated note.
3165 # DockerImage relationship. This image would be produced from a Dockerfile
3166 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
3167 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
3168 # associated image basis.
3169 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
3170 # occurrence.
3171 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
3172 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
3173 &quot;A String&quot;,
3174 ],
3175 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
3176 # representation.
3177 # This field can be used as a filter in list requests.
3178 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
3179 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
3180 # Only the name of the final blob is kept.
3181 # This field can be used as a filter in list requests.
3182 },
3183 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
3184 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
3185 # following the base image and [1] being the final layer.
3186 { # Layer holds metadata specific to a layer of a Docker image.
3187 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
3188 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3189 },
3190 ],
3191 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003192}
3193
3194 updateMask: string, The fields to update.
3195 x__xgafv: string, V1 error format.
3196 Allowed values
3197 1 - v1 error format
3198 2 - v2 error format
3199
3200Returns:
3201 An object of the form:
3202
3203 { # `Occurrence` includes information about analysis occurrences for an image.
Bu Sun Kim65020912020-05-20 12:08:20 -07003204 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Bu Sun Kim65020912020-05-20 12:08:20 -07003205 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
3206 # details about the build from source to completion.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003207 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
3208 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
3209 # build providers can enter any desired additional details.
3210 &quot;a_key&quot;: &quot;A String&quot;,
3211 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003212 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3213 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003214 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07003215 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3216 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source # If provided, get source from this location in a Cloud Repo.
3217 # Repository.
3218 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
3219 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
3220 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
3221 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
3222 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3223 },
3224 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, get the source from this location in in Google Cloud
3225 # Storage.
3226 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003227 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07003228 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
3229 # Requirements]
3230 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3231 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07003232 },
3233 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
3234 # source integrity was maintained in the build.
3235 #
3236 # The keys to this map are file paths used as build source and the values
3237 # contain the hash values for those files.
3238 #
3239 # If the build source came in a single package such as a gzipped tarfile
3240 # (.tar.gz), the FileHash will be for the single path to that file.
3241 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
3242 # messages to verify integrity of source input to the build.
3243 &quot;fileHash&quot;: [ # Collection of file hashes.
3244 { # Container message for hash values.
3245 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3246 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3247 },
3248 ],
3249 },
3250 },
3251 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in # If provided, the input binary artifacts for the build came from this
3252 # location.
3253 # Google Cloud Storage.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003254 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Bu Sun Kim65020912020-05-20 12:08:20 -07003255 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
3256 # Requirements]
3257 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3258 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
Bu Sun Kim65020912020-05-20 12:08:20 -07003259 },
3260 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
3261 # these locations, in the case where the source repository had multiple
3262 # remotes or submodules. This list will not include the context specified in
3263 # the context field.
3264 { # A SourceContext is a reference to a tree of files. A SourceContext together
3265 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003266 &quot;labels&quot;: { # Labels with user defined metadata.
3267 &quot;a_key&quot;: &quot;A String&quot;,
3268 },
3269 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
3270 # repository (e.g., GitHub).
3271 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3272 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3273 },
3274 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3275 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
3276 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
3277 # the hostURI/project.
3278 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3279 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3280 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3281 },
3282 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3283 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3284 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003285 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
3286 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07003287 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3288 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3289 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
3290 # winged-cargo-31) and a repo name within that project.
3291 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3292 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3293 },
3294 },
3295 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3296 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3297 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3298 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003299 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07003300 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003301 },
3302 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003303 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together # If provided, the source code used for the build came from this location.
3304 # with a path point to a unique revision of a single file or directory.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003305 &quot;labels&quot;: { # Labels with user defined metadata.
3306 &quot;a_key&quot;: &quot;A String&quot;,
3307 },
3308 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git # A SourceContext referring to any third party Git repo (e.g., GitHub).
3309 # repository (e.g., GitHub).
3310 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3311 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3312 },
3313 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3314 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
3315 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
3316 # the hostURI/project.
3317 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3318 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3319 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3320 },
3321 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3322 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3323 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003324 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud # A SourceContext referring to a revision in a Google Cloud Source Repo.
3325 # Source Repo.
Bu Sun Kim65020912020-05-20 12:08:20 -07003326 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3327 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3328 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., # A combination of a project ID and a repo name.
3329 # winged-cargo-31) and a repo name within that project.
3330 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3331 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3332 },
3333 },
3334 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3335 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3336 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3337 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003338 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kim65020912020-05-20 12:08:20 -07003339 },
3340 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003341 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003342 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3343 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3344 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
3345 # user&#x27;s e-mail address at the time the build was initiated; this address may
3346 # not represent the same end-user for all time.
3347 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
3348 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3349 &quot;commands&quot;: [ # Commands requested by the build.
3350 { # Command describes a step performed as part of the build pipeline.
3351 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
3352 # packaged as a Docker container, as presented to `docker pull`.
3353 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
3354 # this Command as a dependency.
3355 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
3356 # this Command.
3357 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
3358 &quot;A String&quot;,
3359 ],
3360 &quot;env&quot;: [ # Environment variables set before running this Command.
3361 &quot;A String&quot;,
3362 ],
3363 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
3364 &quot;A String&quot;,
3365 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003366 },
3367 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003368 &quot;builtArtifacts&quot;: [ # Output of the build.
3369 { # Artifact describes a build product.
3370 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
3371 # like gcr.io/projectID/imagename@sha256:123456
3372 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
3373 # the case of a container build, the name used to push the container image to
3374 # Google Container Registry, as presented to `docker push`. Note that a
3375 # single Artifact ID can have multiple names, for example if two tags are
3376 # applied to one image.
3377 &quot;A String&quot;,
3378 ],
3379 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
3380 # the case of a container build, the name used to push the container image to
3381 # Google Container Registry, as presented to `docker push`.
3382 #
3383 # This field is deprecated in favor of the plural `names` field; it continues
3384 # to exist here to allow existing BuildProvenance serialized to json in
3385 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
3386 # deserialize back into proto.
3387 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
3388 # container.
3389 },
3390 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003391 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003392 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
3393 # `BuildSignature` in the corresponding Result. After verifying the
3394 # signature, `provenance_bytes` can be unmarshalled and compared to the
3395 # provenance to confirm that it is unchanged. A base64-encoded string
3396 # representation of the provenance bytes is used for the signature in order
3397 # to interoperate with openssl which expects this format for signature
3398 # verification.
3399 #
3400 # The serialized form is captured both to avoid ambiguity in how the
3401 # provenance is marshalled to json as well to prevent incompatibilities with
3402 # future changes.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003403 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003404 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
3405 # specified. This field can be used as a filter in list requests.
3406 &quot;resource&quot;: { # #
3407 # The resource for which the `Occurrence` applies.
3408 # Resource is an entity that can have metadata. E.g., a Docker image.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003409 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
3410 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
Bu Sun Kim65020912020-05-20 12:08:20 -07003411 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3412 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3413 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3414 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3415 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003416 },
3417 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
3418 # applies. For example, https://gcr.io/project/image@sha256:foo This field
3419 # can be used as a filter in list requests.
3420 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
3421 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
3422 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an # Describes an attestation of an artifact.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003423 # Attestation can be verified using the attached signature. If the verifier
3424 # trusts the public key of the signer, then verifying the signature is
3425 # sufficient to establish trust. In this circumstance, the
3426 # AttestationAuthority to which this Attestation is attached is primarily
3427 # useful for look-up (how to find this Attestation if you already know the
3428 # Authority and artifact to be verified) and intent (which authority was this
3429 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07003430 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003431 # This message only supports `ATTACHED` signatures, where the payload that is
3432 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003433 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
3434 # equivalent. Since this message only supports attached signatures, the
3435 # payload that was signed must be attached. While the signature format
3436 # supported is dependent on the verification implementation, currently only
3437 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
3438 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
3439 # --output=signature.gpg payload.json` will create the signature content
3440 # expected in this field in `signature.gpg` for the `payload.json`
3441 # attestation payload.
3442 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003443 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
3444 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
3445 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07003446 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003447 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
3448 # In gpg, the full fingerprint can be retrieved from the `fpr` field
3449 # returned when calling --list-keys with --with-colons. For example:
3450 # ```
3451 # gpg --with-colons --with-fingerprint --force-v4-certs \
3452 # --list-keys attester@example.com
3453 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07003454 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003455 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
3456 # ```
3457 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003458 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003459 # The verifier must ensure that the provided type is one that the verifier
3460 # supports, and that the attestation payload is a valid instantiation of that
3461 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003462 },
3463 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003464 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
3465 # a system.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003466 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
Bu Sun Kim65020912020-05-20 12:08:20 -07003467 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
3468 # have been found.
3469 { # An occurrence of a particular package installation found within a
3470 # system&#x27;s filesystem.
3471 # e.g. glibc was found in /var/lib/dpkg/status
3472 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
3473 # denoting the package manager version distributing a package.
3474 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
3475 # For a discussion of this in Debian/Ubuntu:
3476 # http://serverfault.com/questions/604541/debian-packages-version-convention
3477 # For a discussion of this in Redhat/Fedora/Centos:
3478 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3479 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3480 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3481 # If kind is not NORMAL, then the other fields are ignored.
3482 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3483 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3484 },
3485 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003486 },
3487 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003488 },
3489 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
3490 # specific upgrade. This presence is supplied via local sources (i.e. it is
3491 # present in the mirror and the running system has noticed its availability).
Bu Sun Kim65020912020-05-20 12:08:20 -07003492 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3493 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in a machine + human readable form.
3494 # For a discussion of this in Debian/Ubuntu:
3495 # http://serverfault.com/questions/604541/debian-packages-version-convention
3496 # For a discussion of this in Redhat/Fedora/Centos:
3497 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3498 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3499 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3500 # If kind is not NORMAL, then the other fields are ignored.
3501 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3502 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003503 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003504 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
3505 # for the resource_url. This allows efficient filtering, as well as
3506 # making it easier to use the occurrence.
3507 # operating system (CPE). Some distributions have additional metadata around
3508 # updates, classifying them into various categories and severities.
3509 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
3510 # upstream operating system upgrade feed.
3511 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3512 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
3513 # https://cpe.mitre.org/specification/.
3514 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3515 &quot;A String&quot;,
3516 ],
3517 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003518 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003519 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3520 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a # Output only. An operation that indicates the status of the current scan.
3521 # This field is deprecated, do not use.
3522 # network API call.
Bu Sun Kim65020912020-05-20 12:08:20 -07003523 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
3524 # method returns no data on success, such as `Delete`, the response is
3525 # `google.protobuf.Empty`. If the original method is standard
3526 # `Get`/`Create`/`Update`, the response should be the resource. For other
3527 # methods, the response should have the type `XxxResponse`, where `Xxx`
3528 # is the original method name. For example, if the original method name
3529 # is `TakeSnapshot()`, the inferred response type is
3530 # `TakeSnapshotResponse`.
3531 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3532 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003533 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
3534 # originally returns it. If you use the default HTTP mapping, the
3535 # `name` should be a resource name ending with `operations/{unique_id}`.
3536 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for # The error result of the operation in case of failure or cancellation.
3537 # different programming environments, including REST APIs and RPC APIs. It is
3538 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3539 # three pieces of data: error code, error message, and error details.
3540 #
3541 # You can find out more about this error model and how to work with it in the
3542 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3543 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3544 # message types for APIs to use.
3545 {
3546 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3547 },
3548 ],
3549 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3550 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3551 # user-facing error message should be localized and sent in the
3552 # google.rpc.Status.details field, or localized by the client.
3553 },
3554 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3555 # contains progress information and common metadata such as create time.
3556 # Some services might not provide such metadata. Any method that returns a
3557 # long-running operation should document the metadata type, if any.
3558 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3559 },
3560 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
3561 # If `true`, the operation is completed, and either `error` or `response` is
3562 # available.
Bu Sun Kim65020912020-05-20 12:08:20 -07003563 },
3564 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3565 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3566 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3567 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for # When an error is encountered this will contain a LocalizedMessage under
3568 # details to show to the user. The LocalizedMessage output only and
3569 # populated by the API.
3570 # different programming environments, including REST APIs and RPC APIs. It is
3571 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3572 # three pieces of data: error code, error message, and error details.
3573 #
3574 # You can find out more about this error model and how to work with it in the
3575 # [API Design Guide](https://cloud.google.com/apis/design/errors).
Bu Sun Kim65020912020-05-20 12:08:20 -07003576 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3577 # message types for APIs to use.
3578 {
3579 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3580 },
3581 ],
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003582 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3583 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3584 # user-facing error message should be localized and sent in the
3585 # google.rpc.Status.details field, or localized by the client.
Bu Sun Kim65020912020-05-20 12:08:20 -07003586 },
3587 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003588 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
3589 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
3590 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07003591 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003592 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003593 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3594 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
3595 # deployable field with the same name.
3596 &quot;A String&quot;,
3597 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003598 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003599 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003600 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3601 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
Bu Sun Kim65020912020-05-20 12:08:20 -07003602 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003603 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Bu Sun Kim65020912020-05-20 12:08:20 -07003604 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
3605 # to fix it.
Bu Sun Kim65020912020-05-20 12:08:20 -07003606 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
3607 # available and note provider assigned severity when distro has not yet
3608 # assigned a severity for this vulnerability.
3609 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
3610 # the associated resource.
3611 { # This message wraps a location affected by a vulnerability and its
3612 # associated fix (if one is available).
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003613 &quot;severityName&quot;: &quot;A String&quot;,
Bu Sun Kim65020912020-05-20 12:08:20 -07003614 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07003615 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
3616 # filter in list requests.
3617 # For a discussion of this in Debian/Ubuntu:
3618 # http://serverfault.com/questions/604541/debian-packages-version-convention
3619 # For a discussion of this in Redhat/Fedora/Centos:
3620 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3621 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3622 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3623 # If kind is not NORMAL, then the other fields are ignored.
3624 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3625 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3626 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003627 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3628 # format. Examples include distro or storage location for vulnerable jar.
3629 # This field can be used as a filter in list requests.
3630 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07003631 },
3632 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
Bu Sun Kim65020912020-05-20 12:08:20 -07003633 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
3634 # filter in list requests.
3635 # For a discussion of this in Debian/Ubuntu:
3636 # http://serverfault.com/questions/604541/debian-packages-version-convention
3637 # For a discussion of this in Redhat/Fedora/Centos:
3638 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3639 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3640 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3641 # If kind is not NORMAL, then the other fields are ignored.
3642 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3643 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3644 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003645 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3646 # format. Examples include distro or storage location for vulnerable jar.
3647 # This field can be used as a filter in list requests.
3648 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Bu Sun Kim65020912020-05-20 12:08:20 -07003649 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003650 },
3651 ],
3652 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003653 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
3654 # scale of 0-10 where 0 indicates low severity and 10 indicates high
3655 # severity.
3656 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
3657 # node.js packages etc)
Bu Sun Kim65020912020-05-20 12:08:20 -07003658 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003659 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3660 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3661 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
3662 # in the associated note.
3663 # DockerImage relationship. This image would be produced from a Dockerfile
3664 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
3665 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
3666 # associated image basis.
3667 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
3668 # occurrence.
3669 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
3670 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
3671 &quot;A String&quot;,
3672 ],
3673 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
3674 # representation.
3675 # This field can be used as a filter in list requests.
3676 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
3677 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
3678 # Only the name of the final blob is kept.
3679 # This field can be used as a filter in list requests.
3680 },
3681 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
3682 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
3683 # following the base image and [1] being the final layer.
3684 { # Layer holds metadata specific to a layer of a Docker image.
3685 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
3686 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
3687 },
3688 ],
3689 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003690 }</pre>
3691</div>
3692
3693<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07003694 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003695 <pre>Sets the access control policy on the specified `Note` or `Occurrence`.
3696Requires `containeranalysis.notes.setIamPolicy` or
3697`containeranalysis.occurrences.setIamPolicy` permission if the resource is
3698a `Note` or an `Occurrence`, respectively.
3699Attempting to call this method without these permissions will result in a `
3700`PERMISSION_DENIED` error.
3701Attempting to call this method on a non-existent resource will result in a
3702`NOT_FOUND` error if the user has `containeranalysis.notes.list` permission
3703on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or
3704a `PERMISSION_DENIED` error otherwise. The resource takes the following
3705formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences
3706and projects/{projectid}/notes/{noteid} for notes
3707
3708Args:
3709 resource: string, REQUIRED: The resource for which the policy is being specified.
3710See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07003711 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003712 The object takes the form of:
3713
3714{ # Request message for `SetIamPolicy` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07003715 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003716 # the policy is limited to a few 10s of KB. An empty policy is a
3717 # valid policy but certain Cloud Platform services (such as Projects)
3718 # might reject them.
Dan O'Mearadd494642020-05-01 07:42:23 -07003719 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003720 #
3721 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003722 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
3723 # `members` to a single `role`. Members can be user accounts, service accounts,
3724 # Google groups, and domains (such as G Suite). A `role` is a named list of
3725 # permissions; each `role` can be an IAM predefined role or a user-created
3726 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003727 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003728 # For some types of Google Cloud resources, a `binding` can also specify a
3729 # `condition`, which is a logical expression that allows access to a resource
3730 # only if the expression evaluates to `true`. A condition can add constraints
3731 # based on attributes of the request, the resource, or both. To learn which
3732 # resources support conditions in their IAM policies, see the
3733 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07003734 #
3735 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003736 #
3737 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003738 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003739 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003740 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3741 # &quot;members&quot;: [
3742 # &quot;user:mike@example.com&quot;,
3743 # &quot;group:admins@example.com&quot;,
3744 # &quot;domain:google.com&quot;,
3745 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003746 # ]
3747 # },
3748 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003749 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
3750 # &quot;members&quot;: [
3751 # &quot;user:eve@example.com&quot;
3752 # ],
3753 # &quot;condition&quot;: {
3754 # &quot;title&quot;: &quot;expirable access&quot;,
3755 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3756 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003757 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003758 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003759 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003760 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3761 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003762 # }
3763 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003764 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003765 #
3766 # bindings:
3767 # - members:
3768 # - user:mike@example.com
3769 # - group:admins@example.com
3770 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07003771 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
3772 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003773 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07003774 # - user:eve@example.com
3775 # role: roles/resourcemanager.organizationViewer
3776 # condition:
3777 # title: expirable access
3778 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07003779 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07003780 # - etag: BwWWja0YfJA=
3781 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003782 #
3783 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07003784 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07003785 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
3786 # prevent simultaneous updates of a policy from overwriting each other.
3787 # It is strongly suggested that systems make use of the `etag` in the
3788 # read-modify-write cycle to perform policy updates in order to avoid race
3789 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
3790 # systems are expected to put that etag in the request to `setIamPolicy` to
3791 # ensure that their change will be applied to the same version of the policy.
3792 #
3793 # **Important:** If you use IAM Conditions, you must include the `etag` field
3794 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3795 # you to overwrite a version `3` policy with a version `1` policy, and all of
3796 # the conditions in the version `3` policy are lost.
3797 &quot;version&quot;: 42, # Specifies the format of the policy.
3798 #
3799 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
3800 # are rejected.
3801 #
3802 # Any operation that affects conditional role bindings must specify version
3803 # `3`. This requirement applies to the following operations:
3804 #
3805 # * Getting a policy that includes a conditional role binding
3806 # * Adding a conditional role binding to a policy
3807 # * Changing a conditional role binding in a policy
3808 # * Removing any role binding, with or without a condition, from a policy
3809 # that includes conditions
3810 #
3811 # **Important:** If you use IAM Conditions, you must include the `etag` field
3812 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
3813 # you to overwrite a version `3` policy with a version `1` policy, and all of
3814 # the conditions in the version `3` policy are lost.
3815 #
3816 # If a policy does not include any conditions, operations on that policy may
3817 # specify any valid version or leave the field unset.
3818 #
3819 # To learn which resources support conditions in their IAM policies, see the
3820 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3821 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07003822 # `condition` that determines how and when the `bindings` are applied. Each
3823 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003824 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003825 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3826 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003827 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3828 #
3829 # If the condition evaluates to `true`, then this binding applies to the
3830 # current request.
3831 #
3832 # If the condition evaluates to `false`, then this binding does not apply to
3833 # the current request. However, a different role binding might grant the same
3834 # role to one or more of the members in this binding.
3835 #
3836 # To learn which resources support conditions in their IAM policies, see the
3837 # [IAM
3838 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3839 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3840 # are documented at https://github.com/google/cel-spec.
3841 #
3842 # Example (Comparison):
3843 #
3844 # title: &quot;Summary size limit&quot;
3845 # description: &quot;Determines if a summary is less than 100 chars&quot;
3846 # expression: &quot;document.summary.size() &lt; 100&quot;
3847 #
3848 # Example (Equality):
3849 #
3850 # title: &quot;Requestor is owner&quot;
3851 # description: &quot;Determines if requestor is the document owner&quot;
3852 # expression: &quot;document.owner == request.auth.claims.email&quot;
3853 #
3854 # Example (Logic):
3855 #
3856 # title: &quot;Public documents&quot;
3857 # description: &quot;Determine whether the document should be publicly visible&quot;
3858 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3859 #
3860 # Example (Data Manipulation):
3861 #
3862 # title: &quot;Notification string&quot;
3863 # description: &quot;Create a notification string with a timestamp.&quot;
3864 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3865 #
3866 # The exact variables and functions that may be referenced within an expression
3867 # are determined by the service that evaluates it. See the service
3868 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07003869 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
3870 # its purpose. This can be used e.g. in UIs which allow to enter the
3871 # expression.
3872 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
3873 # reporting, e.g. a file name and a position in the file.
3874 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
3875 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07003876 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3877 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07003878 },
3879 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003880 # `members` can have the following values:
3881 #
3882 # * `allUsers`: A special identifier that represents anyone who is
3883 # on the internet; with or without a Google account.
3884 #
3885 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3886 # who is authenticated with a Google account or a service account.
3887 #
3888 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07003889 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003890 #
3891 #
3892 # * `serviceAccount:{emailid}`: An email address that represents a service
3893 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3894 #
3895 # * `group:{emailid}`: An email address that represents a Google group.
3896 # For example, `admins@example.com`.
3897 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003898 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3899 # identifier) representing a user that has been recently deleted. For
3900 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3901 # recovered, this value reverts to `user:{emailid}` and the recovered user
3902 # retains the role in the binding.
3903 #
3904 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3905 # unique identifier) representing a service account that has been recently
3906 # deleted. For example,
3907 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3908 # If the service account is undeleted, this value reverts to
3909 # `serviceAccount:{emailid}` and the undeleted service account retains the
3910 # role in the binding.
3911 #
3912 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3913 # identifier) representing a Google group that has been recently
3914 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3915 # the group is recovered, this value reverts to `group:{emailid}` and the
3916 # recovered group retains the role in the binding.
3917 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003918 #
3919 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3920 # users of that domain. For example, `google.com` or `example.com`.
3921 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003922 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003923 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003924 },
3925 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003926 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003927 }
3928
3929 x__xgafv: string, V1 error format.
3930 Allowed values
3931 1 - v1 error format
3932 2 - v2 error format
3933
3934Returns:
3935 An object of the form:
3936
Dan O'Mearadd494642020-05-01 07:42:23 -07003937 { # An Identity and Access Management (IAM) policy, which specifies access
3938 # controls for Google Cloud resources.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003939 #
3940 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003941 # A `Policy` is a collection of `bindings`. A `binding` binds one or more
3942 # `members` to a single `role`. Members can be user accounts, service accounts,
3943 # Google groups, and domains (such as G Suite). A `role` is a named list of
3944 # permissions; each `role` can be an IAM predefined role or a user-created
3945 # custom role.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003946 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003947 # For some types of Google Cloud resources, a `binding` can also specify a
3948 # `condition`, which is a logical expression that allows access to a resource
3949 # only if the expression evaluates to `true`. A condition can add constraints
3950 # based on attributes of the request, the resource, or both. To learn which
3951 # resources support conditions in their IAM policies, see the
3952 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07003953 #
3954 # **JSON example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003955 #
3956 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003957 # &quot;bindings&quot;: [
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003958 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003959 # &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;,
3960 # &quot;members&quot;: [
3961 # &quot;user:mike@example.com&quot;,
3962 # &quot;group:admins@example.com&quot;,
3963 # &quot;domain:google.com&quot;,
3964 # &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot;
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003965 # ]
3966 # },
3967 # {
Bu Sun Kim65020912020-05-20 12:08:20 -07003968 # &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;,
3969 # &quot;members&quot;: [
3970 # &quot;user:eve@example.com&quot;
3971 # ],
3972 # &quot;condition&quot;: {
3973 # &quot;title&quot;: &quot;expirable access&quot;,
3974 # &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;,
3975 # &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;,
Dan O'Mearadd494642020-05-01 07:42:23 -07003976 # }
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003977 # }
Dan O'Mearadd494642020-05-01 07:42:23 -07003978 # ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003979 # &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;,
3980 # &quot;version&quot;: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003981 # }
3982 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003983 # **YAML example:**
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003984 #
3985 # bindings:
3986 # - members:
3987 # - user:mike@example.com
3988 # - group:admins@example.com
3989 # - domain:google.com
Dan O'Mearadd494642020-05-01 07:42:23 -07003990 # - serviceAccount:my-project-id@appspot.gserviceaccount.com
3991 # role: roles/resourcemanager.organizationAdmin
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003992 # - members:
Dan O'Mearadd494642020-05-01 07:42:23 -07003993 # - user:eve@example.com
3994 # role: roles/resourcemanager.organizationViewer
3995 # condition:
3996 # title: expirable access
3997 # description: Does not grant access after Sep 2020
Bu Sun Kim65020912020-05-20 12:08:20 -07003998 # expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)
Dan O'Mearadd494642020-05-01 07:42:23 -07003999 # - etag: BwWWja0YfJA=
4000 # - version: 3
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004001 #
4002 # For a description of IAM and its features, see the
Dan O'Mearadd494642020-05-01 07:42:23 -07004003 # [IAM documentation](https://cloud.google.com/iam/docs/).
Bu Sun Kim65020912020-05-20 12:08:20 -07004004 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help
4005 # prevent simultaneous updates of a policy from overwriting each other.
4006 # It is strongly suggested that systems make use of the `etag` in the
4007 # read-modify-write cycle to perform policy updates in order to avoid race
4008 # conditions: An `etag` is returned in the response to `getIamPolicy`, and
4009 # systems are expected to put that etag in the request to `setIamPolicy` to
4010 # ensure that their change will be applied to the same version of the policy.
4011 #
4012 # **Important:** If you use IAM Conditions, you must include the `etag` field
4013 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
4014 # you to overwrite a version `3` policy with a version `1` policy, and all of
4015 # the conditions in the version `3` policy are lost.
4016 &quot;version&quot;: 42, # Specifies the format of the policy.
4017 #
4018 # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
4019 # are rejected.
4020 #
4021 # Any operation that affects conditional role bindings must specify version
4022 # `3`. This requirement applies to the following operations:
4023 #
4024 # * Getting a policy that includes a conditional role binding
4025 # * Adding a conditional role binding to a policy
4026 # * Changing a conditional role binding in a policy
4027 # * Removing any role binding, with or without a condition, from a policy
4028 # that includes conditions
4029 #
4030 # **Important:** If you use IAM Conditions, you must include the `etag` field
4031 # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
4032 # you to overwrite a version `3` policy with a version `1` policy, and all of
4033 # the conditions in the version `3` policy are lost.
4034 #
4035 # If a policy does not include any conditions, operations on that policy may
4036 # specify any valid version or leave the field unset.
4037 #
4038 # To learn which resources support conditions in their IAM policies, see the
4039 # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4040 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a
Dan O'Mearadd494642020-05-01 07:42:23 -07004041 # `condition` that determines how and when the `bindings` are applied. Each
4042 # of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004043 { # Associates `members` with a `role`.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004044 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
4045 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim65020912020-05-20 12:08:20 -07004046 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
4047 #
4048 # If the condition evaluates to `true`, then this binding applies to the
4049 # current request.
4050 #
4051 # If the condition evaluates to `false`, then this binding does not apply to
4052 # the current request. However, a different role binding might grant the same
4053 # role to one or more of the members in this binding.
4054 #
4055 # To learn which resources support conditions in their IAM policies, see the
4056 # [IAM
4057 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4058 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
4059 # are documented at https://github.com/google/cel-spec.
4060 #
4061 # Example (Comparison):
4062 #
4063 # title: &quot;Summary size limit&quot;
4064 # description: &quot;Determines if a summary is less than 100 chars&quot;
4065 # expression: &quot;document.summary.size() &lt; 100&quot;
4066 #
4067 # Example (Equality):
4068 #
4069 # title: &quot;Requestor is owner&quot;
4070 # description: &quot;Determines if requestor is the document owner&quot;
4071 # expression: &quot;document.owner == request.auth.claims.email&quot;
4072 #
4073 # Example (Logic):
4074 #
4075 # title: &quot;Public documents&quot;
4076 # description: &quot;Determine whether the document should be publicly visible&quot;
4077 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
4078 #
4079 # Example (Data Manipulation):
4080 #
4081 # title: &quot;Notification string&quot;
4082 # description: &quot;Create a notification string with a timestamp.&quot;
4083 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
4084 #
4085 # The exact variables and functions that may be referenced within an expression
4086 # are determined by the service that evaluates it. See the service
4087 # documentation for additional information.
Bu Sun Kim65020912020-05-20 12:08:20 -07004088 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing
4089 # its purpose. This can be used e.g. in UIs which allow to enter the
4090 # expression.
4091 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error
4092 # reporting, e.g. a file name and a position in the file.
4093 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which
4094 # describes the expression, e.g. when hovered over it in a UI.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07004095 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
4096 # syntax.
Bu Sun Kim65020912020-05-20 12:08:20 -07004097 },
4098 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004099 # `members` can have the following values:
4100 #
4101 # * `allUsers`: A special identifier that represents anyone who is
4102 # on the internet; with or without a Google account.
4103 #
4104 # * `allAuthenticatedUsers`: A special identifier that represents anyone
4105 # who is authenticated with a Google account or a service account.
4106 #
4107 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07004108 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004109 #
4110 #
4111 # * `serviceAccount:{emailid}`: An email address that represents a service
4112 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
4113 #
4114 # * `group:{emailid}`: An email address that represents a Google group.
4115 # For example, `admins@example.com`.
4116 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004117 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
4118 # identifier) representing a user that has been recently deleted. For
4119 # example, `alice@example.com?uid=123456789012345678901`. If the user is
4120 # recovered, this value reverts to `user:{emailid}` and the recovered user
4121 # retains the role in the binding.
4122 #
4123 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
4124 # unique identifier) representing a service account that has been recently
4125 # deleted. For example,
4126 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
4127 # If the service account is undeleted, this value reverts to
4128 # `serviceAccount:{emailid}` and the undeleted service account retains the
4129 # role in the binding.
4130 #
4131 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
4132 # identifier) representing a Google group that has been recently
4133 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
4134 # the group is recovered, this value reverts to `group:{emailid}` and the
4135 # recovered group retains the role in the binding.
4136 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004137 #
4138 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
4139 # users of that domain. For example, `google.com` or `example.com`.
4140 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004141 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004142 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004143 },
4144 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004145 }</pre>
4146</div>
4147
4148<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07004149 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004150 <pre>Returns the permissions that a caller has on the specified note or
4151occurrence resource. Requires list permission on the project (for example,
Bu Sun Kim65020912020-05-20 12:08:20 -07004152&quot;storage.objects.list&quot; on the containing bucket for testing permission of
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004153an object). Attempting to call this method on a non-existent resource will
4154result in a `NOT_FOUND` error if the user has list permission on the
4155project, or a `PERMISSION_DENIED` error otherwise. The resource takes the
4156following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for
4157`Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
4158
4159Args:
4160 resource: string, REQUIRED: The resource for which the policy detail is being requested.
4161See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07004162 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004163 The object takes the form of:
4164
4165{ # Request message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07004166 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with
4167 # wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004168 # information see
4169 # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07004170 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004171 ],
4172 }
4173
4174 x__xgafv: string, V1 error format.
4175 Allowed values
4176 1 - v1 error format
4177 2 - v2 error format
4178
4179Returns:
4180 An object of the form:
4181
4182 { # Response message for `TestIamPermissions` method.
Bu Sun Kim65020912020-05-20 12:08:20 -07004183 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004184 # allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07004185 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004186 ],
4187 }</pre>
4188</div>
4189
4190</body></html>