blob: f7427c19e900a7c23532f9ce169173663e1d7770 [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="containeranalysis_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070081 <code><a href="#create">create(parent, body=None, name=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070082<p class="firstline">Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070083<p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070085<p class="firstline">Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086<p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88<p class="firstline">Returns the requested `Occurrence`.</p>
89<p class="toc_element">
90 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070091<p class="firstline">Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070092<p class="toc_element">
93 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
94<p class="firstline">Gets the `Note` attached to the given `Occurrence`.</p>
95<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070096 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070097<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
98<p class="toc_element">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -070099 <code><a href="#list">list(parent, kind=None, filter=None, pageSize=None, pageToken=None, name=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Lists active `Occurrences` for a given project matching the filters.</p>
101<p class="toc_element">
102 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
103<p class="firstline">Retrieves the next page of results.</p>
104<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700105 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700106<p class="firstline">Updates an existing occurrence.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700109<p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, "storage.objects.list" on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<h3>Method Details</h3>
114<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115 <code class="details" id="close">close()</code>
116 <pre>Close httplib2 connections.</pre>
117</div>
118
119<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700120 <code class="details" id="create">create(parent, body=None, name=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700121 <pre>Creates a new `Occurrence`. Use this method to create `Occurrences` for a resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700122
123Args:
Bu Sun Kim65020912020-05-20 12:08:20 -0700124 parent: string, This field contains the project Id for example: &quot;projects/{project_id}&quot; (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700125 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700126 The object takes the form of:
127
128{ # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700129 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700130 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700131 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700132 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700133 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
134 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
135 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700136 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
137 &quot;A String&quot;,
138 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700139 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700140 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
141 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
142 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
143 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
144 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
145 },
146 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700147 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700148 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
149 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
150 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
151 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
152 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
153 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
154 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
155 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
156 &quot;A String&quot;,
157 ],
158 },
159 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
160 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
161 &quot;value&quot;: &quot;A String&quot;, # The hash value.
162 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
163 },
164 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
165 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
166 },
167 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700168 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700169 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
170 &quot;builtArtifacts&quot;: [ # Output of the build.
171 { # Artifact describes a build product.
172 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
173 &quot;A String&quot;,
174 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700175 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700176 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
177 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700178 },
179 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700180 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700181 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700182 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700183 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700184 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700185 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700186 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
187 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
188 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
189 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
190 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
191 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
192 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700193 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700194 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
195 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
196 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
197 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
198 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
199 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
200 },
201 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700202 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700203 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700204 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700205 },
206 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700207 },
208 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700209 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700210 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
211 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
212 &quot;name&quot;: &quot;A String&quot;, # The alias name.
213 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700214 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700215 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700216 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700217 &quot;labels&quot;: { # Labels with user defined metadata.
218 &quot;a_key&quot;: &quot;A String&quot;,
219 },
220 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
221 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
222 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -0700223 },
224 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700225 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
226 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700227 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
228 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
229 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
230 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
231 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
232 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
233 },
234 },
235 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700236 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700237 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700238 },
239 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
240 },
241 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700242 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700243 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
244 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
245 &quot;name&quot;: &quot;A String&quot;, # The alias name.
246 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700247 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700248 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
249 },
250 &quot;labels&quot;: { # Labels with user defined metadata.
251 &quot;a_key&quot;: &quot;A String&quot;,
252 },
253 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
254 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
255 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700256 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700257 },
258 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700259 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
260 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
261 &quot;fileHash&quot;: [ # Collection of file hashes.
262 { # Container message for hash values.
263 &quot;value&quot;: &quot;A String&quot;, # The hash value.
264 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
265 },
266 ],
267 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700268 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700269 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
270 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
271 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
272 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
273 },
274 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
275 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
276 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
277 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700278 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700279 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700280 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
281 &quot;a_key&quot;: &quot;A String&quot;,
282 },
283 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
284 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
285 &quot;commands&quot;: [ # Commands requested by the build.
286 { # Command describes a step performed as part of the build pipeline.
287 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
288 &quot;A String&quot;,
289 ],
290 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
291 &quot;A String&quot;,
292 ],
293 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
294 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
295 &quot;env&quot;: [ # Environment variables set before running this Command.
296 &quot;A String&quot;,
297 ],
298 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
299 },
300 ],
301 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
302 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700303 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700304 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700305 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700306 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
307 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
308 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
309 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
310 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700311 },
312 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700313 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
314 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
315 { # Layer holds metadata specific to a layer of a Docker image.
316 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
317 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
318 },
319 ],
320 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
321 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
322 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
323 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
324 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
325 &quot;A String&quot;,
326 ],
327 },
328 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
329 },
330 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
331 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
332 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
333 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
334 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
335 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
336 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
337 {
338 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
339 },
340 ],
341 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
342 },
343 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
344 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
345 },
346 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
347 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
348 },
349 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
350 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
351 },
352 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
353 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
354 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
355 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
356 {
357 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
358 },
359 ],
360 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
361 },
362 },
363 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
364 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
365 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
366 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
367 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
368 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
369 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
370 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
371 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
372 },
373 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
374 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
375 },
376 ],
377 },
378 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
379 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
380 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
381 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
382 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
383 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
384 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
385 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
386 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
387 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
388 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
389 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
390 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
391 },
392 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
393 &quot;package&quot;: &quot;A String&quot;, # The package being described.
394 },
395 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
396 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
397 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
398 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
399 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
400 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
401 },
402 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
403 &quot;package&quot;: &quot;A String&quot;, # The package being described.
404 },
405 &quot;severityName&quot;: &quot;A String&quot;,
406 },
407 ],
408 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
409 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
410 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
411 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
412 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700413}
414
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700415 name: string, The name of the project. Should be of the form &quot;projects/{project_id}&quot;. @Deprecated
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700416 x__xgafv: string, V1 error format.
417 Allowed values
418 1 - v1 error format
419 2 - v2 error format
420
421Returns:
422 An object of the form:
423
424 { # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700425 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700426 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700427 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700428 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700429 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
430 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
431 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700432 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
433 &quot;A String&quot;,
434 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700435 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700436 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
437 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
438 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
439 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
440 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
441 },
442 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700443 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700444 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
445 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
446 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
447 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
448 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
449 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
450 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
451 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
452 &quot;A String&quot;,
453 ],
454 },
455 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
456 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
457 &quot;value&quot;: &quot;A String&quot;, # The hash value.
458 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
459 },
460 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
461 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
462 },
463 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700464 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700465 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
466 &quot;builtArtifacts&quot;: [ # Output of the build.
467 { # Artifact describes a build product.
468 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
469 &quot;A String&quot;,
470 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700471 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700472 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
473 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700474 },
475 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700476 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700477 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700478 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700480 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700481 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700482 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
483 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
484 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
485 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
486 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
487 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
488 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700489 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700490 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
491 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
492 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
493 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
494 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
495 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
496 },
497 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700498 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700499 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700500 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700501 },
502 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700503 },
504 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700505 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700506 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
507 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
508 &quot;name&quot;: &quot;A String&quot;, # The alias name.
509 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700510 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700511 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700512 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700513 &quot;labels&quot;: { # Labels with user defined metadata.
514 &quot;a_key&quot;: &quot;A String&quot;,
515 },
516 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
517 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
518 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -0700519 },
520 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700521 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
522 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700523 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
524 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
525 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
526 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
527 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
528 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
529 },
530 },
531 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700532 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700533 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700534 },
535 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
536 },
537 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700538 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700539 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
540 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
541 &quot;name&quot;: &quot;A String&quot;, # The alias name.
542 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700543 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700544 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
545 },
546 &quot;labels&quot;: { # Labels with user defined metadata.
547 &quot;a_key&quot;: &quot;A String&quot;,
548 },
549 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
550 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
551 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700552 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700553 },
554 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700555 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
556 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
557 &quot;fileHash&quot;: [ # Collection of file hashes.
558 { # Container message for hash values.
559 &quot;value&quot;: &quot;A String&quot;, # The hash value.
560 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
561 },
562 ],
563 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700564 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700565 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
566 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
567 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
568 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
569 },
570 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
571 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
572 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
573 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700574 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700575 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700576 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
577 &quot;a_key&quot;: &quot;A String&quot;,
578 },
579 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
580 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
581 &quot;commands&quot;: [ # Commands requested by the build.
582 { # Command describes a step performed as part of the build pipeline.
583 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
584 &quot;A String&quot;,
585 ],
586 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
587 &quot;A String&quot;,
588 ],
589 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
590 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
591 &quot;env&quot;: [ # Environment variables set before running this Command.
592 &quot;A String&quot;,
593 ],
594 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
595 },
596 ],
597 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
598 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700599 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700600 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700601 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700602 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
603 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
604 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
605 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
606 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700607 },
608 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700609 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
610 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
611 { # Layer holds metadata specific to a layer of a Docker image.
612 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
613 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
614 },
615 ],
616 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
617 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
618 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
619 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
620 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
621 &quot;A String&quot;,
622 ],
623 },
624 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
625 },
626 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
627 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
628 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
629 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
630 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
631 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
632 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
633 {
634 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
635 },
636 ],
637 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
638 },
639 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
640 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
641 },
642 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
643 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
644 },
645 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
646 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
647 },
648 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
649 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
650 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
651 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
652 {
653 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
654 },
655 ],
656 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
657 },
658 },
659 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
660 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
661 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
662 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
663 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
664 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
665 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
666 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
667 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
668 },
669 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
670 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
671 },
672 ],
673 },
674 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
675 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
676 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
677 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
678 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
679 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
680 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
681 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
682 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
683 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
684 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
685 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
686 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
687 },
688 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
689 &quot;package&quot;: &quot;A String&quot;, # The package being described.
690 },
691 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
692 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
693 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
694 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
695 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
696 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
697 },
698 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
699 &quot;package&quot;: &quot;A String&quot;, # The package being described.
700 },
701 &quot;severityName&quot;: &quot;A String&quot;,
702 },
703 ],
704 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
705 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
706 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
707 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
708 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700709 }</pre>
710</div>
711
712<div class="method">
713 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700714 <pre>Deletes the given `Occurrence` from the system. Use this when an `Occurrence` is no longer applicable for the given resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700715
716Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700717 name: string, The name of the occurrence in the form of &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700718 x__xgafv: string, V1 error format.
719 Allowed values
720 1 - v1 error format
721 2 - v2 error format
722
723Returns:
724 An object of the form:
725
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700726 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700727 }</pre>
728</div>
729
730<div class="method">
731 <code class="details" id="get">get(name, x__xgafv=None)</code>
732 <pre>Returns the requested `Occurrence`.
733
734Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700735 name: string, The name of the occurrence of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700736 x__xgafv: string, V1 error format.
737 Allowed values
738 1 - v1 error format
739 2 - v2 error format
740
741Returns:
742 An object of the form:
743
744 { # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700745 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700746 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700747 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700748 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700749 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
750 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
751 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700752 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
753 &quot;A String&quot;,
754 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700755 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700756 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
757 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
758 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
759 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
760 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
761 },
762 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700763 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700764 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
765 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
766 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
767 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
768 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
769 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
770 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
771 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
772 &quot;A String&quot;,
773 ],
774 },
775 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
776 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
777 &quot;value&quot;: &quot;A String&quot;, # The hash value.
778 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
779 },
780 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
781 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
782 },
783 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -0700784 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700785 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
786 &quot;builtArtifacts&quot;: [ # Output of the build.
787 { # Artifact describes a build product.
788 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
789 &quot;A String&quot;,
790 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700791 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700792 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
793 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700794 },
795 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700796 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700797 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700798 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700799 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700800 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -0700801 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700802 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
803 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
804 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
805 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
806 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
807 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
808 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700809 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700810 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
811 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
812 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
813 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
814 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
815 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
816 },
817 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700818 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700819 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700820 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700821 },
822 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700823 },
824 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700825 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700826 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
827 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
828 &quot;name&quot;: &quot;A String&quot;, # The alias name.
829 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700830 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700831 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700832 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700833 &quot;labels&quot;: { # Labels with user defined metadata.
834 &quot;a_key&quot;: &quot;A String&quot;,
835 },
836 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
837 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
838 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -0700839 },
840 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700841 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
842 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700843 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
844 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
845 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
846 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
847 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
848 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
849 },
850 },
851 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700852 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700853 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700854 },
855 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
856 },
857 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700858 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700859 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
860 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
861 &quot;name&quot;: &quot;A String&quot;, # The alias name.
862 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700863 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700864 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
865 },
866 &quot;labels&quot;: { # Labels with user defined metadata.
867 &quot;a_key&quot;: &quot;A String&quot;,
868 },
869 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
870 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
871 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700872 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700873 },
874 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700875 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
876 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
877 &quot;fileHash&quot;: [ # Collection of file hashes.
878 { # Container message for hash values.
879 &quot;value&quot;: &quot;A String&quot;, # The hash value.
880 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
881 },
882 ],
883 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700884 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700885 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
886 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
887 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
888 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
889 },
890 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
891 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
892 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
893 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700894 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700895 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700896 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
897 &quot;a_key&quot;: &quot;A String&quot;,
898 },
899 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
900 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
901 &quot;commands&quot;: [ # Commands requested by the build.
902 { # Command describes a step performed as part of the build pipeline.
903 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
904 &quot;A String&quot;,
905 ],
906 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
907 &quot;A String&quot;,
908 ],
909 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
910 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
911 &quot;env&quot;: [ # Environment variables set before running this Command.
912 &quot;A String&quot;,
913 ],
914 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
915 },
916 ],
917 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
918 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -0700919 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700920 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -0700921 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700922 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
923 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
924 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
925 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
926 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700927 },
928 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700929 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
930 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
931 { # Layer holds metadata specific to a layer of a Docker image.
932 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
933 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
934 },
935 ],
936 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
937 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
938 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
939 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
940 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
941 &quot;A String&quot;,
942 ],
943 },
944 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
945 },
946 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
947 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
948 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
949 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
950 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
951 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
952 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
953 {
954 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
955 },
956 ],
957 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
958 },
959 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
960 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
961 },
962 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
963 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
964 },
965 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
966 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
967 },
968 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
969 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
970 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
971 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
972 {
973 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
974 },
975 ],
976 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
977 },
978 },
979 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
980 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
981 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
982 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
983 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
984 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
985 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
986 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
987 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
988 },
989 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
990 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
991 },
992 ],
993 },
994 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
995 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
996 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
997 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
998 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
999 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1000 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1001 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1002 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1003 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1004 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1005 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1006 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1007 },
1008 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1009 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1010 },
1011 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1012 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1013 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1014 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1015 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1016 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1017 },
1018 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1019 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1020 },
1021 &quot;severityName&quot;: &quot;A String&quot;,
1022 },
1023 ],
1024 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1025 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1026 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1027 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1028 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001029 }</pre>
1030</div>
1031
1032<div class="method">
1033 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001034 <pre>Gets the access control policy for a note or an `Occurrence` resource. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a note or occurrence, respectively. Attempting to call this method on a resource without the required permission will result in a `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and projects/{PROJECT_ID}/notes/{NOTE_ID} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001035
1036Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001037 resource: string, REQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001038 body: object, The request body.
1039 The object takes the form of:
1040
1041{ # Request message for `GetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001042 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1043 &quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dan O'Mearadd494642020-05-01 07:42:23 -07001044 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001045 }
1046
1047 x__xgafv: string, V1 error format.
1048 Allowed values
1049 1 - v1 error format
1050 2 - v2 error format
1051
1052Returns:
1053 An object of the form:
1054
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001055 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
1056 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001057 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001058 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001059 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1060 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
1061 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1062 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
1063 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
1064 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001065 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07001066 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001067 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001068 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001069 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001070 },
1071 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001072 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001073 }</pre>
1074</div>
1075
1076<div class="method">
1077 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
1078 <pre>Gets the `Note` attached to the given `Occurrence`.
1079
1080Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001081 name: string, The name of the occurrence in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot; (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001082 x__xgafv: string, V1 error format.
1083 Allowed values
1084 1 - v1 error format
1085 2 - v2 error format
1086
1087Returns:
1088 An object of the form:
1089
1090 { # Provides a detailed description of a `Note`.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001091 &quot;baseImage&quot;: { # Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url. # A note describing a base image.
1092 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image.
1093 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
1094 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1095 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1096 &quot;A String&quot;,
1097 ],
1098 },
1099 &quot;resourceUrl&quot;: &quot;A String&quot;, # The resource_url for the resource representing the basis of associated occurrence images.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001100 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001101 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which kind of note is specified. This field can be used as a filter in list requests.
1102 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note, null if note does not expire.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001103 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `AttestationAuthority` for &quot;QA&quot; and one for &quot;build&quot;. This Note is intended to act strictly as a grouping mechanism for the attached Occurrences (Attestations). This grouping mechanism also provides a security boundary, since IAM ACLs gate the ability for a principle to attach an Occurrence to a given Note. It also provides a single point of lookup to find all attached Attestation Occurrences, even if they don&#x27;t all live in the same project. # A note describing an attestation role.
1104 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the AttestationAuthority. Because the name of a Note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should NOT be used to look up AttestationAuthorities in security sensitive contexts, such as when looking up Attestations to verify.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001105 &quot;humanReadableName&quot;: &quot;A String&quot;, # The human readable name of this Attestation Authority, for example &quot;qa&quot;.
1106 },
1107 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001108 &quot;relatedUrl&quot;: [ # URLs associated with this note
1109 { # Metadata for any related URL information
1110 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL
1111 &quot;url&quot;: &quot;A String&quot;, # Specific URL to associate with the note
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001112 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001113 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001114 &quot;discovery&quot;: { # A note that indicates a type of analysis a provider would perform. This note exists in a provider&#x27;s project. A `Discovery` occurrence is created in a consumer&#x27;s project at the start of analysis. The occurrence&#x27;s operation will indicate the status of the analysis. Absence of an occurrence linked to this note for a resource indicates that analysis hasn&#x27;t started. # A note describing a provider/analysis type.
1115 &quot;analysisKind&quot;: &quot;A String&quot;, # The kind of analysis that is handled by this discovery.
1116 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001117 &quot;name&quot;: &quot;A String&quot;, # The name of the note in the form &quot;projects/{provider_project_id}/notes/{NOTE_ID}&quot;
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001118 &quot;package&quot;: { # This represents a particular package that is distributed over various channels. e.g. glibc (aka libc6) is distributed by many, at various versions. # A note describing a package hosted by various package managers.
1119 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1120 { # This represents a particular channel of distribution for a given package. e.g. Debian&#x27;s jessie-backports dpkg mirror
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001121 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built
1122 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001123 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1124 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1125 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1126 &quot;latestVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The latest available version of this package in this distribution channel.
1127 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1128 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1129 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1130 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1131 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001132 },
1133 ],
1134 &quot;name&quot;: &quot;A String&quot;, # The name of the package.
1135 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001136 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this `Note`.
1137 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this note was created. This field can be used as a filter in list requests.
1138 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1139 &quot;resourceUri&quot;: [ # Resource URI for the artifact being deployed.
1140 &quot;A String&quot;,
1141 ],
1142 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001143 &quot;vulnerabilityType&quot;: { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note.
1144 &quot;details&quot;: [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in.
1145 { # Identifies all occurrences of this vulnerability in the package for a specific distro/location For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001146 &quot;isObsolete&quot;: True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to obsolete details.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001147 &quot;fixedLocation&quot;: { # The location of the vulnerability # The fix for this specific package version.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001148 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001149 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1150 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001151 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001152 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1153 },
1154 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001155 &quot;package&quot;: &quot;A String&quot;, # The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001156 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001157 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability manifests. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001158 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The min version of the package in which the vulnerability exists.
1159 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1160 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1161 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1162 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1163 },
1164 &quot;package&quot;: &quot;A String&quot;, # The name of the package where the vulnerability was found. This field can be used as a filter in list requests.
1165 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The max version of the package in which the vulnerability exists.
1166 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1167 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1168 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1169 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1170 },
1171 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1172 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1173 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001174 },
1175 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001176 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001177 &quot;cvssScore&quot;: 3.14, # The CVSS score for this Vulnerability.
1178 },
1179 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this `Note`.
1180 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this note was last updated. This field can be used as a filter in list requests.
1181 &quot;upgrade&quot;: { # An Upgrade Note represents a potential upgrade of a package to a given version. For each package version combination (i.e. bash 4.0, bash 4.1, bash 4.1.2), there will be a Upgrade Note. # A note describing an upgrade.
1182 &quot;distributions&quot;: [ # Metadata about the upgrade for each specific operating system.
1183 { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities.
1184 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1185 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1186 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
1187 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1188 &quot;A String&quot;,
1189 ],
1190 },
1191 ],
1192 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
1193 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in machine + human readable form.
1194 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1195 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1196 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1197 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1198 },
1199 },
1200 &quot;buildType&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in linked BuildDetails. # Build provenance type for a verifiable build.
1201 &quot;builderVersion&quot;: &quot;A String&quot;, # Version of the builder which produced this Note.
1202 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this `BuilderDetails`.
1203 &quot;publicKey&quot;: &quot;A String&quot;, # Public key of the builder which can be used to verify that the related findings are valid and unchanged. If `key_type` is empty, this defaults to PEM encoded public keys. This field may be empty if `key_id` references an external key. For Cloud Build based signatures, this is a PEM encoded public key. To verify the Cloud Build signature, place the contents of this field into a file (public.pem). The signature field is base64-decoded into its binary representation in signature.bin, and the provenance bytes from `BuildDetails` are base64-decoded into a binary representation in signed.bin. OpenSSL can then verify the signature: `openssl sha256 -verify public.pem -signature signature.bin signed.bin`
1204 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`
1205 &quot;signature&quot;: &quot;A String&quot;, # Signature of the related `BuildProvenance`, encoded in a base64 string.
1206 &quot;keyId&quot;: &quot;A String&quot;, # An Id for the key used to sign. This could be either an Id for the key stored in `public_key` (such as the Id or fingerprint for a PGP key, or the CN for a cert), or a reference to an external key (such as a reference to a key in Cloud Key Management Service).
1207 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001208 },
1209 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001210</div>
1211
1212<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001213 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001214 <pre>Gets a summary of the number and severity of occurrences.
1215
1216Args:
1217 parent: string, This contains the project Id for example: projects/{project_id} (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001218 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001219 x__xgafv: string, V1 error format.
1220 Allowed values
1221 1 - v1 error format
1222 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001223
1224Returns:
1225 An object of the form:
1226
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001227 { # A summary of how many vulnz occurrences there are per severity type. counts by groups, or if we should have different summary messages like this.
Bu Sun Kim65020912020-05-20 12:08:20 -07001228 &quot;counts&quot;: [ # A map of how many occurrences were found for each severity.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001229 { # The number of occurrences created for a specific severity.
Bu Sun Kim65020912020-05-20 12:08:20 -07001230 &quot;count&quot;: &quot;A String&quot;, # The number of occurrences with the severity.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001231 &quot;severity&quot;: &quot;A String&quot;, # The severity of the occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001232 },
1233 ],
1234 }</pre>
1235</div>
1236
1237<div class="method">
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001238 <code class="details" id="list">list(parent, kind=None, filter=None, pageSize=None, pageToken=None, name=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001239 <pre>Lists active `Occurrences` for a given project matching the filters.
1240
1241Args:
1242 parent: string, This contains the project Id for example: projects/{project_id}. (required)
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001243 kind: string, The kind of occurrences to filter on.
1244 Allowed values
1245 KIND_UNSPECIFIED - Unknown
1246 PACKAGE_VULNERABILITY - The note and occurrence represent a package vulnerability.
1247 BUILD_DETAILS - The note and occurrence assert build provenance.
1248 IMAGE_BASIS - This represents an image basis relationship.
1249 PACKAGE_MANAGER - This represents a package installed via a package manager.
1250 DEPLOYABLE - The note and occurrence track deployment events.
1251 DISCOVERY - The note and occurrence track the initial discovery status of a resource.
1252 ATTESTATION_AUTHORITY - This represents a logical &quot;role&quot; that can attest to artifacts.
1253 UPGRADE - This represents an available software upgrade.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001254 filter: string, The filter expression.
1255 pageSize: integer, Number of occurrences to return in the list.
1256 pageToken: string, Token to provide to skip to a particular spot in the list.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001257 name: string, The name field contains the project Id. For example: &quot;projects/{project_id} @Deprecated
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001258 x__xgafv: string, V1 error format.
1259 Allowed values
1260 1 - v1 error format
1261 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001262
1263Returns:
1264 An object of the form:
1265
1266 { # Response including listed active occurrences.
Bu Sun Kim65020912020-05-20 12:08:20 -07001267 &quot;occurrences&quot;: [ # The occurrences requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001268 { # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001269 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001270 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001271 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001272 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001273 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1274 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1275 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001276 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1277 &quot;A String&quot;,
1278 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001279 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001280 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1281 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1282 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1283 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1284 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1285 },
1286 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001287 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001288 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1289 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1290 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1291 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1292 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1293 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1294 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1295 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1296 &quot;A String&quot;,
1297 ],
1298 },
1299 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1300 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1301 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1302 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1303 },
1304 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1305 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1306 },
1307 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001308 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001309 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
1310 &quot;builtArtifacts&quot;: [ # Output of the build.
1311 { # Artifact describes a build product.
1312 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1313 &quot;A String&quot;,
1314 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001315 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001316 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1317 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001318 },
1319 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001320 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001321 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001322 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001323 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001324 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -07001325 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001326 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1327 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1328 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1329 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1330 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1331 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1332 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001333 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001334 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1335 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1336 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1337 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1338 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1339 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1340 },
1341 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001342 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001343 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001344 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001345 },
1346 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001347 },
1348 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001349 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001350 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1351 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1352 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1353 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001354 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001355 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001356 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001357 &quot;labels&quot;: { # Labels with user defined metadata.
1358 &quot;a_key&quot;: &quot;A String&quot;,
1359 },
1360 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1361 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1362 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001363 },
1364 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001365 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1366 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001367 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1368 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1369 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1370 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1371 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1372 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1373 },
1374 },
1375 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001376 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001377 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001378 },
1379 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1380 },
1381 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001382 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001383 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1384 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1385 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1386 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001387 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001388 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1389 },
1390 &quot;labels&quot;: { # Labels with user defined metadata.
1391 &quot;a_key&quot;: &quot;A String&quot;,
1392 },
1393 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1394 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1395 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001396 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001397 },
1398 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001399 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
1400 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1401 &quot;fileHash&quot;: [ # Collection of file hashes.
1402 { # Container message for hash values.
1403 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1404 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1405 },
1406 ],
1407 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001408 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001409 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1410 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1411 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1412 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1413 },
1414 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
1415 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1416 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1417 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001418 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001419 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001420 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1421 &quot;a_key&quot;: &quot;A String&quot;,
1422 },
1423 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1424 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1425 &quot;commands&quot;: [ # Commands requested by the build.
1426 { # Command describes a step performed as part of the build pipeline.
1427 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1428 &quot;A String&quot;,
1429 ],
1430 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1431 &quot;A String&quot;,
1432 ],
1433 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1434 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1435 &quot;env&quot;: [ # Environment variables set before running this Command.
1436 &quot;A String&quot;,
1437 ],
1438 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1439 },
1440 ],
1441 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1442 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001443 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001444 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001445 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001446 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1447 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1448 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1449 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1450 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001451 },
1452 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001453 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1454 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1455 { # Layer holds metadata specific to a layer of a Docker image.
1456 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1457 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1458 },
1459 ],
1460 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1461 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1462 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
1463 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1464 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1465 &quot;A String&quot;,
1466 ],
1467 },
1468 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1469 },
1470 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1471 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1472 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1473 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
1474 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1475 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1476 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1477 {
1478 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1479 },
1480 ],
1481 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1482 },
1483 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1484 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1485 },
1486 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1487 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1488 },
1489 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1490 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1491 },
1492 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1493 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1494 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1495 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1496 {
1497 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1498 },
1499 ],
1500 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1501 },
1502 },
1503 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1504 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1505 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1506 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1507 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1508 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1509 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1510 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1511 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1512 },
1513 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1514 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1515 },
1516 ],
1517 },
1518 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
1519 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
1520 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1521 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1522 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1523 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1524 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1525 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1526 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1527 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1528 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1529 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1530 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1531 },
1532 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1533 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1534 },
1535 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1536 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1537 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1538 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1539 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1540 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1541 },
1542 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1543 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1544 },
1545 &quot;severityName&quot;: &quot;A String&quot;,
1546 },
1547 ],
1548 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1549 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1550 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1551 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1552 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001553 },
1554 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001555 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the list response. It should be used as `page_token` for the following request. An empty value means no more results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001556 }</pre>
1557</div>
1558
1559<div class="method">
1560 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
1561 <pre>Retrieves the next page of results.
1562
1563Args:
1564 previous_request: The request for the previous page. (required)
1565 previous_response: The response from the request for the previous page. (required)
1566
1567Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07001568 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001569 page. Returns None if there are no more items in the collection.
1570 </pre>
1571</div>
1572
1573<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07001574 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001575 <pre>Updates an existing occurrence.
1576
1577Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001578 name: string, The name of the occurrence. Should be of the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07001579 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001580 The object takes the form of:
1581
1582{ # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001583 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001584 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001585 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001586 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001587 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1588 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1589 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001590 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1591 &quot;A String&quot;,
1592 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001593 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001594 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1595 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1596 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1597 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1598 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1599 },
1600 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001601 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001602 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1603 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1604 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1605 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1606 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1607 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1608 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1609 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1610 &quot;A String&quot;,
1611 ],
1612 },
1613 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1614 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1615 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1616 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1617 },
1618 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1619 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1620 },
1621 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001622 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001623 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
1624 &quot;builtArtifacts&quot;: [ # Output of the build.
1625 { # Artifact describes a build product.
1626 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1627 &quot;A String&quot;,
1628 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001629 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001630 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1631 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001632 },
1633 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001634 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001635 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001636 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001637 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001638 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -07001639 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001640 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1641 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1642 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1643 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1644 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1645 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1646 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001647 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001648 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1649 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1650 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1651 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1652 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1653 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1654 },
1655 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001656 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001657 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001658 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001659 },
1660 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001661 },
1662 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001663 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001664 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1665 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1666 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1667 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001668 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001669 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001670 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001671 &quot;labels&quot;: { # Labels with user defined metadata.
1672 &quot;a_key&quot;: &quot;A String&quot;,
1673 },
1674 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1675 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1676 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001677 },
1678 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001679 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1680 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001681 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1682 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1683 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1684 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1685 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1686 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1687 },
1688 },
1689 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001690 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001691 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001692 },
1693 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1694 },
1695 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001696 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001697 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1698 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1699 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1700 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001701 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001702 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1703 },
1704 &quot;labels&quot;: { # Labels with user defined metadata.
1705 &quot;a_key&quot;: &quot;A String&quot;,
1706 },
1707 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1708 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1709 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001710 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001711 },
1712 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001713 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
1714 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
1715 &quot;fileHash&quot;: [ # Collection of file hashes.
1716 { # Container message for hash values.
1717 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1718 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1719 },
1720 ],
1721 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001722 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001723 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
1724 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1725 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1726 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
1727 },
1728 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
1729 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
1730 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
1731 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001732 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07001733 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001734 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1735 &quot;a_key&quot;: &quot;A String&quot;,
1736 },
1737 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1738 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
1739 &quot;commands&quot;: [ # Commands requested by the build.
1740 { # Command describes a step performed as part of the build pipeline.
1741 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
1742 &quot;A String&quot;,
1743 ],
1744 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
1745 &quot;A String&quot;,
1746 ],
1747 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
1748 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
1749 &quot;env&quot;: [ # Environment variables set before running this Command.
1750 &quot;A String&quot;,
1751 ],
1752 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
1753 },
1754 ],
1755 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
1756 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -07001757 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001758 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07001759 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001760 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
1761 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
1762 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
1763 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
1764 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001765 },
1766 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001767 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
1768 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
1769 { # Layer holds metadata specific to a layer of a Docker image.
1770 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
1771 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1772 },
1773 ],
1774 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1775 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
1776 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
1777 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
1778 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
1779 &quot;A String&quot;,
1780 ],
1781 },
1782 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1783 },
1784 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
1785 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
1786 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
1787 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
1788 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
1789 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1790 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1791 {
1792 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1793 },
1794 ],
1795 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1796 },
1797 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
1798 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1799 },
1800 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
1801 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1802 },
1803 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
1804 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
1805 },
1806 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1807 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
1808 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
1809 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1810 {
1811 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1812 },
1813 ],
1814 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
1815 },
1816 },
1817 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
1818 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1819 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
1820 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
1821 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
1822 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1823 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1824 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1825 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1826 },
1827 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1828 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1829 },
1830 ],
1831 },
1832 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
1833 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
1834 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
1835 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
1836 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
1837 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
1838 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
1839 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
1840 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1841 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1842 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1843 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1844 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1845 },
1846 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1847 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1848 },
1849 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
1850 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
1851 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1852 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1853 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1854 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1855 },
1856 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
1857 &quot;package&quot;: &quot;A String&quot;, # The package being described.
1858 },
1859 &quot;severityName&quot;: &quot;A String&quot;,
1860 },
1861 ],
1862 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
1863 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
1864 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
1865 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1866 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001867}
1868
1869 updateMask: string, The fields to update.
1870 x__xgafv: string, V1 error format.
1871 Allowed values
1872 1 - v1 error format
1873 2 - v2 error format
1874
1875Returns:
1876 An object of the form:
1877
1878 { # `Occurrence` includes information about analysis occurrences for an image.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001879 &quot;kind&quot;: &quot;A String&quot;, # Output only. This explicitly denotes which of the `Occurrence` details are specified. This field can be used as a filter in list requests.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001880 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001881 &quot;upgrade&quot;: { # An Upgrade Occurrence represents that a specific resource_url could install a specific upgrade. This presence is supplied via local sources (i.e. it is present in the mirror and the running system has noticed its availability). # Describes an upgrade.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001882 &quot;distribution&quot;: { # The Upgrade Distribution represents metadata about the Upgrade for each operating system (CPE). Some distributions have additional metadata around updates, classifying them into various categories and severities. # Metadata about the upgrade for available for the specific operating system for the resource_url. This allows efficient filtering, as well as making it easier to use the occurrence.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001883 &quot;classification&quot;: &quot;A String&quot;, # The operating system classification of this Upgrade, as specified by the upstream operating system upgrade feed.
1884 &quot;cpeUri&quot;: &quot;A String&quot;, # Required - The specific operating system this metadata applies to. See https://cpe.mitre.org/specification/.
1885 &quot;severity&quot;: &quot;A String&quot;, # The severity as specified by the upstream operating system.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001886 &quot;cve&quot;: [ # The cve that would be resolved by this upgrade.
1887 &quot;A String&quot;,
1888 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001889 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001890 &quot;parsedVersion&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # Required - The version of the package in a machine + human readable form.
1891 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1892 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
1893 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
1894 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1895 },
1896 &quot;package&quot;: &quot;A String&quot;, # Required - The package this Upgrade is for.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001897 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001898 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Describes the deployment of an artifact on a runtime.
1899 &quot;deployTime&quot;: &quot;A String&quot;, # Beginning of the lifetime of this deployment.
1900 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1901 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1902 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1903 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1904 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1905 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1906 &quot;A String&quot;,
1907 ],
1908 },
1909 &quot;resource&quot;: { # Resource is an entity that can have metadata. E.g., a Docker image. # The resource for which the `Occurrence` applies.
1910 &quot;contentHash&quot;: { # Container message for hash values. # The hash of the resource content. E.g., the Docker digest.
1911 &quot;value&quot;: &quot;A String&quot;, # The hash value.
1912 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
1913 },
1914 &quot;name&quot;: &quot;A String&quot;, # The name of the resource. E.g., the name of a Docker image - &quot;Debian&quot;.
1915 &quot;uri&quot;: &quot;A String&quot;, # The unique URI of the resource. E.g., &quot;https://gcr.io/project/image@sha256:foo&quot; for a Docker image.
1916 },
1917 &quot;resourceUrl&quot;: &quot;A String&quot;, # The unique URL of the image or the container for which the `Occurrence` applies. For example, https://gcr.io/project/image@sha256:foo This field can be used as a filter in list requests.
Bu Sun Kim65020912020-05-20 12:08:20 -07001918 &quot;buildDetails&quot;: { # Message encapsulating build provenance details. # Build details for a verifiable build.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001919 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance
1920 &quot;builtArtifacts&quot;: [ # Output of the build.
1921 { # Artifact describes a build product.
1922 &quot;names&quot;: [ # Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image.
1923 &quot;A String&quot;,
1924 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001925 &quot;id&quot;: &quot;A String&quot;, # Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001926 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1927 &quot;name&quot;: &quot;A String&quot;, # Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools.containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001928 },
1929 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001930 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001931 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001932 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001933 &quot;creator&quot;: &quot;A String&quot;, # E-mail address of the user who initiated this build. Note that this was the user&#x27;s e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001934 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001936 &quot;repoSource&quot;: { # RepoSource describes the location of the source in a Google Cloud Source Repository. # If provided, get source from this location in a Cloud Repo.
1937 &quot;commitSha&quot;: &quot;A String&quot;, # Explicit commit SHA to build.
1938 &quot;repoName&quot;: &quot;A String&quot;, # Name of the repo.
1939 &quot;branchName&quot;: &quot;A String&quot;, # Name of the branch to build.
1940 &quot;tagName&quot;: &quot;A String&quot;, # Name of the tag to build.
1941 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project that owns the repo.
1942 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001943 &quot;context&quot;: { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. # If provided, the source code used for the build came from this location.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001944 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1945 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1946 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1947 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1948 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1949 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1950 },
1951 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001952 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001953 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001954 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001955 },
1956 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001957 },
1958 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001959 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001960 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1961 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1962 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1963 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001964 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001965 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001966 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001967 &quot;labels&quot;: { # Labels with user defined metadata.
1968 &quot;a_key&quot;: &quot;A String&quot;,
1969 },
1970 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
1971 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1972 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Bu Sun Kim65020912020-05-20 12:08:20 -07001973 },
1974 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001975 &quot;additionalContexts&quot;: [ # If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field.
1976 { # A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001977 &quot;cloudRepo&quot;: { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo.
1978 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1979 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1980 &quot;projectRepoId&quot;: { # Selects a repo using a Google Cloud Platform project ID (e.g., winged-cargo-31) and a repo name within that project. # A combination of a project ID and a repo name.
1981 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1982 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1983 },
1984 },
1985 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001986 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001987 &quot;name&quot;: &quot;A String&quot;, # The alias name.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001988 },
1989 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1990 },
1991 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001992 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001993 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1994 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1995 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1996 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001997 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001998 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1999 },
2000 &quot;labels&quot;: { # Labels with user defined metadata.
2001 &quot;a_key&quot;: &quot;A String&quot;,
2002 },
2003 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
2004 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2005 &quot;revisionId&quot;: &quot;A String&quot;, # Required. Git commit hash.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002006 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002007 },
2008 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002009 &quot;fileHashes&quot;: { # Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile (.tar.gz), the FileHash will be for the single path to that file.
2010 &quot;a_key&quot;: { # Container message for hashes of byte content of files, used in Source messages to verify integrity of source input to the build.
2011 &quot;fileHash&quot;: [ # Collection of file hashes.
2012 { # Container message for hash values.
2013 &quot;value&quot;: &quot;A String&quot;, # The hash value.
2014 &quot;type&quot;: &quot;A String&quot;, # The type of hash that was performed.
2015 },
2016 ],
2017 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002018 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002019 &quot;artifactStorageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, the input binary artifacts for the build came from this location.
2020 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2021 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2022 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
2023 },
2024 &quot;storageSource&quot;: { # StorageSource describes the location of the source in an archive file in Google Cloud Storage. # If provided, get the source from this location in in Google Cloud Storage.
2025 &quot;object&quot;: &quot;A String&quot;, # Google Cloud Storage object containing source.
2026 &quot;bucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket containing source (see [Bucket Name Requirements] (https://cloud.google.com/storage/docs/bucket-naming#requirements)).
2027 &quot;generation&quot;: &quot;A String&quot;, # Google Cloud Storage generation for the object.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002028 },
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -07002029 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002030 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2031 &quot;a_key&quot;: &quot;A String&quot;,
2032 },
2033 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2034 &quot;finishTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
2035 &quot;commands&quot;: [ # Commands requested by the build.
2036 { # Command describes a step performed as part of the build pipeline.
2037 &quot;waitFor&quot;: [ # The ID(s) of the Command(s) that this Command depends on.
2038 &quot;A String&quot;,
2039 ],
2040 &quot;args&quot;: [ # Command-line arguments used when executing this Command.
2041 &quot;A String&quot;,
2042 ],
2043 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this Command, used in wait_for to reference this Command as a dependency.
2044 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this Command.
2045 &quot;env&quot;: [ # Environment variables set before running this Command.
2046 &quot;A String&quot;,
2047 ],
2048 &quot;name&quot;: &quot;A String&quot;, # Name of the command, as presented on the command line, or if the command is packaged as a Docker container, as presented to `docker pull`.
2049 },
2050 ],
2051 &quot;logsBucket&quot;: &quot;A String&quot;, # Google Cloud Storage bucket where logs were written.
2052 &quot;id&quot;: &quot;A String&quot;, # Unique identifier of the build.
Bu Sun Kim65020912020-05-20 12:08:20 -07002053 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002054 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the `BuildSignature` in the corresponding Result. After verifying the signature, `provenance_bytes` can be unmarshalled and compared to the provenance to confirm that it is unchanged. A base64-encoded string representation of the provenance bytes is used for the signature in order to interoperate with openssl which expects this format for signature verification. The serialized form is captured both to avoid ambiguity in how the provenance is marshalled to json as well to prevent incompatibilities with future changes.
Bu Sun Kim65020912020-05-20 12:08:20 -07002055 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002056 &quot;attestation&quot;: { # Occurrence that represents a single &quot;attestation&quot;. The authenticity of an Attestation can be verified using the attached signature. If the verifier trusts the public key of the signer, then verifying the signature is sufficient to establish trust. In this circumstance, the AttestationAuthority to which this Attestation is attached is primarily useful for look-up (how to find this Attestation if you already know the Authority and artifact to be verified) and intent (which authority was this attestation intended to sign for). # Describes an attestation of an artifact.
2057 &quot;pgpSignedAttestation&quot;: { # An attestation wrapper with a PGP-compatible signature. This message only supports `ATTACHED` signatures, where the payload that is signed is included alongside the signature itself in the same file.
2058 &quot;signature&quot;: &quot;A String&quot;, # The raw content of the signature, as output by GNU Privacy Guard (GPG) or equivalent. Since this message only supports attached signatures, the payload that was signed must be attached. While the signature format supported is dependent on the verification implementation, currently only ASCII-armored (`--armor` to gpg), non-clearsigned (`--sign` rather than `--clearsign` to gpg) are supported. Concretely, `gpg --sign --armor --output=signature.gpg payload.json` will create the signature content expected in this field in `signature.gpg` for the `payload.json` attestation payload.
2059 &quot;pgpKeyId&quot;: &quot;A String&quot;, # The cryptographic fingerprint of the key used to generate the signature, as output by, e.g. `gpg --list-keys`. This should be the version 4, full 160-bit fingerprint, expressed as a 40 character hexadecimal string. See https://tools.ietf.org/html/rfc4880#section-12.2 for details. Implementations may choose to acknowledge &quot;LONG&quot;, &quot;SHORT&quot;, or other abbreviated key IDs, but only the full fingerprint is guaranteed to work. In gpg, the full fingerprint can be retrieved from the `fpr` field returned when calling --list-keys with --with-colons. For example: ``` gpg --with-colons --with-fingerprint --force-v4-certs \ --list-keys attester@example.com tru::1:1513631572:0:3:1:5 pub:...... fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB: ``` Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
2060 &quot;contentType&quot;: &quot;A String&quot;, # Type (for example schema) of the attestation payload that was signed. The verifier must ensure that the provided type is one that the verifier supports, and that the attestation payload is a valid instantiation of that type (for example by validating a JSON schema).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002061 },
2062 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002063 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Describes how this resource derives from the basis in the associated note.
2064 &quot;layerInfo&quot;: [ # This contains layer-specific metadata, if populated it has length &quot;distance&quot; and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer.
2065 { # Layer holds metadata specific to a layer of a Docker image.
2066 &quot;directive&quot;: &quot;A String&quot;, # The recovered Dockerfile directive used to construct this layer.
2067 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2068 },
2069 ],
2070 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2071 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the derived image.
2072 &quot;v2Name&quot;: &quot;A String&quot;, # Output only. The name of the image&#x27;s v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + &quot; &quot; + v2_name[N+1]) Only the name of the final blob is kept. This field can be used as a filter in list requests.
2073 &quot;v1Name&quot;: &quot;A String&quot;, # The layer-id of the final layer in the Docker image&#x27;s v1 representation. This field can be used as a filter in list requests.
2074 &quot;v2Blob&quot;: [ # The ordered list of v2 blobs that represent a given image.
2075 &quot;A String&quot;,
2076 ],
2077 },
2078 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2079 },
2080 &quot;discovered&quot;: { # Provides information about the scan status of a discovered resource. # Describes the initial scan status for this resource.
2081 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
2082 &quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
2083 &quot;operation&quot;: { # This resource represents a long-running operation that is the result of a network API call. # Output only. An operation that indicates the status of the current scan. This field is deprecated, do not use.
2084 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
2085 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2086 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2087 {
2088 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2089 },
2090 ],
2091 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2092 },
2093 &quot;response&quot;: { # The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
2094 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2095 },
2096 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
2097 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2098 },
2099 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
2100 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
2101 },
2102 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2103 &quot;analysisStatusError&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # When an error is encountered this will contain a LocalizedMessage under details to show to the user. The LocalizedMessage output only and populated by the API.
2104 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
2105 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2106 {
2107 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2108 },
2109 ],
2110 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
2111 },
2112 },
2113 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Describes the installation of a package on the linked resource.
2114 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2115 &quot;location&quot;: [ # All of the places within the filesystem versions of this package have been found.
2116 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. e.g. glibc was found in /var/lib/dpkg/status
2117 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version installed at this location.
2118 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2119 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2120 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2121 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2122 },
2123 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2124 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2125 },
2126 ],
2127 },
2128 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the `Occurrence` in the form &quot;projects/{project_id}/occurrences/{OCCURRENCE_ID}&quot;
2129 &quot;noteName&quot;: &quot;A String&quot;, # An analysis note associated with this image, in the form &quot;providers/{provider_id}/notes/{NOTE_ID}&quot; This field can be used as a filter in list requests.
2130 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the `Note`
2131 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this `Occurrence` was last updated.
2132 &quot;vulnerabilityDetails&quot;: { # Used by Occurrence to point to where the vulnerability exists and how to fix it. # Details of a security vulnerability note.
2133 &quot;packageIssue&quot;: [ # The set of affected locations and their fixes (if available) within the associated resource.
2134 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
2135 &quot;fixedLocation&quot;: { # The location of the vulnerability # The location of the available fix for vulnerability.
2136 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2137 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2138 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2139 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2140 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2141 },
2142 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2143 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2144 },
2145 &quot;affectedLocation&quot;: { # The location of the vulnerability # The location of the vulnerability.
2146 &quot;version&quot;: { # Version contains structured information about the version of the package. For a discussion of this in Debian/Ubuntu: http://serverfault.com/questions/604541/debian-packages-version-convention For a discussion of this in Redhat/Fedora/Centos: http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ # The version of the package being described. This field can be used as a filter in list requests.
2147 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2148 &quot;kind&quot;: &quot;A String&quot;, # Distinguish between sentinel MIN/MAX versions and normal versions. If kind is not NORMAL, then the other fields are ignored.
2149 &quot;name&quot;: &quot;A String&quot;, # The main part of the version name.
2150 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2151 },
2152 &quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. This field can be used as a filter in list requests.
2153 &quot;package&quot;: &quot;A String&quot;, # The package being described.
2154 },
2155 &quot;severityName&quot;: &quot;A String&quot;,
2156 },
2157 ],
2158 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
2159 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when that is available and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
2160 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
2161 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2162 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002163 }</pre>
2164</div>
2165
2166<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002167 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002168 <pre>Sets the access control policy on the specified `Note` or `Occurrence`. Requires `containeranalysis.notes.setIamPolicy` or `containeranalysis.occurrences.setIamPolicy` permission if the resource is a `Note` or an `Occurrence`, respectively. Attempting to call this method without these permissions will result in a ` `PERMISSION_DENIED` error. Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences and projects/{projectid}/notes/{noteid} for notes
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002169
2170Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002171 resource: string, REQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002172 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002173 The object takes the form of:
2174
2175{ # Request message for `SetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002176 &quot;policy&quot;: { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them.
2177 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002178 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002179 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002180 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2181 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
2182 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2183 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
2184 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
2185 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002186 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002187 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002188 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002189 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002190 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002191 },
2192 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002193 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002194 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002195 }
2196
2197 x__xgafv: string, V1 error format.
2198 Allowed values
2199 1 - v1 error format
2200 2 - v2 error format
2201
2202Returns:
2203 An object of the form:
2204
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002205 { # An Identity and Access Management (IAM) policy, which specifies access controls for Google Cloud resources. A `Policy` is a collection of `bindings`. A `binding` binds one or more `members` to a single `role`. Members can be user accounts, service accounts, Google groups, and domains (such as G Suite). A `role` is a named list of permissions; each `role` can be an IAM predefined role or a user-created custom role. For some types of Google Cloud resources, a `binding` can also specify a `condition`, which is a logical expression that allows access to a resource only if the expression evaluates to `true`. A condition can add constraints based on attributes of the request, the resource, or both. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). **JSON example:** { &quot;bindings&quot;: [ { &quot;role&quot;: &quot;roles/resourcemanager.organizationAdmin&quot;, &quot;members&quot;: [ &quot;user:mike@example.com&quot;, &quot;group:admins@example.com&quot;, &quot;domain:google.com&quot;, &quot;serviceAccount:my-project-id@appspot.gserviceaccount.com&quot; ] }, { &quot;role&quot;: &quot;roles/resourcemanager.organizationViewer&quot;, &quot;members&quot;: [ &quot;user:eve@example.com&quot; ], &quot;condition&quot;: { &quot;title&quot;: &quot;expirable access&quot;, &quot;description&quot;: &quot;Does not grant access after Sep 2020&quot;, &quot;expression&quot;: &quot;request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;)&quot;, } } ], &quot;etag&quot;: &quot;BwWWja0YfJA=&quot;, &quot;version&quot;: 3 } **YAML example:** bindings: - members: - user:mike@example.com - group:admins@example.com - domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.com role: roles/resourcemanager.organizationViewer condition: title: expirable access description: Does not grant access after Sep 2020 expression: request.time &lt; timestamp(&#x27;2020-10-01T00:00:00.000Z&#x27;) - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/).
2206 &quot;version&quot;: 42, # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are rejected. Any operation that affects conditional role bindings must specify version `3`. This requirement applies to the following operations: * Getting a policy that includes a conditional role binding * Adding a conditional role binding to a policy * Changing a conditional role binding in a policy * Removing any role binding, with or without a condition, from a policy that includes conditions **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost. If a policy does not include any conditions, operations on that policy may specify any valid version or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002207 &quot;bindings&quot;: [ # Associates a list of `members` to a `role`. Optionally, may specify a `condition` that determines how and when the `bindings` are applied. Each of the `bindings` must contain at least one member.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002208 { # Associates `members` with a `role`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002209 &quot;condition&quot;: { # Represents a textual expression in the Common Expression Language (CEL) syntax. CEL is a C-like expression language. The syntax and semantics of CEL are documented at https://github.com/google/cel-spec. Example (Comparison): title: &quot;Summary size limit&quot; description: &quot;Determines if a summary is less than 100 chars&quot; expression: &quot;document.summary.size() &lt; 100&quot; Example (Equality): title: &quot;Requestor is owner&quot; description: &quot;Determines if requestor is the document owner&quot; expression: &quot;document.owner == request.auth.claims.email&quot; Example (Logic): title: &quot;Public documents&quot; description: &quot;Determine whether the document should be publicly visible&quot; expression: &quot;document.type != &#x27;private&#x27; &amp;&amp; document.type != &#x27;internal&#x27;&quot; Example (Data Manipulation): title: &quot;Notification string&quot; description: &quot;Create a notification string with a timestamp.&quot; expression: &quot;&#x27;New message received at &#x27; + string(document.create_time)&quot; The exact variables and functions that may be referenced within an expression are determined by the service that evaluates it. See the service documentation for additional information. # The condition that is associated with this binding. If the condition evaluates to `true`, then this binding applies to the current request. If the condition evaluates to `false`, then this binding does not apply to the current request. However, a different role binding might grant the same role to one or more of the members in this binding. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
2210 &quot;location&quot;: &quot;A String&quot;, # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file.
2211 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2212 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI.
2213 &quot;title&quot;: &quot;A String&quot;, # Optional. Title for the expression, i.e. a short string describing its purpose. This can be used e.g. in UIs which allow to enter the expression.
2214 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002215 &quot;members&quot;: [ # Specifies the identities requesting access for a Cloud Platform resource. `members` can have the following values: * `allUsers`: A special identifier that represents anyone who is on the internet; with or without a Google account. * `allAuthenticatedUsers`: A special identifier that represents anyone who is authenticated with a Google account or a service account. * `user:{emailid}`: An email address that represents a specific Google account. For example, `alice@example.com` . * `serviceAccount:{emailid}`: An email address that represents a service account. For example, `my-other-app@appspot.gserviceaccount.com`. * `group:{emailid}`: An email address that represents a Google group. For example, `admins@example.com`. * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a user that has been recently deleted. For example, `alice@example.com?uid=123456789012345678901`. If the user is recovered, this value reverts to `user:{emailid}` and the recovered user retains the role in the binding. * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a service account that has been recently deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. If the service account is undeleted, this value reverts to `serviceAccount:{emailid}` and the undeleted service account retains the role in the binding. * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique identifier) representing a Google group that has been recently deleted. For example, `admins@example.com?uid=123456789012345678901`. If the group is recovered, this value reverts to `group:{emailid}` and the recovered group retains the role in the binding. * `domain:{domain}`: The G Suite domain (primary) that represents all the users of that domain. For example, `google.com` or `example.com`.
Bu Sun Kim65020912020-05-20 12:08:20 -07002216 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002217 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002218 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002219 &quot;bindingId&quot;: &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002220 },
2221 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002222 &quot;etag&quot;: &quot;A String&quot;, # `etag` is used for optimistic concurrency control as a way to help prevent simultaneous updates of a policy from overwriting each other. It is strongly suggested that systems make use of the `etag` in the read-modify-write cycle to perform policy updates in order to avoid race conditions: An `etag` is returned in the response to `getIamPolicy`, and systems are expected to put that etag in the request to `setIamPolicy` to ensure that their change will be applied to the same version of the policy. **Important:** If you use IAM Conditions, you must include the `etag` field whenever you call `setIamPolicy`. If you omit this field, then IAM allows you to overwrite a version `3` policy with a version `1` policy, and all of the conditions in the version `3` policy are lost.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002223 }</pre>
2224</div>
2225
2226<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002227 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002228 <pre>Returns the permissions that a caller has on the specified note or occurrence resource. Requires list permission on the project (for example, &quot;storage.objects.list&quot; on the containing bucket for testing permission of an object). Attempting to call this method on a non-existent resource will result in a `NOT_FOUND` error if the user has list permission on the project, or a `PERMISSION_DENIED` error otherwise. The resource takes the following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes`
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002229
2230Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002231 resource: string, REQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002232 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002233 The object takes the form of:
2234
2235{ # Request message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002236 &quot;permissions&quot;: [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as &#x27;*&#x27; or &#x27;storage.*&#x27;) are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
Bu Sun Kim65020912020-05-20 12:08:20 -07002237 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002238 ],
2239 }
2240
2241 x__xgafv: string, V1 error format.
2242 Allowed values
2243 1 - v1 error format
2244 2 - v2 error format
2245
2246Returns:
2247 An object of the form:
2248
2249 { # Response message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002250 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002251 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002252 ],
2253 }</pre>
2254</div>
2255
2256</body></html>