blob: 6c5b9ab99d442f22c8df8c12217939850ec842e2 [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 Kim65020912020-05-20 12:08:20 -070096 <code><a href="#list">list(parent, name=None, filter=None, pageToken=None, kind=None, pageSize=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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
123 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
124 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
125 # in the associated note.
126 # DockerImage relationship. This image would be produced from a Dockerfile
127 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
128 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
129 # occurrence.
130 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
131 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
132 &quot;A String&quot;,
133 ],
134 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
135 # representation.
136 # This field can be used as a filter in list requests.
137 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
138 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
139 # Only the name of the final blob is kept.
140 # This field can be used as a filter in list requests.
141 },
142 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
143 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
144 # following the base image and [1] being the final layer.
145 { # Layer holds metadata specific to a layer of a Docker image.
146 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
147 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -0700148 },
149 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700150 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
151 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -0700152 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700153 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
154 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700155 # `BuildSignature` in the corresponding Result. After verifying the
156 # signature, `provenance_bytes` can be unmarshalled and compared to the
157 # provenance to confirm that it is unchanged. A base64-encoded string
158 # representation of the provenance bytes is used for the signature in order
159 # to interoperate with openssl which expects this format for signature
160 # verification.
161 #
162 # The serialized form is captured both to avoid ambiguity in how the
163 # provenance is marshalled to json as well to prevent incompatibilities with
164 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700165 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
166 # details about the build from source to completion.
167 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
168 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
169 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
170 &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.
171 # Repository.
172 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
173 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
174 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
175 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
176 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
177 },
178 &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
179 # Storage.
180 # Google Cloud Storage.
181 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
182 # Requirements]
183 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
184 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
185 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
186 },
187 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
188 # source integrity was maintained in the build.
189 #
190 # The keys to this map are file paths used as build source and the values
191 # contain the hash values for those files.
192 #
193 # If the build source came in a single package such as a gzipped tarfile
194 # (.tar.gz), the FileHash will be for the single path to that file.
195 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
196 # messages to verify integrity of source input to the build.
197 &quot;fileHash&quot;: [ # Collection of file hashes.
198 { # Container message for hash values.
199 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
200 &quot;value&quot;: &quot;A String&quot;, # The hash value.
201 },
202 ],
203 },
204 },
205 &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
206 # location.
207 # Google Cloud Storage.
208 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
209 # Requirements]
210 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
211 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
212 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
213 },
214 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
215 # these locations, in the case where the source repository had multiple
216 # remotes or submodules. This list will not include the context specified in
217 # the context field.
218 { # A SourceContext is a reference to a tree of files. A SourceContext together
219 # with a path point to a unique revision of a single file or directory.
220 &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.
221 # Source Repo.
222 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
223 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
224 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
225 &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.
226 # winged-cargo-31) and a repo name within that project.
227 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
228 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
229 },
230 },
231 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
232 &quot;name&quot;: &quot;A String&quot;, # The alias name.
233 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
234 },
235 },
236 &quot;labels&quot;: { # Labels with user defined metadata.
237 &quot;a_key&quot;: &quot;A String&quot;,
238 },
239 &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).
240 # repository (e.g., GitHub).
241 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
242 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
243 },
244 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
245 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
246 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
247 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
248 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
249 # the hostURI/project.
250 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
251 &quot;name&quot;: &quot;A String&quot;, # The alias name.
252 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
253 },
254 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700255 },
256 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700257 &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.
258 # with a path point to a unique revision of a single file or directory.
259 &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.
260 # Source Repo.
261 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
262 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
263 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
264 &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.
265 # winged-cargo-31) and a repo name within that project.
266 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
267 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
268 },
269 },
270 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
271 &quot;name&quot;: &quot;A String&quot;, # The alias name.
272 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
273 },
274 },
275 &quot;labels&quot;: { # Labels with user defined metadata.
276 &quot;a_key&quot;: &quot;A String&quot;,
277 },
278 &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).
279 # repository (e.g., GitHub).
280 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
281 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
282 },
283 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
284 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
285 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
286 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
287 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
288 # the hostURI/project.
289 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
290 &quot;name&quot;: &quot;A String&quot;, # The alias name.
291 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
292 },
293 },
294 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700295 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700296 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
297 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
298 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
299 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
300 # user&#x27;s e-mail address at the time the build was initiated; this address may
301 # not represent the same end-user for all time.
302 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
303 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
304 &quot;commands&quot;: [ # Commands requested by the build.
305 { # Command describes a step performed as part of the build pipeline.
306 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
307 # packaged as a Docker container, as presented to `docker pull`.
308 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
309 # this Command as a dependency.
310 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
311 # this Command.
312 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
313 &quot;A String&quot;,
314 ],
315 &quot;env&quot;: [ # Environment variables set before running this Command.
316 &quot;A String&quot;,
317 ],
318 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
319 &quot;A String&quot;,
320 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700321 },
322 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700323 &quot;builtArtifacts&quot;: [ # Output of the build.
324 { # Artifact describes a build product.
325 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
326 # like gcr.io/projectID/imagename@sha256:123456
327 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
328 # the case of a container build, the name used to push the container image to
329 # Google Container Registry, as presented to `docker push`. Note that a
330 # single Artifact ID can have multiple names, for example if two tags are
331 # applied to one image.
332 &quot;A String&quot;,
333 ],
334 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
335 # the case of a container build, the name used to push the container image to
336 # Google Container Registry, as presented to `docker push`.
337 #
338 # This field is deprecated in favor of the plural `names` field; it continues
339 # to exist here to allow existing BuildProvenance serialized to json in
340 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
341 # deserialize back into proto.
342 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
343 # container.
344 },
345 ],
346 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
347 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
348 # build providers can enter any desired additional details.
349 &quot;a_key&quot;: &quot;A String&quot;,
350 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700351 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700352 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700353 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
354 # specified. This field can be used as a filter in list requests.
355 &quot;resource&quot;: { # #
356 # The resource for which the `Occurrence` applies.
357 # Resource is an entity that can have metadata. E.g., a Docker image.
358 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
359 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
360 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
361 &quot;value&quot;: &quot;A String&quot;, # The hash value.
362 },
363 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
364 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
365 },
366 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
367 # applies. For example, https://gcr.io/project/image@sha256:foo This field
368 # can be used as a filter in list requests.
369 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
370 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
371 &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 -0700372 # Attestation can be verified using the attached signature. If the verifier
373 # trusts the public key of the signer, then verifying the signature is
374 # sufficient to establish trust. In this circumstance, the
375 # AttestationAuthority to which this Attestation is attached is primarily
376 # useful for look-up (how to find this Attestation if you already know the
377 # Authority and artifact to be verified) and intent (which authority was this
378 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -0700379 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700380 # This message only supports `ATTACHED` signatures, where the payload that is
381 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700382 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
383 # equivalent. Since this message only supports attached signatures, the
384 # payload that was signed must be attached. While the signature format
385 # supported is dependent on the verification implementation, currently only
386 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
387 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
388 # --output=signature.gpg payload.json` will create the signature content
389 # expected in this field in `signature.gpg` for the `payload.json`
390 # attestation payload.
391 &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 -0700392 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
393 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
394 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700395 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700396 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
397 # In gpg, the full fingerprint can be retrieved from the `fpr` field
398 # returned when calling --list-keys with --with-colons. For example:
399 # ```
400 # gpg --with-colons --with-fingerprint --force-v4-certs \
401 # --list-keys attester@example.com
402 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -0700403 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700404 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
405 # ```
406 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700407 &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 -0700408 # The verifier must ensure that the provided type is one that the verifier
409 # supports, and that the attestation payload is a valid instantiation of that
410 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700411 },
412 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700413 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
414 # a system.
415 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
416 # have been found.
417 { # An occurrence of a particular package installation found within a
418 # system&#x27;s filesystem.
419 # e.g. glibc was found in /var/lib/dpkg/status
420 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
421 # denoting the package manager version distributing a package.
422 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
423 # For a discussion of this in Debian/Ubuntu:
424 # http://serverfault.com/questions/604541/debian-packages-version-convention
425 # For a discussion of this in Redhat/Fedora/Centos:
426 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
427 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
428 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
429 # If kind is not NORMAL, then the other fields are ignored.
430 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
431 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
432 },
433 &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 -0700434 },
435 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700436 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
437 },
438 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
439 # specific upgrade. This presence is supplied via local sources (i.e. it is
440 # present in the mirror and the running system has noticed its availability).
441 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
442 # for the resource_url. This allows efficient filtering, as well as
443 # making it easier to use the occurrence.
444 # operating system (CPE). Some distributions have additional metadata around
445 # updates, classifying them into various categories and severities.
446 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
447 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700448 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700449 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
450 # upstream operating system upgrade feed.
451 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
452 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
453 # https://cpe.mitre.org/specification/.
454 },
455 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
456 &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.
457 # For a discussion of this in Debian/Ubuntu:
458 # http://serverfault.com/questions/604541/debian-packages-version-convention
459 # For a discussion of this in Redhat/Fedora/Centos:
460 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
461 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
462 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
463 # If kind is not NORMAL, then the other fields are ignored.
464 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
465 &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 -0700466 },
467 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700468 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
469 &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.
470 # This field is deprecated, do not use.
471 # network API call.
472 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
473 # originally returns it. If you use the default HTTP mapping, the
474 # `name` should be a resource name ending with `operations/{unique_id}`.
475 &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.
476 # different programming environments, including REST APIs and RPC APIs. It is
477 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
478 # three pieces of data: error code, error message, and error details.
479 #
480 # You can find out more about this error model and how to work with it in the
481 # [API Design Guide](https://cloud.google.com/apis/design/errors).
482 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
483 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
484 # user-facing error message should be localized and sent in the
485 # google.rpc.Status.details field, or localized by the client.
486 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
487 # message types for APIs to use.
488 {
489 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
490 },
491 ],
492 },
493 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
494 # contains progress information and common metadata such as create time.
495 # Some services might not provide such metadata. Any method that returns a
496 # long-running operation should document the metadata type, if any.
497 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
498 },
499 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
500 # If `true`, the operation is completed, and either `error` or `response` is
501 # available.
502 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
503 # method returns no data on success, such as `Delete`, the response is
504 # `google.protobuf.Empty`. If the original method is standard
505 # `Get`/`Create`/`Update`, the response should be the resource. For other
506 # methods, the response should have the type `XxxResponse`, where `Xxx`
507 # is the original method name. For example, if the original method name
508 # is `TakeSnapshot()`, the inferred response type is
509 # `TakeSnapshotResponse`.
510 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
511 },
512 },
513 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
514 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
515 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
516 &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
517 # details to show to the user. The LocalizedMessage output only and
518 # populated by the API.
519 # different programming environments, including REST APIs and RPC APIs. It is
520 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
521 # three pieces of data: error code, error message, and error details.
522 #
523 # You can find out more about this error model and how to work with it in the
524 # [API Design Guide](https://cloud.google.com/apis/design/errors).
525 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
526 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
527 # user-facing error message should be localized and sent in the
528 # google.rpc.Status.details field, or localized by the client.
529 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
530 # message types for APIs to use.
531 {
532 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
533 },
534 ],
535 },
536 },
537 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
538 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
539 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
540 # deployable field with the same name.
541 &quot;A String&quot;,
542 ],
543 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
544 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
545 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
546 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
547 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
548 },
549 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
550 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
551 # This field can be used as a filter in list requests.
552 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
553 # to fix it.
554 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
555 # scale of 0-10 where 0 indicates low severity and 10 indicates high
556 # severity.
557 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
558 # node.js packages etc)
559 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
560 # available and note provider assigned severity when distro has not yet
561 # assigned a severity for this vulnerability.
562 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
563 # the associated resource.
564 { # This message wraps a location affected by a vulnerability and its
565 # associated fix (if one is available).
566 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
567 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
568 # format. Examples include distro or storage location for vulnerable jar.
569 # This field can be used as a filter in list requests.
570 &quot;package&quot;: &quot;A String&quot;, # The package being described.
571 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a
572 # filter in list requests.
573 # For a discussion of this in Debian/Ubuntu:
574 # http://serverfault.com/questions/604541/debian-packages-version-convention
575 # For a discussion of this in Redhat/Fedora/Centos:
576 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
577 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
578 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
579 # If kind is not NORMAL, then the other fields are ignored.
580 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
581 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
582 },
583 },
584 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
585 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
586 # format. Examples include distro or storage location for vulnerable jar.
587 # This field can be used as a filter in list requests.
588 &quot;package&quot;: &quot;A String&quot;, # The package being described.
589 &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
590 # filter in list requests.
591 # For a discussion of this in Debian/Ubuntu:
592 # http://serverfault.com/questions/604541/debian-packages-version-convention
593 # For a discussion of this in Redhat/Fedora/Centos:
594 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
595 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
596 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
597 # If kind is not NORMAL, then the other fields are ignored.
598 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
599 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
600 },
601 },
602 &quot;severityName&quot;: &quot;A String&quot;,
603 },
604 ],
605 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
606 },
607 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
622 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
623 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
624 # in the associated note.
625 # DockerImage relationship. This image would be produced from a Dockerfile
626 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
627 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
628 # occurrence.
629 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
630 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
631 &quot;A String&quot;,
632 ],
633 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
634 # representation.
635 # This field can be used as a filter in list requests.
636 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
637 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
638 # Only the name of the final blob is kept.
639 # This field can be used as a filter in list requests.
640 },
641 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
642 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
643 # following the base image and [1] being the final layer.
644 { # Layer holds metadata specific to a layer of a Docker image.
645 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
646 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -0700647 },
648 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700649 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
650 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -0700651 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700652 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
653 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700654 # `BuildSignature` in the corresponding Result. After verifying the
655 # signature, `provenance_bytes` can be unmarshalled and compared to the
656 # provenance to confirm that it is unchanged. A base64-encoded string
657 # representation of the provenance bytes is used for the signature in order
658 # to interoperate with openssl which expects this format for signature
659 # verification.
660 #
661 # The serialized form is captured both to avoid ambiguity in how the
662 # provenance is marshalled to json as well to prevent incompatibilities with
663 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700664 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
665 # details about the build from source to completion.
666 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
667 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
668 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
669 &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.
670 # Repository.
671 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
672 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
673 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
674 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
675 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
676 },
677 &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
678 # Storage.
679 # Google Cloud Storage.
680 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
681 # Requirements]
682 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
683 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
684 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
685 },
686 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
687 # source integrity was maintained in the build.
688 #
689 # The keys to this map are file paths used as build source and the values
690 # contain the hash values for those files.
691 #
692 # If the build source came in a single package such as a gzipped tarfile
693 # (.tar.gz), the FileHash will be for the single path to that file.
694 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
695 # messages to verify integrity of source input to the build.
696 &quot;fileHash&quot;: [ # Collection of file hashes.
697 { # Container message for hash values.
698 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
699 &quot;value&quot;: &quot;A String&quot;, # The hash value.
700 },
701 ],
702 },
703 },
704 &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
705 # location.
706 # Google Cloud Storage.
707 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
708 # Requirements]
709 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
710 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
711 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
712 },
713 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
714 # these locations, in the case where the source repository had multiple
715 # remotes or submodules. This list will not include the context specified in
716 # the context field.
717 { # A SourceContext is a reference to a tree of files. A SourceContext together
718 # with a path point to a unique revision of a single file or directory.
719 &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.
720 # Source Repo.
721 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
722 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
723 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
724 &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.
725 # winged-cargo-31) and a repo name within that project.
726 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
727 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
728 },
729 },
730 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
731 &quot;name&quot;: &quot;A String&quot;, # The alias name.
732 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
733 },
734 },
735 &quot;labels&quot;: { # Labels with user defined metadata.
736 &quot;a_key&quot;: &quot;A String&quot;,
737 },
738 &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).
739 # repository (e.g., GitHub).
740 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
741 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
742 },
743 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
744 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
745 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
746 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
747 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
748 # the hostURI/project.
749 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
750 &quot;name&quot;: &quot;A String&quot;, # The alias name.
751 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
752 },
753 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700754 },
755 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700756 &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.
757 # with a path point to a unique revision of a single file or directory.
758 &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.
759 # Source Repo.
760 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
761 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
762 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
763 &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.
764 # winged-cargo-31) and a repo name within that project.
765 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
766 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
767 },
768 },
769 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
770 &quot;name&quot;: &quot;A String&quot;, # The alias name.
771 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
772 },
773 },
774 &quot;labels&quot;: { # Labels with user defined metadata.
775 &quot;a_key&quot;: &quot;A String&quot;,
776 },
777 &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).
778 # repository (e.g., GitHub).
779 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
780 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
781 },
782 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
783 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
784 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
785 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
786 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
787 # the hostURI/project.
788 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
789 &quot;name&quot;: &quot;A String&quot;, # The alias name.
790 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
791 },
792 },
793 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700794 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700795 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
796 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
797 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
798 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
799 # user&#x27;s e-mail address at the time the build was initiated; this address may
800 # not represent the same end-user for all time.
801 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
802 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
803 &quot;commands&quot;: [ # Commands requested by the build.
804 { # Command describes a step performed as part of the build pipeline.
805 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
806 # packaged as a Docker container, as presented to `docker pull`.
807 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
808 # this Command as a dependency.
809 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
810 # this Command.
811 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
812 &quot;A String&quot;,
813 ],
814 &quot;env&quot;: [ # Environment variables set before running this Command.
815 &quot;A String&quot;,
816 ],
817 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
818 &quot;A String&quot;,
819 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700820 },
821 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700822 &quot;builtArtifacts&quot;: [ # Output of the build.
823 { # Artifact describes a build product.
824 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
825 # like gcr.io/projectID/imagename@sha256:123456
826 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
827 # the case of a container build, the name used to push the container image to
828 # Google Container Registry, as presented to `docker push`. Note that a
829 # single Artifact ID can have multiple names, for example if two tags are
830 # applied to one image.
831 &quot;A String&quot;,
832 ],
833 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
834 # the case of a container build, the name used to push the container image to
835 # Google Container Registry, as presented to `docker push`.
836 #
837 # This field is deprecated in favor of the plural `names` field; it continues
838 # to exist here to allow existing BuildProvenance serialized to json in
839 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
840 # deserialize back into proto.
841 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
842 # container.
843 },
844 ],
845 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
846 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
847 # build providers can enter any desired additional details.
848 &quot;a_key&quot;: &quot;A String&quot;,
849 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700850 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700851 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700852 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
853 # specified. This field can be used as a filter in list requests.
854 &quot;resource&quot;: { # #
855 # The resource for which the `Occurrence` applies.
856 # Resource is an entity that can have metadata. E.g., a Docker image.
857 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
858 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
859 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
860 &quot;value&quot;: &quot;A String&quot;, # The hash value.
861 },
862 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
863 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
864 },
865 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
866 # applies. For example, https://gcr.io/project/image@sha256:foo This field
867 # can be used as a filter in list requests.
868 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
869 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
870 &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 -0700871 # Attestation can be verified using the attached signature. If the verifier
872 # trusts the public key of the signer, then verifying the signature is
873 # sufficient to establish trust. In this circumstance, the
874 # AttestationAuthority to which this Attestation is attached is primarily
875 # useful for look-up (how to find this Attestation if you already know the
876 # Authority and artifact to be verified) and intent (which authority was this
877 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -0700878 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700879 # This message only supports `ATTACHED` signatures, where the payload that is
880 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -0700881 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
882 # equivalent. Since this message only supports attached signatures, the
883 # payload that was signed must be attached. While the signature format
884 # supported is dependent on the verification implementation, currently only
885 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
886 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
887 # --output=signature.gpg payload.json` will create the signature content
888 # expected in this field in `signature.gpg` for the `payload.json`
889 # attestation payload.
890 &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 -0700891 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
892 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
893 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -0700894 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700895 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
896 # In gpg, the full fingerprint can be retrieved from the `fpr` field
897 # returned when calling --list-keys with --with-colons. For example:
898 # ```
899 # gpg --with-colons --with-fingerprint --force-v4-certs \
900 # --list-keys attester@example.com
901 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -0700902 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700903 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
904 # ```
905 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -0700906 &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 -0700907 # The verifier must ensure that the provided type is one that the verifier
908 # supports, and that the attestation payload is a valid instantiation of that
909 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700910 },
911 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700912 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
913 # a system.
914 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
915 # have been found.
916 { # An occurrence of a particular package installation found within a
917 # system&#x27;s filesystem.
918 # e.g. glibc was found in /var/lib/dpkg/status
919 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
920 # denoting the package manager version distributing a package.
921 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
922 # For a discussion of this in Debian/Ubuntu:
923 # http://serverfault.com/questions/604541/debian-packages-version-convention
924 # For a discussion of this in Redhat/Fedora/Centos:
925 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
926 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
927 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
928 # If kind is not NORMAL, then the other fields are ignored.
929 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
930 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
931 },
932 &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 -0700933 },
934 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700935 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
936 },
937 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
938 # specific upgrade. This presence is supplied via local sources (i.e. it is
939 # present in the mirror and the running system has noticed its availability).
940 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
941 # for the resource_url. This allows efficient filtering, as well as
942 # making it easier to use the occurrence.
943 # operating system (CPE). Some distributions have additional metadata around
944 # updates, classifying them into various categories and severities.
945 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
946 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700947 ],
Bu Sun Kim65020912020-05-20 12:08:20 -0700948 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
949 # upstream operating system upgrade feed.
950 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
951 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
952 # https://cpe.mitre.org/specification/.
953 },
954 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
955 &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.
956 # For a discussion of this in Debian/Ubuntu:
957 # http://serverfault.com/questions/604541/debian-packages-version-convention
958 # For a discussion of this in Redhat/Fedora/Centos:
959 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
960 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
961 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
962 # If kind is not NORMAL, then the other fields are ignored.
963 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
964 &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 -0700965 },
966 },
Bu Sun Kim65020912020-05-20 12:08:20 -0700967 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
968 &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.
969 # This field is deprecated, do not use.
970 # network API call.
971 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
972 # originally returns it. If you use the default HTTP mapping, the
973 # `name` should be a resource name ending with `operations/{unique_id}`.
974 &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.
975 # different programming environments, including REST APIs and RPC APIs. It is
976 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
977 # three pieces of data: error code, error message, and error details.
978 #
979 # You can find out more about this error model and how to work with it in the
980 # [API Design Guide](https://cloud.google.com/apis/design/errors).
981 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
982 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
983 # user-facing error message should be localized and sent in the
984 # google.rpc.Status.details field, or localized by the client.
985 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
986 # message types for APIs to use.
987 {
988 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
989 },
990 ],
991 },
992 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
993 # contains progress information and common metadata such as create time.
994 # Some services might not provide such metadata. Any method that returns a
995 # long-running operation should document the metadata type, if any.
996 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
997 },
998 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
999 # If `true`, the operation is completed, and either `error` or `response` is
1000 # available.
1001 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1002 # method returns no data on success, such as `Delete`, the response is
1003 # `google.protobuf.Empty`. If the original method is standard
1004 # `Get`/`Create`/`Update`, the response should be the resource. For other
1005 # methods, the response should have the type `XxxResponse`, where `Xxx`
1006 # is the original method name. For example, if the original method name
1007 # is `TakeSnapshot()`, the inferred response type is
1008 # `TakeSnapshotResponse`.
1009 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1010 },
1011 },
1012 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1013 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1014 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1015 &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
1016 # details to show to the user. The LocalizedMessage output only and
1017 # populated by the API.
1018 # different programming environments, including REST APIs and RPC APIs. It is
1019 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1020 # three pieces of data: error code, error message, and error details.
1021 #
1022 # You can find out more about this error model and how to work with it in the
1023 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1024 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1025 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1026 # user-facing error message should be localized and sent in the
1027 # google.rpc.Status.details field, or localized by the client.
1028 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1029 # message types for APIs to use.
1030 {
1031 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1032 },
1033 ],
1034 },
1035 },
1036 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1037 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1038 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
1039 # deployable field with the same name.
1040 &quot;A String&quot;,
1041 ],
1042 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1043 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1044 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1045 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1046 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1047 },
1048 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
1049 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
1050 # This field can be used as a filter in list requests.
1051 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
1052 # to fix it.
1053 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
1054 # scale of 0-10 where 0 indicates low severity and 10 indicates high
1055 # severity.
1056 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1057 # node.js packages etc)
1058 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
1059 # available and note provider assigned severity when distro has not yet
1060 # assigned a severity for this vulnerability.
1061 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
1062 # the associated resource.
1063 { # This message wraps a location affected by a vulnerability and its
1064 # associated fix (if one is available).
1065 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1066 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1067 # format. Examples include distro or storage location for vulnerable jar.
1068 # This field can be used as a filter in list requests.
1069 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1070 &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
1071 # filter in list requests.
1072 # For a discussion of this in Debian/Ubuntu:
1073 # http://serverfault.com/questions/604541/debian-packages-version-convention
1074 # For a discussion of this in Redhat/Fedora/Centos:
1075 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1076 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1077 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1078 # If kind is not NORMAL, then the other fields are ignored.
1079 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1080 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1081 },
1082 },
1083 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1084 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1085 # format. Examples include distro or storage location for vulnerable jar.
1086 # This field can be used as a filter in list requests.
1087 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1088 &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
1089 # filter in list requests.
1090 # For a discussion of this in Debian/Ubuntu:
1091 # http://serverfault.com/questions/604541/debian-packages-version-convention
1092 # For a discussion of this in Redhat/Fedora/Centos:
1093 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1094 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1095 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1096 # If kind is not NORMAL, then the other fields are ignored.
1097 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1098 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1099 },
1100 },
1101 &quot;severityName&quot;: &quot;A String&quot;,
1102 },
1103 ],
1104 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1105 },
1106 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1155 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1156 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
1157 # in the associated note.
1158 # DockerImage relationship. This image would be produced from a Dockerfile
1159 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
1160 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
1161 # occurrence.
1162 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1163 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1164 &quot;A String&quot;,
1165 ],
1166 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
1167 # representation.
1168 # This field can be used as a filter in list requests.
1169 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
1170 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
1171 # Only the name of the final blob is kept.
1172 # This field can be used as a filter in list requests.
1173 },
1174 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
1175 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
1176 # following the base image and [1] being the final layer.
1177 { # Layer holds metadata specific to a layer of a Docker image.
1178 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1179 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -07001180 },
1181 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001182 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
1183 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -07001184 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001185 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
1186 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001187 # `BuildSignature` in the corresponding Result. After verifying the
1188 # signature, `provenance_bytes` can be unmarshalled and compared to the
1189 # provenance to confirm that it is unchanged. A base64-encoded string
1190 # representation of the provenance bytes is used for the signature in order
1191 # to interoperate with openssl which expects this format for signature
1192 # verification.
1193 #
1194 # The serialized form is captured both to avoid ambiguity in how the
1195 # provenance is marshalled to json as well to prevent incompatibilities with
1196 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001197 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
1198 # details about the build from source to completion.
1199 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
1200 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1201 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
1202 &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.
1203 # Repository.
1204 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1205 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1206 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1207 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1208 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1209 },
1210 &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
1211 # Storage.
1212 # Google Cloud Storage.
1213 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
1214 # Requirements]
1215 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1216 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1217 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1218 },
1219 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
1220 # source integrity was maintained in the build.
1221 #
1222 # The keys to this map are file paths used as build source and the values
1223 # contain the hash values for those files.
1224 #
1225 # If the build source came in a single package such as a gzipped tarfile
1226 # (.tar.gz), the FileHash will be for the single path to that file.
1227 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
1228 # messages to verify integrity of source input to the build.
1229 &quot;fileHash&quot;: [ # Collection of file hashes.
1230 { # Container message for hash values.
1231 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1232 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1233 },
1234 ],
1235 },
1236 },
1237 &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
1238 # location.
1239 # Google Cloud Storage.
1240 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
1241 # Requirements]
1242 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1243 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1244 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1245 },
1246 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
1247 # these locations, in the case where the source repository had multiple
1248 # remotes or submodules. This list will not include the context specified in
1249 # the context field.
1250 { # A SourceContext is a reference to a tree of files. A SourceContext together
1251 # with a path point to a unique revision of a single file or directory.
1252 &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.
1253 # Source Repo.
1254 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1255 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1256 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1257 &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.
1258 # winged-cargo-31) and a repo name within that project.
1259 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1260 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1261 },
1262 },
1263 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1264 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1265 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1266 },
1267 },
1268 &quot;labels&quot;: { # Labels with user defined metadata.
1269 &quot;a_key&quot;: &quot;A String&quot;,
1270 },
1271 &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).
1272 # repository (e.g., GitHub).
1273 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1274 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1275 },
1276 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1277 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1278 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1279 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
1280 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
1281 # the hostURI/project.
1282 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1283 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1284 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1285 },
1286 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001287 },
1288 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001289 &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.
1290 # with a path point to a unique revision of a single file or directory.
1291 &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.
1292 # Source Repo.
1293 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1294 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1295 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1296 &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.
1297 # winged-cargo-31) and a repo name within that project.
1298 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1299 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1300 },
1301 },
1302 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1303 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1304 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1305 },
1306 },
1307 &quot;labels&quot;: { # Labels with user defined metadata.
1308 &quot;a_key&quot;: &quot;A String&quot;,
1309 },
1310 &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).
1311 # repository (e.g., GitHub).
1312 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
1313 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1314 },
1315 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1316 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1317 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1318 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
1319 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
1320 # the hostURI/project.
1321 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1322 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1323 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1324 },
1325 },
1326 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001327 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001328 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1329 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
1330 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1331 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
1332 # user&#x27;s e-mail address at the time the build was initiated; this address may
1333 # not represent the same end-user for all time.
1334 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1335 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1336 &quot;commands&quot;: [ # Commands requested by the build.
1337 { # Command describes a step performed as part of the build pipeline.
1338 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
1339 # packaged as a Docker container, as presented to `docker pull`.
1340 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
1341 # this Command as a dependency.
1342 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
1343 # this Command.
1344 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1345 &quot;A String&quot;,
1346 ],
1347 &quot;env&quot;: [ # Environment variables set before running this Command.
1348 &quot;A String&quot;,
1349 ],
1350 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1351 &quot;A String&quot;,
1352 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001353 },
1354 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001355 &quot;builtArtifacts&quot;: [ # Output of the build.
1356 { # Artifact describes a build product.
1357 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
1358 # like gcr.io/projectID/imagename@sha256:123456
1359 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
1360 # the case of a container build, the name used to push the container image to
1361 # Google Container Registry, as presented to `docker push`. Note that a
1362 # single Artifact ID can have multiple names, for example if two tags are
1363 # applied to one image.
1364 &quot;A String&quot;,
1365 ],
1366 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
1367 # the case of a container build, the name used to push the container image to
1368 # Google Container Registry, as presented to `docker push`.
1369 #
1370 # This field is deprecated in favor of the plural `names` field; it continues
1371 # to exist here to allow existing BuildProvenance serialized to json in
1372 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
1373 # deserialize back into proto.
1374 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
1375 # container.
1376 },
1377 ],
1378 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
1379 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
1380 # build providers can enter any desired additional details.
1381 &quot;a_key&quot;: &quot;A String&quot;,
1382 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001383 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001384 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001385 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
1386 # specified. This field can be used as a filter in list requests.
1387 &quot;resource&quot;: { # #
1388 # The resource for which the `Occurrence` applies.
1389 # Resource is an entity that can have metadata. E.g., a Docker image.
1390 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1391 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1392 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1393 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1394 },
1395 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
1396 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1397 },
1398 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
1399 # applies. For example, https://gcr.io/project/image@sha256:foo This field
1400 # can be used as a filter in list requests.
1401 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
1402 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
1403 &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 -07001404 # Attestation can be verified using the attached signature. If the verifier
1405 # trusts the public key of the signer, then verifying the signature is
1406 # sufficient to establish trust. In this circumstance, the
1407 # AttestationAuthority to which this Attestation is attached is primarily
1408 # useful for look-up (how to find this Attestation if you already know the
1409 # Authority and artifact to be verified) and intent (which authority was this
1410 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07001411 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001412 # This message only supports `ATTACHED` signatures, where the payload that is
1413 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07001414 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
1415 # equivalent. Since this message only supports attached signatures, the
1416 # payload that was signed must be attached. While the signature format
1417 # supported is dependent on the verification implementation, currently only
1418 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
1419 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
1420 # --output=signature.gpg payload.json` will create the signature content
1421 # expected in this field in `signature.gpg` for the `payload.json`
1422 # attestation payload.
1423 &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 -07001424 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
1425 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
1426 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07001427 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001428 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
1429 # In gpg, the full fingerprint can be retrieved from the `fpr` field
1430 # returned when calling --list-keys with --with-colons. For example:
1431 # ```
1432 # gpg --with-colons --with-fingerprint --force-v4-certs \
1433 # --list-keys attester@example.com
1434 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07001435 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001436 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
1437 # ```
1438 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001439 &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 -07001440 # The verifier must ensure that the provided type is one that the verifier
1441 # supports, and that the attestation payload is a valid instantiation of that
1442 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001443 },
1444 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001445 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
1446 # a system.
1447 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
1448 # have been found.
1449 { # An occurrence of a particular package installation found within a
1450 # system&#x27;s filesystem.
1451 # e.g. glibc was found in /var/lib/dpkg/status
1452 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
1453 # denoting the package manager version distributing a package.
1454 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
1455 # For a discussion of this in Debian/Ubuntu:
1456 # http://serverfault.com/questions/604541/debian-packages-version-convention
1457 # For a discussion of this in Redhat/Fedora/Centos:
1458 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1459 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1460 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1461 # If kind is not NORMAL, then the other fields are ignored.
1462 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1463 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1464 },
1465 &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 -07001466 },
1467 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001468 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1469 },
1470 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
1471 # specific upgrade. This presence is supplied via local sources (i.e. it is
1472 # present in the mirror and the running system has noticed its availability).
1473 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
1474 # for the resource_url. This allows efficient filtering, as well as
1475 # making it easier to use the occurrence.
1476 # operating system (CPE). Some distributions have additional metadata around
1477 # updates, classifying them into various categories and severities.
1478 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1479 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001480 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001481 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
1482 # upstream operating system upgrade feed.
1483 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1484 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
1485 # https://cpe.mitre.org/specification/.
1486 },
1487 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1488 &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.
1489 # For a discussion of this in Debian/Ubuntu:
1490 # http://serverfault.com/questions/604541/debian-packages-version-convention
1491 # For a discussion of this in Redhat/Fedora/Centos:
1492 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1493 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1494 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1495 # If kind is not NORMAL, then the other fields are ignored.
1496 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1497 &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 -07001498 },
1499 },
Bu Sun Kim65020912020-05-20 12:08:20 -07001500 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1501 &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.
1502 # This field is deprecated, do not use.
1503 # network API call.
1504 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
1505 # originally returns it. If you use the default HTTP mapping, the
1506 # `name` should be a resource name ending with `operations/{unique_id}`.
1507 &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.
1508 # different programming environments, including REST APIs and RPC APIs. It is
1509 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1510 # three pieces of data: error code, error message, and error details.
1511 #
1512 # You can find out more about this error model and how to work with it in the
1513 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1514 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1515 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1516 # user-facing error message should be localized and sent in the
1517 # google.rpc.Status.details field, or localized by the client.
1518 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1519 # message types for APIs to use.
1520 {
1521 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1522 },
1523 ],
1524 },
1525 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
1526 # contains progress information and common metadata such as create time.
1527 # Some services might not provide such metadata. Any method that returns a
1528 # long-running operation should document the metadata type, if any.
1529 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1530 },
1531 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
1532 # If `true`, the operation is completed, and either `error` or `response` is
1533 # available.
1534 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
1535 # method returns no data on success, such as `Delete`, the response is
1536 # `google.protobuf.Empty`. If the original method is standard
1537 # `Get`/`Create`/`Update`, the response should be the resource. For other
1538 # methods, the response should have the type `XxxResponse`, where `Xxx`
1539 # is the original method name. For example, if the original method name
1540 # is `TakeSnapshot()`, the inferred response type is
1541 # `TakeSnapshotResponse`.
1542 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1543 },
1544 },
1545 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1546 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1547 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1548 &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
1549 # details to show to the user. The LocalizedMessage output only and
1550 # populated by the API.
1551 # different programming environments, including REST APIs and RPC APIs. It is
1552 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
1553 # three pieces of data: error code, error message, and error details.
1554 #
1555 # You can find out more about this error model and how to work with it in the
1556 # [API Design Guide](https://cloud.google.com/apis/design/errors).
1557 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1558 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
1559 # user-facing error message should be localized and sent in the
1560 # google.rpc.Status.details field, or localized by the client.
1561 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
1562 # message types for APIs to use.
1563 {
1564 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1565 },
1566 ],
1567 },
1568 },
1569 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1570 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1571 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
1572 # deployable field with the same name.
1573 &quot;A String&quot;,
1574 ],
1575 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1576 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1577 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1578 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1579 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1580 },
1581 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
1582 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
1583 # This field can be used as a filter in list requests.
1584 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
1585 # to fix it.
1586 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
1587 # scale of 0-10 where 0 indicates low severity and 10 indicates high
1588 # severity.
1589 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
1590 # node.js packages etc)
1591 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
1592 # available and note provider assigned severity when distro has not yet
1593 # assigned a severity for this vulnerability.
1594 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
1595 # the associated resource.
1596 { # This message wraps a location affected by a vulnerability and its
1597 # associated fix (if one is available).
1598 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1599 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1600 # format. Examples include distro or storage location for vulnerable jar.
1601 # This field can be used as a filter in list requests.
1602 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1603 &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
1604 # filter in list requests.
1605 # For a discussion of this in Debian/Ubuntu:
1606 # http://serverfault.com/questions/604541/debian-packages-version-convention
1607 # For a discussion of this in Redhat/Fedora/Centos:
1608 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1609 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1610 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1611 # If kind is not NORMAL, then the other fields are ignored.
1612 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1613 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1614 },
1615 },
1616 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1617 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
1618 # format. Examples include distro or storage location for vulnerable jar.
1619 # This field can be used as a filter in list requests.
1620 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1621 &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
1622 # filter in list requests.
1623 # For a discussion of this in Debian/Ubuntu:
1624 # http://serverfault.com/questions/604541/debian-packages-version-convention
1625 # For a discussion of this in Redhat/Fedora/Centos:
1626 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
1627 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1628 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
1629 # If kind is not NORMAL, then the other fields are ignored.
1630 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1631 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1632 },
1633 },
1634 &quot;severityName&quot;: &quot;A String&quot;,
1635 },
1636 ],
1637 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1638 },
1639 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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 Kim65020912020-05-20 12:08:20 -07001796 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
1797 #
1798 # If the condition evaluates to `true`, then this binding applies to the
1799 # current request.
1800 #
1801 # If the condition evaluates to `false`, then this binding does not apply to
1802 # the current request. However, a different role binding might grant the same
1803 # role to one or more of the members in this binding.
1804 #
1805 # To learn which resources support conditions in their IAM policies, see the
1806 # [IAM
1807 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1808 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
1809 # are documented at https://github.com/google/cel-spec.
1810 #
1811 # Example (Comparison):
1812 #
1813 # title: &quot;Summary size limit&quot;
1814 # description: &quot;Determines if a summary is less than 100 chars&quot;
1815 # expression: &quot;document.summary.size() &lt; 100&quot;
1816 #
1817 # Example (Equality):
1818 #
1819 # title: &quot;Requestor is owner&quot;
1820 # description: &quot;Determines if requestor is the document owner&quot;
1821 # expression: &quot;document.owner == request.auth.claims.email&quot;
1822 #
1823 # Example (Logic):
1824 #
1825 # title: &quot;Public documents&quot;
1826 # description: &quot;Determine whether the document should be publicly visible&quot;
1827 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
1828 #
1829 # Example (Data Manipulation):
1830 #
1831 # title: &quot;Notification string&quot;
1832 # description: &quot;Create a notification string with a timestamp.&quot;
1833 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
1834 #
1835 # The exact variables and functions that may be referenced within an expression
1836 # are determined by the service that evaluates it. See the service
1837 # documentation for additional information.
1838 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
1839 # syntax.
1840 &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.
1847 },
1848 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001849 # `members` can have the following values:
1850 #
1851 # * `allUsers`: A special identifier that represents anyone who is
1852 # on the internet; with or without a Google account.
1853 #
1854 # * `allAuthenticatedUsers`: A special identifier that represents anyone
1855 # who is authenticated with a Google account or a service account.
1856 #
1857 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07001858 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001859 #
1860 #
1861 # * `serviceAccount:{emailid}`: An email address that represents a service
1862 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
1863 #
1864 # * `group:{emailid}`: An email address that represents a Google group.
1865 # For example, `admins@example.com`.
1866 #
Dan O'Mearadd494642020-05-01 07:42:23 -07001867 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
1868 # identifier) representing a user that has been recently deleted. For
1869 # example, `alice@example.com?uid=123456789012345678901`. If the user is
1870 # recovered, this value reverts to `user:{emailid}` and the recovered user
1871 # retains the role in the binding.
1872 #
1873 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
1874 # unique identifier) representing a service account that has been recently
1875 # deleted. For example,
1876 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
1877 # If the service account is undeleted, this value reverts to
1878 # `serviceAccount:{emailid}` and the undeleted service account retains the
1879 # role in the binding.
1880 #
1881 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
1882 # identifier) representing a Google group that has been recently
1883 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
1884 # the group is recovered, this value reverts to `group:{emailid}` and the
1885 # recovered group retains the role in the binding.
1886 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001887 #
1888 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
1889 # users of that domain. For example, `google.com` or `example.com`.
1890 #
Bu Sun Kim65020912020-05-20 12:08:20 -07001891 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001892 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001893 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
1894 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
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.
1945 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1946 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1947 &quot;A String&quot;,
1948 ],
1949 },
1950 &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 -07001951 # the provenance message in linked BuildDetails.
Bu Sun Kim65020912020-05-20 12:08:20 -07001952 &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 -07001953 # `BuilderDetails`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001954 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key
1955 # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the
1956 # CN for a cert), or a reference to an external key (such as a reference to a
1957 # key in Cloud Key Management Service).
1958 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in
1959 # `key_id`
1960 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1961 &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 -07001962 # findings are valid and unchanged. If `key_type` is empty, this defaults
1963 # to PEM encoded public keys.
1964 #
1965 # This field may be empty if `key_id` references an external key.
1966 #
1967 # For Cloud Build based signatures, this is a PEM encoded public
1968 # key. To verify the Cloud Build signature, place the contents of
1969 # this field into a file (public.pem). The signature field is base64-decoded
1970 # into its binary representation in signature.bin, and the provenance bytes
1971 # from `BuildDetails` are base64-decoded into a binary representation in
1972 # signed.bin. OpenSSL can then verify the signature:
1973 # `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
Bu Sun Kim65020912020-05-20 12:08:20 -07001974 },
1975 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1976 },
1977 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1978 &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.
2000 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
2001 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
2002 &quot;details&quot;: [ # All information about the package to specifically identify this
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002003 # vulnerability. One entry per (version range and cpe_uri) the
2004 # package vulnerability has manifested in.
2005 { # Identifies all occurrences of this vulnerability in the package for a
2006 # specific distro/location
2007 # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim65020912020-05-20 12:08:20 -07002008 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002009 # obsolete details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002010 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
2011 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002012 # format. Examples include distro or storage location for vulnerable jar.
2013 # This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07002014 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2015 &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 -07002016 # filter in list requests.
2017 # For a discussion of this in Debian/Ubuntu:
2018 # http://serverfault.com/questions/604541/debian-packages-version-convention
2019 # For a discussion of this in Redhat/Fedora/Centos:
2020 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07002021 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2022 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002023 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07002024 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2025 &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 -07002026 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002027 },
2028 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
2029 # node.js packages etc)
2030 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
2031 # which the vulnerability manifests. Examples include distro or storage
2032 # location for vulnerable jar.
2033 # This field can be used as a filter in list requests.
2034 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
2035 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists.
2036 # For a discussion of this in Debian/Ubuntu:
2037 # http://serverfault.com/questions/604541/debian-packages-version-convention
2038 # For a discussion of this in Redhat/Fedora/Centos:
2039 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2040 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2041 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2042 # If kind is not NORMAL, then the other fields are ignored.
2043 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2044 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2045 },
2046 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
2047 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found.
2048 # This field can be used as a filter in list requests.
2049 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists.
2050 # For a discussion of this in Debian/Ubuntu:
2051 # http://serverfault.com/questions/604541/debian-packages-version-convention
2052 # For a discussion of this in Redhat/Fedora/Centos:
2053 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2054 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2055 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2056 # If kind is not NORMAL, then the other fields are ignored.
2057 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2058 &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 -07002059 },
2060 },
2061 ],
2062 },
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.
2066 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2067 &quot;version&quot;: { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form.
2068 # For a discussion of this in Debian/Ubuntu:
2069 # http://serverfault.com/questions/604541/debian-packages-version-convention
2070 # For a discussion of this in Redhat/Fedora/Centos:
2071 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2072 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2073 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2074 # If kind is not NORMAL, then the other fields are ignored.
2075 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2076 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2077 },
2078 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
2079 { # The Upgrade Distribution represents metadata about the Upgrade for each
2080 # operating system (CPE). Some distributions have additional metadata around
2081 # updates, classifying them into various categories and severities.
2082 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2083 &quot;A String&quot;,
2084 ],
2085 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
2086 # upstream operating system upgrade feed.
2087 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2088 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
2089 # https://cpe.mitre.org/specification/.
2090 },
2091 ],
2092 },
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
2100 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
2101 &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 -07002102 # this distribution channel.
2103 # For a discussion of this in Debian/Ubuntu:
2104 # http://serverfault.com/questions/604541/debian-packages-version-convention
2105 # For a discussion of this in Redhat/Fedora/Centos:
2106 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
Bu Sun Kim65020912020-05-20 12:08:20 -07002107 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2108 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002109 # If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim65020912020-05-20 12:08:20 -07002110 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2111 &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 -07002112 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002113 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
2114 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
2115 # denoting the package manager version distributing a package.
2116 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
2117 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution
2118 # channel were built
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as
2125 # a filter in list requests.
2126 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type.
2127 # exists in a provider&#x27;s project. A `Discovery` occurrence is created in a
2128 # consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002129 # indicate the status of the analysis. Absence of an occurrence linked to this
Bu Sun Kim65020912020-05-20 12:08:20 -07002130 # note for a resource indicates that analysis hasn&#x27;t started.
2131 &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 -07002132 },
2133 }</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 Kim65020912020-05-20 12:08:20 -07002164 <code class="details" id="list">list(parent, name=None, filter=None, pageToken=None, kind=None, pageSize=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 Kim715bd7f2019-06-14 16:50:42 -07002169 name: string, The name field contains the project Id. For example:
Bu Sun Kim65020912020-05-20 12:08:20 -07002170&quot;projects/{project_id}
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002171@Deprecated
Bu Sun Kim65020912020-05-20 12:08:20 -07002172 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002173 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim65020912020-05-20 12:08:20 -07002174 kind: string, The kind of occurrences to filter on.
2175 pageSize: integer, Number of occurrences to return in the list.
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2188 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2189 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
2190 # in the associated note.
2191 # DockerImage relationship. This image would be produced from a Dockerfile
2192 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
2193 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
2194 # occurrence.
2195 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2196 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2197 &quot;A String&quot;,
2198 ],
2199 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
2200 # representation.
2201 # This field can be used as a filter in list requests.
2202 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2203 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2204 # Only the name of the final blob is kept.
2205 # This field can be used as a filter in list requests.
2206 },
2207 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
2208 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
2209 # following the base image and [1] being the final layer.
2210 { # Layer holds metadata specific to a layer of a Docker image.
2211 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
2212 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -07002213 },
2214 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002215 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
2216 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -07002217 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002218 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
2219 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002220 # `BuildSignature` in the corresponding Result. After verifying the
2221 # signature, `provenance_bytes` can be unmarshalled and compared to the
2222 # provenance to confirm that it is unchanged. A base64-encoded string
2223 # representation of the provenance bytes is used for the signature in order
2224 # to interoperate with openssl which expects this format for signature
2225 # verification.
2226 #
2227 # The serialized form is captured both to avoid ambiguity in how the
2228 # provenance is marshalled to json as well to prevent incompatibilities with
2229 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002230 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
2231 # details about the build from source to completion.
2232 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2233 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2234 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2235 &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.
2236 # Repository.
2237 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2238 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2239 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2240 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2241 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2242 },
2243 &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
2244 # Storage.
2245 # Google Cloud Storage.
2246 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2247 # Requirements]
2248 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2249 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2250 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2251 },
2252 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
2253 # source integrity was maintained in the build.
2254 #
2255 # The keys to this map are file paths used as build source and the values
2256 # contain the hash values for those files.
2257 #
2258 # If the build source came in a single package such as a gzipped tarfile
2259 # (.tar.gz), the FileHash will be for the single path to that file.
2260 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
2261 # messages to verify integrity of source input to the build.
2262 &quot;fileHash&quot;: [ # Collection of file hashes.
2263 { # Container message for hash values.
2264 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2265 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2266 },
2267 ],
2268 },
2269 },
2270 &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
2271 # location.
2272 # Google Cloud Storage.
2273 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2274 # Requirements]
2275 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2276 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2277 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2278 },
2279 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
2280 # these locations, in the case where the source repository had multiple
2281 # remotes or submodules. This list will not include the context specified in
2282 # the context field.
2283 { # A SourceContext is a reference to a tree of files. A SourceContext together
2284 # with a path point to a unique revision of a single file or directory.
2285 &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.
2286 # Source Repo.
2287 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2288 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2289 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2290 &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.
2291 # winged-cargo-31) and a repo name within that project.
2292 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2293 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2294 },
2295 },
2296 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2297 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2298 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2299 },
2300 },
2301 &quot;labels&quot;: { # Labels with user defined metadata.
2302 &quot;a_key&quot;: &quot;A String&quot;,
2303 },
2304 &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).
2305 # repository (e.g., GitHub).
2306 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2307 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2308 },
2309 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2310 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2311 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2312 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2313 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2314 # the hostURI/project.
2315 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2316 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2317 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2318 },
2319 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002320 },
2321 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002322 &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.
2323 # with a path point to a unique revision of a single file or directory.
2324 &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.
2325 # Source Repo.
2326 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2327 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2328 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2329 &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.
2330 # winged-cargo-31) and a repo name within that project.
2331 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2332 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2333 },
2334 },
2335 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2336 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2337 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2338 },
2339 },
2340 &quot;labels&quot;: { # Labels with user defined metadata.
2341 &quot;a_key&quot;: &quot;A String&quot;,
2342 },
2343 &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).
2344 # repository (e.g., GitHub).
2345 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2346 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2347 },
2348 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2349 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2350 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2351 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2352 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2353 # the hostURI/project.
2354 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2355 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2356 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2357 },
2358 },
2359 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002360 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002361 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2362 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2363 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2364 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
2365 # user&#x27;s e-mail address at the time the build was initiated; this address may
2366 # not represent the same end-user for all time.
2367 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2368 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2369 &quot;commands&quot;: [ # Commands requested by the build.
2370 { # Command describes a step performed as part of the build pipeline.
2371 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
2372 # packaged as a Docker container, as presented to `docker pull`.
2373 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
2374 # this Command as a dependency.
2375 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
2376 # this Command.
2377 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2378 &quot;A String&quot;,
2379 ],
2380 &quot;env&quot;: [ # Environment variables set before running this Command.
2381 &quot;A String&quot;,
2382 ],
2383 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2384 &quot;A String&quot;,
2385 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002386 },
2387 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002388 &quot;builtArtifacts&quot;: [ # Output of the build.
2389 { # Artifact describes a build product.
2390 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
2391 # like gcr.io/projectID/imagename@sha256:123456
2392 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
2393 # the case of a container build, the name used to push the container image to
2394 # Google Container Registry, as presented to `docker push`. Note that a
2395 # single Artifact ID can have multiple names, for example if two tags are
2396 # applied to one image.
2397 &quot;A String&quot;,
2398 ],
2399 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
2400 # the case of a container build, the name used to push the container image to
2401 # Google Container Registry, as presented to `docker push`.
2402 #
2403 # This field is deprecated in favor of the plural `names` field; it continues
2404 # to exist here to allow existing BuildProvenance serialized to json in
2405 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
2406 # deserialize back into proto.
2407 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
2408 # container.
2409 },
2410 ],
2411 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2412 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
2413 # build providers can enter any desired additional details.
2414 &quot;a_key&quot;: &quot;A String&quot;,
2415 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002416 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002417 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002418 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
2419 # specified. This field can be used as a filter in list requests.
2420 &quot;resource&quot;: { # #
2421 # The resource for which the `Occurrence` applies.
2422 # Resource is an entity that can have metadata. E.g., a Docker image.
2423 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2424 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2425 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2426 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2427 },
2428 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
2429 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
2430 },
2431 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
2432 # applies. For example, https://gcr.io/project/image@sha256:foo This field
2433 # can be used as a filter in list requests.
2434 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
2435 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2436 &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 -07002437 # Attestation can be verified using the attached signature. If the verifier
2438 # trusts the public key of the signer, then verifying the signature is
2439 # sufficient to establish trust. In this circumstance, the
2440 # AttestationAuthority to which this Attestation is attached is primarily
2441 # useful for look-up (how to find this Attestation if you already know the
2442 # Authority and artifact to be verified) and intent (which authority was this
2443 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07002444 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002445 # This message only supports `ATTACHED` signatures, where the payload that is
2446 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002447 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
2448 # equivalent. Since this message only supports attached signatures, the
2449 # payload that was signed must be attached. While the signature format
2450 # supported is dependent on the verification implementation, currently only
2451 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
2452 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
2453 # --output=signature.gpg payload.json` will create the signature content
2454 # expected in this field in `signature.gpg` for the `payload.json`
2455 # attestation payload.
2456 &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 -07002457 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
2458 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
2459 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002460 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002461 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
2462 # In gpg, the full fingerprint can be retrieved from the `fpr` field
2463 # returned when calling --list-keys with --with-colons. For example:
2464 # ```
2465 # gpg --with-colons --with-fingerprint --force-v4-certs \
2466 # --list-keys attester@example.com
2467 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07002468 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002469 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
2470 # ```
2471 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002472 &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 -07002473 # The verifier must ensure that the provided type is one that the verifier
2474 # supports, and that the attestation payload is a valid instantiation of that
2475 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002476 },
2477 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002478 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
2479 # a system.
2480 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
2481 # have been found.
2482 { # An occurrence of a particular package installation found within a
2483 # system&#x27;s filesystem.
2484 # e.g. glibc was found in /var/lib/dpkg/status
2485 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
2486 # denoting the package manager version distributing a package.
2487 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
2488 # For a discussion of this in Debian/Ubuntu:
2489 # http://serverfault.com/questions/604541/debian-packages-version-convention
2490 # For a discussion of this in Redhat/Fedora/Centos:
2491 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2492 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2493 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2494 # If kind is not NORMAL, then the other fields are ignored.
2495 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2496 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2497 },
2498 &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 -07002499 },
2500 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002501 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2502 },
2503 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
2504 # specific upgrade. This presence is supplied via local sources (i.e. it is
2505 # present in the mirror and the running system has noticed its availability).
2506 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
2507 # for the resource_url. This allows efficient filtering, as well as
2508 # making it easier to use the occurrence.
2509 # operating system (CPE). Some distributions have additional metadata around
2510 # updates, classifying them into various categories and severities.
2511 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
2512 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002513 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002514 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
2515 # upstream operating system upgrade feed.
2516 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
2517 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
2518 # https://cpe.mitre.org/specification/.
2519 },
2520 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
2521 &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.
2522 # For a discussion of this in Debian/Ubuntu:
2523 # http://serverfault.com/questions/604541/debian-packages-version-convention
2524 # For a discussion of this in Redhat/Fedora/Centos:
2525 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2526 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2527 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2528 # If kind is not NORMAL, then the other fields are ignored.
2529 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2530 &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 -07002531 },
2532 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002533 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2534 &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.
2535 # This field is deprecated, do not use.
2536 # network API call.
2537 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
2538 # originally returns it. If you use the default HTTP mapping, the
2539 # `name` should be a resource name ending with `operations/{unique_id}`.
2540 &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.
2541 # different programming environments, including REST APIs and RPC APIs. It is
2542 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2543 # three pieces of data: error code, error message, and error details.
2544 #
2545 # You can find out more about this error model and how to work with it in the
2546 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2547 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2548 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2549 # user-facing error message should be localized and sent in the
2550 # google.rpc.Status.details field, or localized by the client.
2551 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2552 # message types for APIs to use.
2553 {
2554 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2555 },
2556 ],
2557 },
2558 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
2559 # contains progress information and common metadata such as create time.
2560 # Some services might not provide such metadata. Any method that returns a
2561 # long-running operation should document the metadata type, if any.
2562 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2563 },
2564 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
2565 # If `true`, the operation is completed, and either `error` or `response` is
2566 # available.
2567 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
2568 # method returns no data on success, such as `Delete`, the response is
2569 # `google.protobuf.Empty`. If the original method is standard
2570 # `Get`/`Create`/`Update`, the response should be the resource. For other
2571 # methods, the response should have the type `XxxResponse`, where `Xxx`
2572 # is the original method name. For example, if the original method name
2573 # is `TakeSnapshot()`, the inferred response type is
2574 # `TakeSnapshotResponse`.
2575 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2576 },
2577 },
2578 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2579 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2580 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2581 &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
2582 # details to show to the user. The LocalizedMessage output only and
2583 # populated by the API.
2584 # different programming environments, including REST APIs and RPC APIs. It is
2585 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
2586 # three pieces of data: error code, error message, and error details.
2587 #
2588 # You can find out more about this error model and how to work with it in the
2589 # [API Design Guide](https://cloud.google.com/apis/design/errors).
2590 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2591 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
2592 # user-facing error message should be localized and sent in the
2593 # google.rpc.Status.details field, or localized by the client.
2594 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
2595 # message types for APIs to use.
2596 {
2597 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2598 },
2599 ],
2600 },
2601 },
2602 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
2603 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2604 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
2605 # deployable field with the same name.
2606 &quot;A String&quot;,
2607 ],
2608 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2609 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2610 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2611 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2612 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
2613 },
2614 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
2615 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
2616 # This field can be used as a filter in list requests.
2617 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
2618 # to fix it.
2619 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
2620 # scale of 0-10 where 0 indicates low severity and 10 indicates high
2621 # severity.
2622 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
2623 # node.js packages etc)
2624 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
2625 # available and note provider assigned severity when distro has not yet
2626 # assigned a severity for this vulnerability.
2627 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
2628 # the associated resource.
2629 { # This message wraps a location affected by a vulnerability and its
2630 # associated fix (if one is available).
2631 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2632 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
2633 # format. Examples include distro or storage location for vulnerable jar.
2634 # This field can be used as a filter in list requests.
2635 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2636 &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
2637 # filter in list requests.
2638 # For a discussion of this in Debian/Ubuntu:
2639 # http://serverfault.com/questions/604541/debian-packages-version-convention
2640 # For a discussion of this in Redhat/Fedora/Centos:
2641 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2642 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2643 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2644 # If kind is not NORMAL, then the other fields are ignored.
2645 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2646 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2647 },
2648 },
2649 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2650 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
2651 # format. Examples include distro or storage location for vulnerable jar.
2652 # This field can be used as a filter in list requests.
2653 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2654 &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
2655 # filter in list requests.
2656 # For a discussion of this in Debian/Ubuntu:
2657 # http://serverfault.com/questions/604541/debian-packages-version-convention
2658 # For a discussion of this in Redhat/Fedora/Centos:
2659 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
2660 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2661 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
2662 # If kind is not NORMAL, then the other fields are ignored.
2663 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2664 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2665 },
2666 },
2667 &quot;severityName&quot;: &quot;A String&quot;,
2668 },
2669 ],
2670 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2671 },
2672 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2707 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2708 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
2709 # in the associated note.
2710 # DockerImage relationship. This image would be produced from a Dockerfile
2711 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
2712 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
2713 # occurrence.
2714 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2715 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2716 &quot;A String&quot;,
2717 ],
2718 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
2719 # representation.
2720 # This field can be used as a filter in list requests.
2721 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
2722 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
2723 # Only the name of the final blob is kept.
2724 # This field can be used as a filter in list requests.
2725 },
2726 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
2727 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
2728 # following the base image and [1] being the final layer.
2729 { # Layer holds metadata specific to a layer of a Docker image.
2730 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
2731 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -07002732 },
2733 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002734 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
2735 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -07002736 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002737 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
2738 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002739 # `BuildSignature` in the corresponding Result. After verifying the
2740 # signature, `provenance_bytes` can be unmarshalled and compared to the
2741 # provenance to confirm that it is unchanged. A base64-encoded string
2742 # representation of the provenance bytes is used for the signature in order
2743 # to interoperate with openssl which expects this format for signature
2744 # verification.
2745 #
2746 # The serialized form is captured both to avoid ambiguity in how the
2747 # provenance is marshalled to json as well to prevent incompatibilities with
2748 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002749 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
2750 # details about the build from source to completion.
2751 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
2752 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2753 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
2754 &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.
2755 # Repository.
2756 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
2757 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
2758 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
2759 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
2760 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
2761 },
2762 &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
2763 # Storage.
2764 # Google Cloud Storage.
2765 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2766 # Requirements]
2767 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2768 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2769 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2770 },
2771 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
2772 # source integrity was maintained in the build.
2773 #
2774 # The keys to this map are file paths used as build source and the values
2775 # contain the hash values for those files.
2776 #
2777 # If the build source came in a single package such as a gzipped tarfile
2778 # (.tar.gz), the FileHash will be for the single path to that file.
2779 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
2780 # messages to verify integrity of source input to the build.
2781 &quot;fileHash&quot;: [ # Collection of file hashes.
2782 { # Container message for hash values.
2783 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2784 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2785 },
2786 ],
2787 },
2788 },
2789 &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
2790 # location.
2791 # Google Cloud Storage.
2792 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
2793 # Requirements]
2794 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2795 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2796 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2797 },
2798 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
2799 # these locations, in the case where the source repository had multiple
2800 # remotes or submodules. This list will not include the context specified in
2801 # the context field.
2802 { # A SourceContext is a reference to a tree of files. A SourceContext together
2803 # with a path point to a unique revision of a single file or directory.
2804 &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.
2805 # Source Repo.
2806 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2807 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2808 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2809 &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.
2810 # winged-cargo-31) and a repo name within that project.
2811 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2812 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2813 },
2814 },
2815 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2816 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2817 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2818 },
2819 },
2820 &quot;labels&quot;: { # Labels with user defined metadata.
2821 &quot;a_key&quot;: &quot;A String&quot;,
2822 },
2823 &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).
2824 # repository (e.g., GitHub).
2825 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2826 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2827 },
2828 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2829 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2830 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2831 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2832 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2833 # the hostURI/project.
2834 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2835 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2836 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2837 },
2838 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002839 },
2840 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002841 &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.
2842 # with a path point to a unique revision of a single file or directory.
2843 &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.
2844 # Source Repo.
2845 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2846 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2847 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2848 &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.
2849 # winged-cargo-31) and a repo name within that project.
2850 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2851 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2852 },
2853 },
2854 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2855 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2856 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2857 },
2858 },
2859 &quot;labels&quot;: { # Labels with user defined metadata.
2860 &quot;a_key&quot;: &quot;A String&quot;,
2861 },
2862 &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).
2863 # repository (e.g., GitHub).
2864 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
2865 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2866 },
2867 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2868 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2869 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2870 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
2871 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
2872 # the hostURI/project.
2873 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2874 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2875 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2876 },
2877 },
2878 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002879 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002880 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2881 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
2882 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2883 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
2884 # user&#x27;s e-mail address at the time the build was initiated; this address may
2885 # not represent the same end-user for all time.
2886 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2887 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2888 &quot;commands&quot;: [ # Commands requested by the build.
2889 { # Command describes a step performed as part of the build pipeline.
2890 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
2891 # packaged as a Docker container, as presented to `docker pull`.
2892 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
2893 # this Command as a dependency.
2894 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
2895 # this Command.
2896 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2897 &quot;A String&quot;,
2898 ],
2899 &quot;env&quot;: [ # Environment variables set before running this Command.
2900 &quot;A String&quot;,
2901 ],
2902 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2903 &quot;A String&quot;,
2904 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002905 },
2906 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07002907 &quot;builtArtifacts&quot;: [ # Output of the build.
2908 { # Artifact describes a build product.
2909 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
2910 # like gcr.io/projectID/imagename@sha256:123456
2911 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
2912 # the case of a container build, the name used to push the container image to
2913 # Google Container Registry, as presented to `docker push`. Note that a
2914 # single Artifact ID can have multiple names, for example if two tags are
2915 # applied to one image.
2916 &quot;A String&quot;,
2917 ],
2918 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
2919 # the case of a container build, the name used to push the container image to
2920 # Google Container Registry, as presented to `docker push`.
2921 #
2922 # This field is deprecated in favor of the plural `names` field; it continues
2923 # to exist here to allow existing BuildProvenance serialized to json in
2924 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
2925 # deserialize back into proto.
2926 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
2927 # container.
2928 },
2929 ],
2930 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
2931 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
2932 # build providers can enter any desired additional details.
2933 &quot;a_key&quot;: &quot;A String&quot;,
2934 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002935 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002936 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002937 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
2938 # specified. This field can be used as a filter in list requests.
2939 &quot;resource&quot;: { # #
2940 # The resource for which the `Occurrence` applies.
2941 # Resource is an entity that can have metadata. E.g., a Docker image.
2942 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
2943 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
2944 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2945 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2946 },
2947 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
2948 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
2949 },
2950 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
2951 # applies. For example, https://gcr.io/project/image@sha256:foo This field
2952 # can be used as a filter in list requests.
2953 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
2954 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2955 &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 -07002956 # Attestation can be verified using the attached signature. If the verifier
2957 # trusts the public key of the signer, then verifying the signature is
2958 # sufficient to establish trust. In this circumstance, the
2959 # AttestationAuthority to which this Attestation is attached is primarily
2960 # useful for look-up (how to find this Attestation if you already know the
2961 # Authority and artifact to be verified) and intent (which authority was this
2962 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07002963 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002964 # This message only supports `ATTACHED` signatures, where the payload that is
2965 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07002966 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
2967 # equivalent. Since this message only supports attached signatures, the
2968 # payload that was signed must be attached. While the signature format
2969 # supported is dependent on the verification implementation, currently only
2970 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
2971 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
2972 # --output=signature.gpg payload.json` will create the signature content
2973 # expected in this field in `signature.gpg` for the `payload.json`
2974 # attestation payload.
2975 &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 -07002976 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
2977 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
2978 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07002979 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002980 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
2981 # In gpg, the full fingerprint can be retrieved from the `fpr` field
2982 # returned when calling --list-keys with --with-colons. For example:
2983 # ```
2984 # gpg --with-colons --with-fingerprint --force-v4-certs \
2985 # --list-keys attester@example.com
2986 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07002987 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002988 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
2989 # ```
2990 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002991 &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 -07002992 # The verifier must ensure that the provided type is one that the verifier
2993 # supports, and that the attestation payload is a valid instantiation of that
2994 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002995 },
2996 },
Bu Sun Kim65020912020-05-20 12:08:20 -07002997 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
2998 # a system.
2999 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
3000 # have been found.
3001 { # An occurrence of a particular package installation found within a
3002 # system&#x27;s filesystem.
3003 # e.g. glibc was found in /var/lib/dpkg/status
3004 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
3005 # denoting the package manager version distributing a package.
3006 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
3007 # For a discussion of this in Debian/Ubuntu:
3008 # http://serverfault.com/questions/604541/debian-packages-version-convention
3009 # For a discussion of this in Redhat/Fedora/Centos:
3010 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3011 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3012 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3013 # If kind is not NORMAL, then the other fields are ignored.
3014 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3015 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3016 },
3017 &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 -07003018 },
3019 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003020 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3021 },
3022 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
3023 # specific upgrade. This presence is supplied via local sources (i.e. it is
3024 # present in the mirror and the running system has noticed its availability).
3025 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
3026 # for the resource_url. This allows efficient filtering, as well as
3027 # making it easier to use the occurrence.
3028 # operating system (CPE). Some distributions have additional metadata around
3029 # updates, classifying them into various categories and severities.
3030 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3031 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003032 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003033 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
3034 # upstream operating system upgrade feed.
3035 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3036 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
3037 # https://cpe.mitre.org/specification/.
3038 },
3039 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3040 &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.
3041 # For a discussion of this in Debian/Ubuntu:
3042 # http://serverfault.com/questions/604541/debian-packages-version-convention
3043 # For a discussion of this in Redhat/Fedora/Centos:
3044 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3045 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3046 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3047 # If kind is not NORMAL, then the other fields are ignored.
3048 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3049 &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 -07003050 },
3051 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003052 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3053 &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.
3054 # This field is deprecated, do not use.
3055 # network API call.
3056 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
3057 # originally returns it. If you use the default HTTP mapping, the
3058 # `name` should be a resource name ending with `operations/{unique_id}`.
3059 &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.
3060 # different programming environments, including REST APIs and RPC APIs. It is
3061 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3062 # three pieces of data: error code, error message, and error details.
3063 #
3064 # You can find out more about this error model and how to work with it in the
3065 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3066 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3067 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3068 # user-facing error message should be localized and sent in the
3069 # google.rpc.Status.details field, or localized by the client.
3070 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3071 # message types for APIs to use.
3072 {
3073 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3074 },
3075 ],
3076 },
3077 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3078 # contains progress information and common metadata such as create time.
3079 # Some services might not provide such metadata. Any method that returns a
3080 # long-running operation should document the metadata type, if any.
3081 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3082 },
3083 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
3084 # If `true`, the operation is completed, and either `error` or `response` is
3085 # available.
3086 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
3087 # method returns no data on success, such as `Delete`, the response is
3088 # `google.protobuf.Empty`. If the original method is standard
3089 # `Get`/`Create`/`Update`, the response should be the resource. For other
3090 # methods, the response should have the type `XxxResponse`, where `Xxx`
3091 # is the original method name. For example, if the original method name
3092 # is `TakeSnapshot()`, the inferred response type is
3093 # `TakeSnapshotResponse`.
3094 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3095 },
3096 },
3097 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3098 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3099 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3100 &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
3101 # details to show to the user. The LocalizedMessage output only and
3102 # populated by the API.
3103 # different programming environments, including REST APIs and RPC APIs. It is
3104 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3105 # three pieces of data: error code, error message, and error details.
3106 #
3107 # You can find out more about this error model and how to work with it in the
3108 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3109 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3110 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3111 # user-facing error message should be localized and sent in the
3112 # google.rpc.Status.details field, or localized by the client.
3113 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3114 # message types for APIs to use.
3115 {
3116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3117 },
3118 ],
3119 },
3120 },
3121 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3122 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3123 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
3124 # deployable field with the same name.
3125 &quot;A String&quot;,
3126 ],
3127 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3128 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3129 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3130 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3131 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
3132 },
3133 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
3134 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
3135 # This field can be used as a filter in list requests.
3136 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
3137 # to fix it.
3138 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
3139 # scale of 0-10 where 0 indicates low severity and 10 indicates high
3140 # severity.
3141 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
3142 # node.js packages etc)
3143 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
3144 # available and note provider assigned severity when distro has not yet
3145 # assigned a severity for this vulnerability.
3146 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
3147 # the associated resource.
3148 { # This message wraps a location affected by a vulnerability and its
3149 # associated fix (if one is available).
3150 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3151 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3152 # format. Examples include distro or storage location for vulnerable jar.
3153 # This field can be used as a filter in list requests.
3154 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3155 &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
3156 # filter in list requests.
3157 # For a discussion of this in Debian/Ubuntu:
3158 # http://serverfault.com/questions/604541/debian-packages-version-convention
3159 # For a discussion of this in Redhat/Fedora/Centos:
3160 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3161 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3162 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3163 # If kind is not NORMAL, then the other fields are ignored.
3164 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3165 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3166 },
3167 },
3168 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3169 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3170 # format. Examples include distro or storage location for vulnerable jar.
3171 # This field can be used as a filter in list requests.
3172 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3173 &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
3174 # filter in list requests.
3175 # For a discussion of this in Debian/Ubuntu:
3176 # http://serverfault.com/questions/604541/debian-packages-version-convention
3177 # For a discussion of this in Redhat/Fedora/Centos:
3178 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3179 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3180 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3181 # If kind is not NORMAL, then the other fields are ignored.
3182 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3183 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3184 },
3185 },
3186 &quot;severityName&quot;: &quot;A String&quot;,
3187 },
3188 ],
3189 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3190 },
3191 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
3205 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
3206 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the # Describes how this resource derives from the basis
3207 # in the associated note.
3208 # DockerImage relationship. This image would be produced from a Dockerfile
3209 # with FROM &lt;DockerImage.Basis in attached Note&gt;.
3210 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image
3211 # occurrence.
3212 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
3213 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
3214 &quot;A String&quot;,
3215 ],
3216 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1
3217 # representation.
3218 # This field can be used as a filter in list requests.
3219 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via:
3220 # [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1])
3221 # Only the name of the final blob is kept.
3222 # This field can be used as a filter in list requests.
3223 },
3224 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length
3225 # &quot;distance&quot; and is ordered with [distance] being the layer immediately
3226 # following the base image and [1] being the final layer.
3227 { # Layer holds metadata specific to a layer of a Docker image.
3228 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
3229 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
Dan O'Mearadd494642020-05-01 07:42:23 -07003230 },
3231 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003232 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the
3233 # associated image basis.
Dan O'Mearadd494642020-05-01 07:42:23 -07003234 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003235 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
3236 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003237 # `BuildSignature` in the corresponding Result. After verifying the
3238 # signature, `provenance_bytes` can be unmarshalled and compared to the
3239 # provenance to confirm that it is unchanged. A base64-encoded string
3240 # representation of the provenance bytes is used for the signature in order
3241 # to interoperate with openssl which expects this format for signature
3242 # verification.
3243 #
3244 # The serialized form is captured both to avoid ambiguity in how the
3245 # provenance is marshalled to json as well to prevent incompatibilities with
3246 # future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07003247 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full # The actual provenance
3248 # details about the build from source to completion.
3249 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
3250 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
3251 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
3252 &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.
3253 # Repository.
3254 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
3255 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
3256 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
3257 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
3258 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
3259 },
3260 &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
3261 # Storage.
3262 # Google Cloud Storage.
3263 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
3264 # Requirements]
3265 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3266 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
3267 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3268 },
3269 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original
3270 # source integrity was maintained in the build.
3271 #
3272 # The keys to this map are file paths used as build source and the values
3273 # contain the hash values for those files.
3274 #
3275 # If the build source came in a single package such as a gzipped tarfile
3276 # (.tar.gz), the FileHash will be for the single path to that file.
3277 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source
3278 # messages to verify integrity of source input to the build.
3279 &quot;fileHash&quot;: [ # Collection of file hashes.
3280 { # Container message for hash values.
3281 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3282 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3283 },
3284 ],
3285 },
3286 },
3287 &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
3288 # location.
3289 # Google Cloud Storage.
3290 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name
3291 # Requirements]
3292 # (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
3293 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
3294 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
3295 },
3296 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in
3297 # these locations, in the case where the source repository had multiple
3298 # remotes or submodules. This list will not include the context specified in
3299 # the context field.
3300 { # A SourceContext is a reference to a tree of files. A SourceContext together
3301 # with a path point to a unique revision of a single file or directory.
3302 &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.
3303 # Source Repo.
3304 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3305 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3306 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3307 &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.
3308 # winged-cargo-31) and a repo name within that project.
3309 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3310 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3311 },
3312 },
3313 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3314 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3315 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3316 },
3317 },
3318 &quot;labels&quot;: { # Labels with user defined metadata.
3319 &quot;a_key&quot;: &quot;A String&quot;,
3320 },
3321 &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).
3322 # repository (e.g., GitHub).
3323 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3324 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3325 },
3326 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3327 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3328 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3329 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
3330 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
3331 # the hostURI/project.
3332 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3333 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3334 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3335 },
3336 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003337 },
3338 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003339 &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.
3340 # with a path point to a unique revision of a single file or directory.
3341 &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.
3342 # Source Repo.
3343 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
3344 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
3345 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
3346 &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.
3347 # winged-cargo-31) and a repo name within that project.
3348 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
3349 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
3350 },
3351 },
3352 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3353 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3354 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3355 },
3356 },
3357 &quot;labels&quot;: { # Labels with user defined metadata.
3358 &quot;a_key&quot;: &quot;A String&quot;,
3359 },
3360 &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).
3361 # repository (e.g., GitHub).
3362 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
3363 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
3364 },
3365 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
3366 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
3367 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
3368 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so
3369 # &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is
3370 # the hostURI/project.
3371 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
3372 &quot;name&quot;: &quot;A String&quot;, # The alias name.
3373 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
3374 },
3375 },
3376 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003377 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003378 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
3379 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
3380 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
3381 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the
3382 # user&#x27;s e-mail address at the time the build was initiated; this address may
3383 # not represent the same end-user for all time.
3384 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
3385 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
3386 &quot;commands&quot;: [ # Commands requested by the build.
3387 { # Command describes a step performed as part of the build pipeline.
3388 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is
3389 # packaged as a Docker container, as presented to `docker pull`.
3390 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference
3391 # this Command as a dependency.
3392 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running
3393 # this Command.
3394 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
3395 &quot;A String&quot;,
3396 ],
3397 &quot;env&quot;: [ # Environment variables set before running this Command.
3398 &quot;A String&quot;,
3399 ],
3400 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
3401 &quot;A String&quot;,
3402 ],
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003403 },
3404 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003405 &quot;builtArtifacts&quot;: [ # Output of the build.
3406 { # Artifact describes a build product.
3407 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest
3408 # like gcr.io/projectID/imagename@sha256:123456
3409 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in
3410 # the case of a container build, the name used to push the container image to
3411 # Google Container Registry, as presented to `docker push`. Note that a
3412 # single Artifact ID can have multiple names, for example if two tags are
3413 # applied to one image.
3414 &quot;A String&quot;,
3415 ],
3416 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in
3417 # the case of a container build, the name used to push the container image to
3418 # Google Container Registry, as presented to `docker push`.
3419 #
3420 # This field is deprecated in favor of the plural `names` field; it continues
3421 # to exist here to allow existing BuildProvenance serialized to json in
3422 # google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to
3423 # deserialize back into proto.
3424 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
3425 # container.
3426 },
3427 ],
3428 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
3429 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where
3430 # build providers can enter any desired additional details.
3431 &quot;a_key&quot;: &quot;A String&quot;,
3432 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003433 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003434 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003435 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are
3436 # specified. This field can be used as a filter in list requests.
3437 &quot;resource&quot;: { # #
3438 # The resource for which the `Occurrence` applies.
3439 # Resource is an entity that can have metadata. E.g., a Docker image.
3440 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
3441 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
3442 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
3443 &quot;value&quot;: &quot;A String&quot;, # The hash value.
3444 },
3445 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g.,
3446 # &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
3447 },
3448 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence`
3449 # applies. For example, https://gcr.io/project/image@sha256:foo This field
3450 # can be used as a filter in list requests.
3451 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form
3452 # &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
3453 &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 -07003454 # Attestation can be verified using the attached signature. If the verifier
3455 # trusts the public key of the signer, then verifying the signature is
3456 # sufficient to establish trust. In this circumstance, the
3457 # AttestationAuthority to which this Attestation is attached is primarily
3458 # useful for look-up (how to find this Attestation if you already know the
3459 # Authority and artifact to be verified) and intent (which authority was this
3460 # attestation intended to sign for).
Bu Sun Kim65020912020-05-20 12:08:20 -07003461 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003462 # This message only supports `ATTACHED` signatures, where the payload that is
3463 # signed is included alongside the signature itself in the same file.
Bu Sun Kim65020912020-05-20 12:08:20 -07003464 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or
3465 # equivalent. Since this message only supports attached signatures, the
3466 # payload that was signed must be attached. While the signature format
3467 # supported is dependent on the verification implementation, currently only
3468 # ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than
3469 # `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor
3470 # --output=signature.gpg payload.json` will create the signature content
3471 # expected in this field in `signature.gpg` for the `payload.json`
3472 # attestation payload.
3473 &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 -07003474 # as output by, e.g. `gpg --list-keys`. This should be the version 4, full
3475 # 160-bit fingerprint, expressed as a 40 character hexadecimal string. See
3476 # https://tools.ietf.org/html/rfc4880#section-12.2 for details.
Bu Sun Kim65020912020-05-20 12:08:20 -07003477 # Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003478 # abbreviated key IDs, but only the full fingerprint is guaranteed to work.
3479 # In gpg, the full fingerprint can be retrieved from the `fpr` field
3480 # returned when calling --list-keys with --with-colons. For example:
3481 # ```
3482 # gpg --with-colons --with-fingerprint --force-v4-certs \
3483 # --list-keys attester@example.com
3484 # tru::1:1513631572:0:3:1:5
Dan O'Mearadd494642020-05-01 07:42:23 -07003485 # pub:...&lt;SNIP&gt;...
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003486 # fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
3487 # ```
3488 # Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
Bu Sun Kim65020912020-05-20 12:08:20 -07003489 &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 -07003490 # The verifier must ensure that the provided type is one that the verifier
3491 # supports, and that the attestation payload is a valid instantiation of that
3492 # type (for example by validating a JSON schema).
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003493 },
3494 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003495 &quot;installation&quot;: { # This represents how a particular software package may be installed on # Describes the installation of a package on the linked resource.
3496 # a system.
3497 &quot;location&quot;: [ # All of the places within the filesystem versions of this package
3498 # have been found.
3499 { # An occurrence of a particular package installation found within a
3500 # system&#x27;s filesystem.
3501 # e.g. glibc was found in /var/lib/dpkg/status
3502 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/)
3503 # denoting the package manager version distributing a package.
3504 &quot;version&quot;: { # Version contains structured information about the version of the package. # The version installed at this location.
3505 # For a discussion of this in Debian/Ubuntu:
3506 # http://serverfault.com/questions/604541/debian-packages-version-convention
3507 # For a discussion of this in Redhat/Fedora/Centos:
3508 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3509 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3510 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3511 # If kind is not NORMAL, then the other fields are ignored.
3512 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3513 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3514 },
3515 &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 -07003516 },
3517 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003518 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
3519 },
3520 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a # Describes an upgrade.
3521 # specific upgrade. This presence is supplied via local sources (i.e. it is
3522 # present in the mirror and the running system has noticed its availability).
3523 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each # Metadata about the upgrade for available for the specific operating system
3524 # for the resource_url. This allows efficient filtering, as well as
3525 # making it easier to use the occurrence.
3526 # operating system (CPE). Some distributions have additional metadata around
3527 # updates, classifying them into various categories and severities.
3528 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
3529 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003530 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003531 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the
3532 # upstream operating system upgrade feed.
3533 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
3534 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See
3535 # https://cpe.mitre.org/specification/.
3536 },
3537 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
3538 &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.
3539 # For a discussion of this in Debian/Ubuntu:
3540 # http://serverfault.com/questions/604541/debian-packages-version-convention
3541 # For a discussion of this in Redhat/Fedora/Centos:
3542 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3543 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3544 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3545 # If kind is not NORMAL, then the other fields are ignored.
3546 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3547 &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 -07003548 },
3549 },
Bu Sun Kim65020912020-05-20 12:08:20 -07003550 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
3551 &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.
3552 # This field is deprecated, do not use.
3553 # network API call.
3554 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that
3555 # originally returns it. If you use the default HTTP mapping, the
3556 # `name` should be a resource name ending with `operations/{unique_id}`.
3557 &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.
3558 # different programming environments, including REST APIs and RPC APIs. It is
3559 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3560 # three pieces of data: error code, error message, and error details.
3561 #
3562 # You can find out more about this error model and how to work with it in the
3563 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3564 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3565 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3566 # user-facing error message should be localized and sent in the
3567 # google.rpc.Status.details field, or localized by the client.
3568 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3569 # message types for APIs to use.
3570 {
3571 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3572 },
3573 ],
3574 },
3575 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically
3576 # contains progress information and common metadata such as create time.
3577 # Some services might not provide such metadata. Any method that returns a
3578 # long-running operation should document the metadata type, if any.
3579 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3580 },
3581 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress.
3582 # If `true`, the operation is completed, and either `error` or `response` is
3583 # available.
3584 &quot;response&quot;: { # The normal response of the operation in case of success. If the original
3585 # method returns no data on success, such as `Delete`, the response is
3586 # `google.protobuf.Empty`. If the original method is standard
3587 # `Get`/`Create`/`Update`, the response should be the resource. For other
3588 # methods, the response should have the type `XxxResponse`, where `Xxx`
3589 # is the original method name. For example, if the original method name
3590 # is `TakeSnapshot()`, the inferred response type is
3591 # `TakeSnapshotResponse`.
3592 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3593 },
3594 },
3595 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
3596 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
3597 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
3598 &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
3599 # details to show to the user. The LocalizedMessage output only and
3600 # populated by the API.
3601 # different programming environments, including REST APIs and RPC APIs. It is
3602 # used by [gRPC](https://github.com/grpc). Each `Status` message contains
3603 # three pieces of data: error code, error message, and error details.
3604 #
3605 # You can find out more about this error model and how to work with it in the
3606 # [API Design Guide](https://cloud.google.com/apis/design/errors).
3607 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
3608 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any
3609 # user-facing error message should be localized and sent in the
3610 # google.rpc.Status.details field, or localized by the client.
3611 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of
3612 # message types for APIs to use.
3613 {
3614 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
3615 },
3616 ],
3617 },
3618 },
3619 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
3620 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
3621 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the
3622 # deployable field with the same name.
3623 &quot;A String&quot;,
3624 ],
3625 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
3626 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
3627 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
3628 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
3629 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
3630 },
3631 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form
3632 # &quot;providers/{provider_id}/notes/{NOTE_ID}&quot;
3633 # This field can be used as a filter in list requests.
3634 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how # Details of a security vulnerability note.
3635 # to fix it.
3636 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a
3637 # scale of 0-10 where 0 indicates low severity and 10 indicates high
3638 # severity.
3639 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems,
3640 # node.js packages etc)
3641 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is
3642 # available and note provider assigned severity when distro has not yet
3643 # assigned a severity for this vulnerability.
3644 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within
3645 # the associated resource.
3646 { # This message wraps a location affected by a vulnerability and its
3647 # associated fix (if one is available).
3648 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
3649 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3650 # format. Examples include distro or storage location for vulnerable jar.
3651 # This field can be used as a filter in list requests.
3652 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3653 &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
3654 # filter in list requests.
3655 # For a discussion of this in Debian/Ubuntu:
3656 # http://serverfault.com/questions/604541/debian-packages-version-convention
3657 # For a discussion of this in Redhat/Fedora/Centos:
3658 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3659 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3660 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3661 # If kind is not NORMAL, then the other fields are ignored.
3662 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3663 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3664 },
3665 },
3666 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
3667 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/)
3668 # format. Examples include distro or storage location for vulnerable jar.
3669 # This field can be used as a filter in list requests.
3670 &quot;package&quot;: &quot;A String&quot;, # The package being described.
3671 &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
3672 # filter in list requests.
3673 # For a discussion of this in Debian/Ubuntu:
3674 # http://serverfault.com/questions/604541/debian-packages-version-convention
3675 # For a discussion of this in Redhat/Fedora/Centos:
3676 # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/
3677 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
3678 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions.
3679 # If kind is not NORMAL, then the other fields are ignored.
3680 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
3681 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
3682 },
3683 },
3684 &quot;severityName&quot;: &quot;A String&quot;,
3685 },
3686 ],
3687 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
3688 },
3689 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
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 Kim65020912020-05-20 12:08:20 -07003825 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
3826 #
3827 # If the condition evaluates to `true`, then this binding applies to the
3828 # current request.
3829 #
3830 # If the condition evaluates to `false`, then this binding does not apply to
3831 # the current request. However, a different role binding might grant the same
3832 # role to one or more of the members in this binding.
3833 #
3834 # To learn which resources support conditions in their IAM policies, see the
3835 # [IAM
3836 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
3837 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
3838 # are documented at https://github.com/google/cel-spec.
3839 #
3840 # Example (Comparison):
3841 #
3842 # title: &quot;Summary size limit&quot;
3843 # description: &quot;Determines if a summary is less than 100 chars&quot;
3844 # expression: &quot;document.summary.size() &lt; 100&quot;
3845 #
3846 # Example (Equality):
3847 #
3848 # title: &quot;Requestor is owner&quot;
3849 # description: &quot;Determines if requestor is the document owner&quot;
3850 # expression: &quot;document.owner == request.auth.claims.email&quot;
3851 #
3852 # Example (Logic):
3853 #
3854 # title: &quot;Public documents&quot;
3855 # description: &quot;Determine whether the document should be publicly visible&quot;
3856 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
3857 #
3858 # Example (Data Manipulation):
3859 #
3860 # title: &quot;Notification string&quot;
3861 # description: &quot;Create a notification string with a timestamp.&quot;
3862 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
3863 #
3864 # The exact variables and functions that may be referenced within an expression
3865 # are determined by the service that evaluates it. See the service
3866 # documentation for additional information.
3867 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
3868 # syntax.
3869 &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.
3876 },
3877 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003878 # `members` can have the following values:
3879 #
3880 # * `allUsers`: A special identifier that represents anyone who is
3881 # on the internet; with or without a Google account.
3882 #
3883 # * `allAuthenticatedUsers`: A special identifier that represents anyone
3884 # who is authenticated with a Google account or a service account.
3885 #
3886 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07003887 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003888 #
3889 #
3890 # * `serviceAccount:{emailid}`: An email address that represents a service
3891 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
3892 #
3893 # * `group:{emailid}`: An email address that represents a Google group.
3894 # For example, `admins@example.com`.
3895 #
Dan O'Mearadd494642020-05-01 07:42:23 -07003896 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
3897 # identifier) representing a user that has been recently deleted. For
3898 # example, `alice@example.com?uid=123456789012345678901`. If the user is
3899 # recovered, this value reverts to `user:{emailid}` and the recovered user
3900 # retains the role in the binding.
3901 #
3902 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
3903 # unique identifier) representing a service account that has been recently
3904 # deleted. For example,
3905 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
3906 # If the service account is undeleted, this value reverts to
3907 # `serviceAccount:{emailid}` and the undeleted service account retains the
3908 # role in the binding.
3909 #
3910 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
3911 # identifier) representing a Google group that has been recently
3912 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
3913 # the group is recovered, this value reverts to `group:{emailid}` and the
3914 # recovered group retains the role in the binding.
3915 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003916 #
3917 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
3918 # users of that domain. For example, `google.com` or `example.com`.
3919 #
Bu Sun Kim65020912020-05-20 12:08:20 -07003920 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07003921 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07003922 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
3923 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
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 Kim65020912020-05-20 12:08:20 -07004044 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
4045 #
4046 # If the condition evaluates to `true`, then this binding applies to the
4047 # current request.
4048 #
4049 # If the condition evaluates to `false`, then this binding does not apply to
4050 # the current request. However, a different role binding might grant the same
4051 # role to one or more of the members in this binding.
4052 #
4053 # To learn which resources support conditions in their IAM policies, see the
4054 # [IAM
4055 # documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
4056 # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
4057 # are documented at https://github.com/google/cel-spec.
4058 #
4059 # Example (Comparison):
4060 #
4061 # title: &quot;Summary size limit&quot;
4062 # description: &quot;Determines if a summary is less than 100 chars&quot;
4063 # expression: &quot;document.summary.size() &lt; 100&quot;
4064 #
4065 # Example (Equality):
4066 #
4067 # title: &quot;Requestor is owner&quot;
4068 # description: &quot;Determines if requestor is the document owner&quot;
4069 # expression: &quot;document.owner == request.auth.claims.email&quot;
4070 #
4071 # Example (Logic):
4072 #
4073 # title: &quot;Public documents&quot;
4074 # description: &quot;Determine whether the document should be publicly visible&quot;
4075 # expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot;
4076 #
4077 # Example (Data Manipulation):
4078 #
4079 # title: &quot;Notification string&quot;
4080 # description: &quot;Create a notification string with a timestamp.&quot;
4081 # expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot;
4082 #
4083 # The exact variables and functions that may be referenced within an expression
4084 # are determined by the service that evaluates it. See the service
4085 # documentation for additional information.
4086 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language
4087 # syntax.
4088 &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.
4095 },
4096 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004097 # `members` can have the following values:
4098 #
4099 # * `allUsers`: A special identifier that represents anyone who is
4100 # on the internet; with or without a Google account.
4101 #
4102 # * `allAuthenticatedUsers`: A special identifier that represents anyone
4103 # who is authenticated with a Google account or a service account.
4104 #
4105 # * `user:{emailid}`: An email address that represents a specific Google
Dan O'Mearadd494642020-05-01 07:42:23 -07004106 # account. For example, `alice@example.com` .
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004107 #
4108 #
4109 # * `serviceAccount:{emailid}`: An email address that represents a service
4110 # account. For example, `my-other-app@appspot.gserviceaccount.com`.
4111 #
4112 # * `group:{emailid}`: An email address that represents a Google group.
4113 # For example, `admins@example.com`.
4114 #
Dan O'Mearadd494642020-05-01 07:42:23 -07004115 # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
4116 # identifier) representing a user that has been recently deleted. For
4117 # example, `alice@example.com?uid=123456789012345678901`. If the user is
4118 # recovered, this value reverts to `user:{emailid}` and the recovered user
4119 # retains the role in the binding.
4120 #
4121 # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
4122 # unique identifier) representing a service account that has been recently
4123 # deleted. For example,
4124 # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
4125 # If the service account is undeleted, this value reverts to
4126 # `serviceAccount:{emailid}` and the undeleted service account retains the
4127 # role in the binding.
4128 #
4129 # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
4130 # identifier) representing a Google group that has been recently
4131 # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
4132 # the group is recovered, this value reverts to `group:{emailid}` and the
4133 # recovered group retains the role in the binding.
4134 #
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004135 #
4136 # * `domain:{domain}`: The G Suite domain (primary) that represents all the
4137 # users of that domain. For example, `google.com` or `example.com`.
4138 #
Bu Sun Kim65020912020-05-20 12:08:20 -07004139 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07004140 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07004141 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`.
4142 # For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
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>