blob: 48224e898e6dcf100bde9afc033a3b730746c8e6 [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_v1beta1.html">Container Analysis API</a> . <a href="containeranalysis_v1beta1.projects.html">projects</a> . <a href="containeranalysis_v1beta1.projects.occurrences.html">occurrences</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070078 <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<p class="firstline">Creates new occurrences in batch.</p>
80<p class="toc_element">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070081 <code><a href="#close">close()</a></code></p>
82<p class="firstline">Close httplib2 connections.</p>
83<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -070084 <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070085<p class="firstline">Creates a new occurrence.</p>
86<p class="toc_element">
87 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088<p class="firstline">Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070089<p class="toc_element">
90 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
91<p class="firstline">Gets the specified occurrence.</p>
92<p class="toc_element">
93 <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070094<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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070095<p class="toc_element">
96 <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070097<p class="firstline">Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070098<p class="toc_element">
Bu Sun Kim65020912020-05-20 12:08:20 -070099 <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700100<p class="firstline">Gets a summary of the number and severity of occurrences.</p>
101<p class="toc_element">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800102 <code><a href="#list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700103<p class="firstline">Lists occurrences for the specified project.</p>
104<p class="toc_element">
105 <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
106<p class="firstline">Retrieves the next page of results.</p>
107<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700109<p class="firstline">Updates the specified occurrence.</p>
110<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700111 <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700112<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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700113<p class="toc_element">
Dan O'Mearadd494642020-05-01 07:42:23 -0700114 <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700115<p class="firstline">Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.</p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700116<h3>Method Details</h3>
117<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700118 <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700119 <pre>Creates new occurrences in batch.
120
121Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700122 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrences are to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700123 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700124 The object takes the form of:
125
126{ # Request to create occurrences in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700127 &quot;occurrences&quot;: [ # Required. The occurrences to create. Max allowed length is 1000.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700128 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800129 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
130 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
131 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
132 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
133 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
134 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
135 &quot;A String&quot;,
136 ],
137 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
138 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
139 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
140 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
141 },
142 },
143 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700144 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700145 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
146 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800147 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800148 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800149 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800150 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
151 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800152 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
153 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800154 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700155 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700156 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700157 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800158 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800159 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800160 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800161 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
162 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800163 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
164 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800165 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700166 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700167 },
168 },
169 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800170 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
171 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
172 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
173 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800174 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800175 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700176 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
177 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700178 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700179 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700180 },
181 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800182 },
183 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
184 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
185 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
186 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
187 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
188 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
189 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
190 &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.
191 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
192 &quot;A String&quot;,
193 ],
194 },
195 &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.
196 { # Layer holds metadata specific to a layer of a Docker image.
197 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
198 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
199 },
200 ],
201 },
202 },
203 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
204 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
205 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
206 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
207 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
208 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
209 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700210 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700211 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700212 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700213 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800214 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800215 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800216 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
217 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700218 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800219 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800220 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
221 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
222 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
223 &quot;name&quot;: &quot;A String&quot;, # The alias name.
224 },
225 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
226 &quot;gerritProject&quot;: &quot;A String&quot;, # The full project name within the host. Projects may be nested, so &quot;project/subproject&quot; is a valid project name. The &quot;repo name&quot; is the hostURI/project.
227 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
228 },
229 &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).
230 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
231 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
232 },
233 &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.
234 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
235 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
236 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
237 &quot;name&quot;: &quot;A String&quot;, # The alias name.
238 },
239 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
240 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
241 &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.
242 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
243 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
244 },
245 },
246 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800247 &quot;labels&quot;: { # Labels with user defined metadata.
248 &quot;a_key&quot;: &quot;A String&quot;,
249 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800250 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700251 &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.
252 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700253 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
254 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700255 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800256 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700257 },
258 ],
259 },
260 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800261 &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.
262 { # 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.
263 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
264 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
265 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
266 &quot;name&quot;: &quot;A String&quot;, # The alias name.
267 },
268 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
269 &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.
270 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
271 },
272 &quot;git&quot;: { # A GitSourceContext denotes a particular revision in a third party Git repository (e.g., GitHub). # A SourceContext referring to any third party Git repo (e.g., GitHub).
273 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
274 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
275 },
276 &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.
277 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
278 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
279 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
280 &quot;name&quot;: &quot;A String&quot;, # The alias name.
281 },
282 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
283 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
284 &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.
285 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
286 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
287 },
288 },
289 },
290 &quot;labels&quot;: { # Labels with user defined metadata.
291 &quot;a_key&quot;: &quot;A String&quot;,
292 },
293 },
294 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700295 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
296 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800297 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
298 &quot;a_key&quot;: &quot;A String&quot;,
299 },
300 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
301 &quot;commands&quot;: [ # Commands requested by the build.
302 { # Command describes a step performed as part of the build pipeline.
303 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
304 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
305 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
306 &quot;A String&quot;,
307 ],
308 &quot;args&quot;: [ # Command-line arguments used when executing this command.
309 &quot;A String&quot;,
310 ],
311 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
312 &quot;env&quot;: [ # Environment variables set before running this command.
313 &quot;A String&quot;,
314 ],
315 },
316 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800317 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800318 &quot;builtArtifacts&quot;: [ # Output of the build.
319 { # Artifact describes a build product.
320 &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.
321 &quot;A String&quot;,
322 ],
323 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
324 &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`.
325 },
326 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800327 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800328 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
329 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700330 },
331 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800332 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800333 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
334 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
335 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
336 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
337 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
338 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
339 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
340 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
341 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
342 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
343 },
344 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
345 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700346 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800347 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
348 },
349 },
350 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
351 &quot;signed&quot;: { # This corresponds to an in-toto link.
352 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
353 &quot;customValues&quot;: {
354 &quot;a_key&quot;: &quot;A String&quot;,
355 },
356 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800357 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
358 {
359 &quot;resourceUri&quot;: &quot;A String&quot;,
360 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
361 &quot;sha256&quot;: &quot;A String&quot;,
362 },
363 },
364 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800365 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
366 &quot;customValues&quot;: {
367 &quot;a_key&quot;: &quot;A String&quot;,
368 },
369 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800370 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
371 &quot;A String&quot;,
372 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800373 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
374 {
375 &quot;resourceUri&quot;: &quot;A String&quot;,
376 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
377 &quot;sha256&quot;: &quot;A String&quot;,
378 },
379 },
380 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700381 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800382 &quot;signatures&quot;: [
383 { # A signature object consists of the KeyID used and the signature itself.
384 &quot;keyid&quot;: &quot;A String&quot;,
385 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700386 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800387 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700388 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800389 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
390 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800391 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
392 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800393 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
394 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
395 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
396 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
397 },
398 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800399 &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).
400 },
401 &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. # A PGP signed attestation.
402 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
403 &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).
404 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700405 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800406 },
407 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700408 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
409 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800410 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700411 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800412 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700413 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
414 {
415 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
416 },
417 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800418 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700419 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800420 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
421 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700422 },
423 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800424 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
425 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700426 },
427 ],
428 }
429
430 x__xgafv: string, V1 error format.
431 Allowed values
432 1 - v1 error format
433 2 - v2 error format
434
435Returns:
436 An object of the form:
437
438 { # Response for creating occurrences in batch.
Bu Sun Kim65020912020-05-20 12:08:20 -0700439 &quot;occurrences&quot;: [ # The occurrences that were created.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700440 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800441 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
442 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
443 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
444 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
445 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
446 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
447 &quot;A String&quot;,
448 ],
449 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
450 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
451 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
452 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
453 },
454 },
455 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700456 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700457 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
458 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800459 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800460 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800461 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800462 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
463 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800464 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
465 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800466 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700467 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700468 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700469 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800470 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800471 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800472 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800473 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
474 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800475 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
476 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800477 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700478 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700479 },
480 },
481 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800482 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
483 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
484 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
485 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800486 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800487 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700488 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
489 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700490 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700491 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700492 },
493 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800494 },
495 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
496 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
497 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
498 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
499 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
500 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
501 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
502 &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.
503 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
504 &quot;A String&quot;,
505 ],
506 },
507 &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.
508 { # Layer holds metadata specific to a layer of a Docker image.
509 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
510 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
511 },
512 ],
513 },
514 },
515 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
516 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
517 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
518 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
519 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
520 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
521 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700522 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700523 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700524 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700525 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800526 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800527 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800528 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
529 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700530 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800531 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800532 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
533 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
534 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
535 &quot;name&quot;: &quot;A String&quot;, # The alias name.
536 },
537 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
538 &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.
539 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
540 },
541 &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).
542 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
543 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
544 },
545 &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.
546 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
547 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
548 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
549 &quot;name&quot;: &quot;A String&quot;, # The alias name.
550 },
551 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
552 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
553 &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.
554 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
555 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
556 },
557 },
558 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800559 &quot;labels&quot;: { # Labels with user defined metadata.
560 &quot;a_key&quot;: &quot;A String&quot;,
561 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800562 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700563 &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.
564 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700565 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
566 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700567 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800568 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700569 },
570 ],
571 },
572 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800573 &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.
574 { # 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.
575 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
576 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
577 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
578 &quot;name&quot;: &quot;A String&quot;, # The alias name.
579 },
580 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
581 &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.
582 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
583 },
584 &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).
585 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
586 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
587 },
588 &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.
589 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
590 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
591 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
592 &quot;name&quot;: &quot;A String&quot;, # The alias name.
593 },
594 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
595 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
596 &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.
597 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
598 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
599 },
600 },
601 },
602 &quot;labels&quot;: { # Labels with user defined metadata.
603 &quot;a_key&quot;: &quot;A String&quot;,
604 },
605 },
606 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700607 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
608 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800609 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
610 &quot;a_key&quot;: &quot;A String&quot;,
611 },
612 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
613 &quot;commands&quot;: [ # Commands requested by the build.
614 { # Command describes a step performed as part of the build pipeline.
615 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
616 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
617 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
618 &quot;A String&quot;,
619 ],
620 &quot;args&quot;: [ # Command-line arguments used when executing this command.
621 &quot;A String&quot;,
622 ],
623 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
624 &quot;env&quot;: [ # Environment variables set before running this command.
625 &quot;A String&quot;,
626 ],
627 },
628 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800629 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800630 &quot;builtArtifacts&quot;: [ # Output of the build.
631 { # Artifact describes a build product.
632 &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.
633 &quot;A String&quot;,
634 ],
635 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
636 &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`.
637 },
638 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800639 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800640 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
641 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700642 },
643 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800644 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800645 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
646 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
647 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
648 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
649 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
650 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
651 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
652 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
653 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
654 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
655 },
656 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
657 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700658 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800659 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
660 },
661 },
662 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
663 &quot;signed&quot;: { # This corresponds to an in-toto link.
664 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
665 &quot;customValues&quot;: {
666 &quot;a_key&quot;: &quot;A String&quot;,
667 },
668 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800669 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
670 {
671 &quot;resourceUri&quot;: &quot;A String&quot;,
672 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
673 &quot;sha256&quot;: &quot;A String&quot;,
674 },
675 },
676 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800677 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
678 &quot;customValues&quot;: {
679 &quot;a_key&quot;: &quot;A String&quot;,
680 },
681 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800682 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
683 &quot;A String&quot;,
684 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800685 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
686 {
687 &quot;resourceUri&quot;: &quot;A String&quot;,
688 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
689 &quot;sha256&quot;: &quot;A String&quot;,
690 },
691 },
692 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700693 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800694 &quot;signatures&quot;: [
695 { # A signature object consists of the KeyID used and the signature itself.
696 &quot;keyid&quot;: &quot;A String&quot;,
697 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700698 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800699 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700700 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800701 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
702 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800703 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
704 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800705 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
706 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
707 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
708 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
709 },
710 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800711 &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).
712 },
713 &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. # A PGP signed attestation.
714 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
715 &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).
716 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700717 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800718 },
719 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700720 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
721 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800722 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700723 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800724 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700725 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
726 {
727 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
728 },
729 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800730 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700731 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800732 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
733 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700734 },
735 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800736 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
737 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700738 },
739 ],
740 }</pre>
741</div>
742
743<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700744 <code class="details" id="close">close()</code>
745 <pre>Close httplib2 connections.</pre>
746</div>
747
748<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -0700749 <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700750 <pre>Creates a new occurrence.
751
752Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700753 parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which the occurrence is to be created. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -0700754 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700755 The object takes the form of:
756
757{ # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800758 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
759 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
760 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
761 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
762 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
763 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
764 &quot;A String&quot;,
765 ],
766 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
767 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
768 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
769 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
770 },
771 },
772 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700773 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700774 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
775 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800776 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800777 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800778 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800779 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
780 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800781 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
782 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800783 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700784 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700785 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700786 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800787 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800788 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800789 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800790 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
791 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800792 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
793 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800794 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700795 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700796 },
797 },
798 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800799 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
800 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
801 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
802 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800803 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800804 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700805 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
806 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700807 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700808 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700809 },
810 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800811 },
812 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
813 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
814 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
815 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
816 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
817 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
818 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
819 &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.
820 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
821 &quot;A String&quot;,
822 ],
823 },
824 &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.
825 { # Layer holds metadata specific to a layer of a Docker image.
826 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
827 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
828 },
829 ],
830 },
831 },
832 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
833 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
834 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
835 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
836 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
837 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
838 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700839 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700840 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700841 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700842 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800843 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800844 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800845 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
846 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700847 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800848 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800849 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
850 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
851 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
852 &quot;name&quot;: &quot;A String&quot;, # The alias name.
853 },
854 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
855 &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.
856 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
857 },
858 &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).
859 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
860 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
861 },
862 &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.
863 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
864 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
865 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
866 &quot;name&quot;: &quot;A String&quot;, # The alias name.
867 },
868 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
869 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
870 &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.
871 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
872 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
873 },
874 },
875 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800876 &quot;labels&quot;: { # Labels with user defined metadata.
877 &quot;a_key&quot;: &quot;A String&quot;,
878 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800879 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -0700880 &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.
881 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700882 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
883 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700884 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800885 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700886 },
887 ],
888 },
889 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800890 &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.
891 { # 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.
892 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
893 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
894 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
895 &quot;name&quot;: &quot;A String&quot;, # The alias name.
896 },
897 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
898 &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.
899 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
900 },
901 &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).
902 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
903 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
904 },
905 &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.
906 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
907 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
908 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
909 &quot;name&quot;: &quot;A String&quot;, # The alias name.
910 },
911 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
912 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
913 &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.
914 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
915 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
916 },
917 },
918 },
919 &quot;labels&quot;: { # Labels with user defined metadata.
920 &quot;a_key&quot;: &quot;A String&quot;,
921 },
922 },
923 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700924 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
925 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800926 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
927 &quot;a_key&quot;: &quot;A String&quot;,
928 },
929 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
930 &quot;commands&quot;: [ # Commands requested by the build.
931 { # Command describes a step performed as part of the build pipeline.
932 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
933 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
934 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
935 &quot;A String&quot;,
936 ],
937 &quot;args&quot;: [ # Command-line arguments used when executing this command.
938 &quot;A String&quot;,
939 ],
940 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
941 &quot;env&quot;: [ # Environment variables set before running this command.
942 &quot;A String&quot;,
943 ],
944 },
945 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800946 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800947 &quot;builtArtifacts&quot;: [ # Output of the build.
948 { # Artifact describes a build product.
949 &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.
950 &quot;A String&quot;,
951 ],
952 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
953 &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`.
954 },
955 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800956 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800957 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
958 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700959 },
960 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800961 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800962 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
963 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
964 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
965 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
966 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
967 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
968 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
969 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
970 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
971 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
972 },
973 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
974 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -0700975 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800976 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
977 },
978 },
979 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
980 &quot;signed&quot;: { # This corresponds to an in-toto link.
981 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
982 &quot;customValues&quot;: {
983 &quot;a_key&quot;: &quot;A String&quot;,
984 },
985 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800986 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
987 {
988 &quot;resourceUri&quot;: &quot;A String&quot;,
989 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
990 &quot;sha256&quot;: &quot;A String&quot;,
991 },
992 },
993 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -0800994 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
995 &quot;customValues&quot;: {
996 &quot;a_key&quot;: &quot;A String&quot;,
997 },
998 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -0800999 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1000 &quot;A String&quot;,
1001 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001002 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1003 {
1004 &quot;resourceUri&quot;: &quot;A String&quot;,
1005 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1006 &quot;sha256&quot;: &quot;A String&quot;,
1007 },
1008 },
1009 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001010 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001011 &quot;signatures&quot;: [
1012 { # A signature object consists of the KeyID used and the signature itself.
1013 &quot;keyid&quot;: &quot;A String&quot;,
1014 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001015 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001016 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001017 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001018 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1019 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001020 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
1021 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001022 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
1023 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
1024 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
1025 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1026 },
1027 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001028 &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).
1029 },
1030 &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. # A PGP signed attestation.
1031 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
1032 &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).
1033 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001034 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001035 },
1036 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001037 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1038 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001039 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001040 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001041 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001042 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1043 {
1044 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1045 },
1046 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001047 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001048 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001049 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1050 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001051 },
1052 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001053 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1054 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001055}
1056
1057 x__xgafv: string, V1 error format.
1058 Allowed values
1059 1 - v1 error format
1060 2 - v2 error format
1061
1062Returns:
1063 An object of the form:
1064
1065 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001066 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1067 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1068 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1069 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1070 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1071 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1072 &quot;A String&quot;,
1073 ],
1074 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1075 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1076 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1077 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1078 },
1079 },
1080 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001081 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001082 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1083 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001084 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001085 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001086 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001087 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1088 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001089 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1090 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001091 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001092 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001093 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001094 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001095 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001096 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001097 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001098 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1099 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001100 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1101 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001102 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001103 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001104 },
1105 },
1106 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001107 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1108 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1109 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1110 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001111 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001112 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001113 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1114 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001115 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001116 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001117 },
1118 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001119 },
1120 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
1121 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1122 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
1123 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1124 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1125 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1126 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1127 &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.
1128 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1129 &quot;A String&quot;,
1130 ],
1131 },
1132 &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.
1133 { # Layer holds metadata specific to a layer of a Docker image.
1134 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1135 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1136 },
1137 ],
1138 },
1139 },
1140 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1141 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
1142 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
1143 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1144 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1145 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1146 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001147 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001148 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001149 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001150 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001151 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001152 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001153 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1154 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001155 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001156 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001157 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1158 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1159 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1160 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1161 },
1162 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1163 &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.
1164 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1165 },
1166 &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).
1167 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1168 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1169 },
1170 &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.
1171 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1172 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1173 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1174 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1175 },
1176 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1177 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1178 &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.
1179 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1180 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1181 },
1182 },
1183 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001184 &quot;labels&quot;: { # Labels with user defined metadata.
1185 &quot;a_key&quot;: &quot;A String&quot;,
1186 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001187 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001188 &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.
1189 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001190 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1191 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001192 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001193 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001194 },
1195 ],
1196 },
1197 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001198 &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.
1199 { # 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.
1200 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1201 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1202 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1203 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1204 },
1205 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1206 &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.
1207 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1208 },
1209 &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).
1210 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1211 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1212 },
1213 &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.
1214 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1215 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1216 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1217 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1218 },
1219 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1220 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1221 &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.
1222 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1223 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1224 },
1225 },
1226 },
1227 &quot;labels&quot;: { # Labels with user defined metadata.
1228 &quot;a_key&quot;: &quot;A String&quot;,
1229 },
1230 },
1231 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001232 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1233 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001234 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1235 &quot;a_key&quot;: &quot;A String&quot;,
1236 },
1237 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1238 &quot;commands&quot;: [ # Commands requested by the build.
1239 { # Command describes a step performed as part of the build pipeline.
1240 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
1241 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1242 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1243 &quot;A String&quot;,
1244 ],
1245 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1246 &quot;A String&quot;,
1247 ],
1248 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1249 &quot;env&quot;: [ # Environment variables set before running this command.
1250 &quot;A String&quot;,
1251 ],
1252 },
1253 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001254 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001255 &quot;builtArtifacts&quot;: [ # Output of the build.
1256 { # Artifact describes a build product.
1257 &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.
1258 &quot;A String&quot;,
1259 ],
1260 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1261 &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`.
1262 },
1263 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001264 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001265 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1266 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001267 },
1268 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001269 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001270 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1271 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1272 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1273 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1274 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1275 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1276 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1277 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1278 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1279 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1280 },
1281 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1282 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001283 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001284 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1285 },
1286 },
1287 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
1288 &quot;signed&quot;: { # This corresponds to an in-toto link.
1289 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
1290 &quot;customValues&quot;: {
1291 &quot;a_key&quot;: &quot;A String&quot;,
1292 },
1293 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001294 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1295 {
1296 &quot;resourceUri&quot;: &quot;A String&quot;,
1297 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1298 &quot;sha256&quot;: &quot;A String&quot;,
1299 },
1300 },
1301 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001302 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
1303 &quot;customValues&quot;: {
1304 &quot;a_key&quot;: &quot;A String&quot;,
1305 },
1306 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001307 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1308 &quot;A String&quot;,
1309 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001310 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1311 {
1312 &quot;resourceUri&quot;: &quot;A String&quot;,
1313 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1314 &quot;sha256&quot;: &quot;A String&quot;,
1315 },
1316 },
1317 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001318 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001319 &quot;signatures&quot;: [
1320 { # A signature object consists of the KeyID used and the signature itself.
1321 &quot;keyid&quot;: &quot;A String&quot;,
1322 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001323 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001324 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001325 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001326 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1327 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001328 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
1329 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001330 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
1331 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
1332 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
1333 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1334 },
1335 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001336 &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).
1337 },
1338 &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. # A PGP signed attestation.
1339 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
1340 &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).
1341 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001342 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001343 },
1344 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001345 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1346 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001347 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001348 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001349 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001350 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1351 {
1352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1353 },
1354 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001355 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001356 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001357 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1358 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001359 },
1360 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001361 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1362 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001363 }</pre>
1364</div>
1365
1366<div class="method">
1367 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001368 <pre>Deletes the specified occurrence. For example, use this method to delete an occurrence when the occurrence is no longer applicable for the given resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001369
1370Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001371 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001372 x__xgafv: string, V1 error format.
1373 Allowed values
1374 1 - v1 error format
1375 2 - v2 error format
1376
1377Returns:
1378 An object of the form:
1379
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001380 { # 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 -07001381 }</pre>
1382</div>
1383
1384<div class="method">
1385 <code class="details" id="get">get(name, x__xgafv=None)</code>
1386 <pre>Gets the specified occurrence.
1387
1388Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001389 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001390 x__xgafv: string, V1 error format.
1391 Allowed values
1392 1 - v1 error format
1393 2 - v2 error format
1394
1395Returns:
1396 An object of the form:
1397
1398 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001399 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1400 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1401 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1402 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1403 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1404 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1405 &quot;A String&quot;,
1406 ],
1407 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1408 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1409 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1410 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1411 },
1412 },
1413 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001414 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001415 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1416 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001417 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001418 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001419 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001420 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1421 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001422 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1423 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001424 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001425 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001426 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001427 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001428 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001429 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001430 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001431 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1432 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001433 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1434 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001435 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001436 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001437 },
1438 },
1439 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001440 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
1441 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
1442 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
1443 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001444 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001445 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001446 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
1447 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001448 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001449 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001450 },
1451 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001452 },
1453 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
1454 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
1455 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
1456 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
1457 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
1458 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
1459 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1460 &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.
1461 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1462 &quot;A String&quot;,
1463 ],
1464 },
1465 &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.
1466 { # Layer holds metadata specific to a layer of a Docker image.
1467 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
1468 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
1469 },
1470 ],
1471 },
1472 },
1473 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
1474 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
1475 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
1476 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1477 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1478 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1479 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001480 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001481 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001482 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001483 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001484 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001485 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001486 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
1487 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001488 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001489 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001490 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1491 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1492 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1493 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1494 },
1495 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1496 &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.
1497 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1498 },
1499 &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).
1500 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1501 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1502 },
1503 &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.
1504 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1505 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1506 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1507 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1508 },
1509 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1510 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1511 &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.
1512 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1513 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1514 },
1515 },
1516 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001517 &quot;labels&quot;: { # Labels with user defined metadata.
1518 &quot;a_key&quot;: &quot;A String&quot;,
1519 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001520 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001521 &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.
1522 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001523 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
1524 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001525 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001526 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001527 },
1528 ],
1529 },
1530 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001531 &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.
1532 { # 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.
1533 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
1534 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1535 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1536 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1537 },
1538 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
1539 &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.
1540 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
1541 },
1542 &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).
1543 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
1544 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
1545 },
1546 &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.
1547 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
1548 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
1549 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
1550 &quot;name&quot;: &quot;A String&quot;, # The alias name.
1551 },
1552 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
1553 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
1554 &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.
1555 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
1556 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
1557 },
1558 },
1559 },
1560 &quot;labels&quot;: { # Labels with user defined metadata.
1561 &quot;a_key&quot;: &quot;A String&quot;,
1562 },
1563 },
1564 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001565 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
1566 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001567 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
1568 &quot;a_key&quot;: &quot;A String&quot;,
1569 },
1570 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
1571 &quot;commands&quot;: [ # Commands requested by the build.
1572 { # Command describes a step performed as part of the build pipeline.
1573 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
1574 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
1575 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
1576 &quot;A String&quot;,
1577 ],
1578 &quot;args&quot;: [ # Command-line arguments used when executing this command.
1579 &quot;A String&quot;,
1580 ],
1581 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
1582 &quot;env&quot;: [ # Environment variables set before running this command.
1583 &quot;A String&quot;,
1584 ],
1585 },
1586 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001587 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001588 &quot;builtArtifacts&quot;: [ # Output of the build.
1589 { # Artifact describes a build product.
1590 &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.
1591 &quot;A String&quot;,
1592 ],
1593 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
1594 &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`.
1595 },
1596 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001597 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001598 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
1599 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001600 },
1601 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001602 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001603 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
1604 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
1605 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
1606 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
1607 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1608 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
1609 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1610 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1611 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1612 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1613 },
1614 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
1615 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001616 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001617 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
1618 },
1619 },
1620 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
1621 &quot;signed&quot;: { # This corresponds to an in-toto link.
1622 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
1623 &quot;customValues&quot;: {
1624 &quot;a_key&quot;: &quot;A String&quot;,
1625 },
1626 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001627 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
1628 {
1629 &quot;resourceUri&quot;: &quot;A String&quot;,
1630 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1631 &quot;sha256&quot;: &quot;A String&quot;,
1632 },
1633 },
1634 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001635 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
1636 &quot;customValues&quot;: {
1637 &quot;a_key&quot;: &quot;A String&quot;,
1638 },
1639 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001640 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
1641 &quot;A String&quot;,
1642 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001643 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
1644 {
1645 &quot;resourceUri&quot;: &quot;A String&quot;,
1646 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
1647 &quot;sha256&quot;: &quot;A String&quot;,
1648 },
1649 },
1650 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001651 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001652 &quot;signatures&quot;: [
1653 { # A signature object consists of the KeyID used and the signature itself.
1654 &quot;keyid&quot;: &quot;A String&quot;,
1655 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001656 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001657 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001658 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001659 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
1660 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001661 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
1662 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001663 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
1664 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
1665 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
1666 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
1667 },
1668 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001669 &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).
1670 },
1671 &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. # A PGP signed attestation.
1672 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
1673 &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).
1674 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001675 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001676 },
1677 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001678 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
1679 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001680 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001681 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001682 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001683 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
1684 {
1685 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
1686 },
1687 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001688 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001689 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001690 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
1691 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001692 },
1693 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001694 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
1695 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001696 }</pre>
1697</div>
1698
1699<div class="method">
1700 <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001701 <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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001702
1703Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001704 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 -07001705 body: object, The request body.
1706 The object takes the form of:
1707
1708{ # Request message for `GetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001709 &quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1710 &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 -07001711 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001712 }
1713
1714 x__xgafv: string, V1 error format.
1715 Allowed values
1716 1 - v1 error format
1717 2 - v2 error format
1718
1719Returns:
1720 An object of the form:
1721
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001722 { # 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/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001723 &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 -07001724 &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 -07001725 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001726 &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`.
1727 &quot;A String&quot;,
1728 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001729 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
1730 &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).
1731 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
1732 &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.
1733 &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.
1734 &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.
1735 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001736 },
1737 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001738 &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 -07001739 }</pre>
1740</div>
1741
1742<div class="method">
1743 <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001744 <pre>Gets the note attached to the specified occurrence. Consumer projects can use this method to get a note that belongs to a provider project.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001745
1746Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001747 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001748 x__xgafv: string, V1 error format.
1749 Allowed values
1750 1 - v1 error format
1751 2 - v2 error format
1752
1753Returns:
1754 An object of the form:
1755
1756 { # A type of analysis that can be done for a resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001757 &quot;vulnerability&quot;: { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001758 &quot;severity&quot;: &quot;A String&quot;, # Note provider assigned impact of the vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001759 &quot;windowsDetails&quot;: [ # Windows details get their own format because the information format and model don&#x27;t match a normal detail. Specifically Windows updates are done as patches, thus Windows vulnerabilities really are a missing package, rather than a package being at an incorrect version.
1760 {
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001761 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. 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.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001762 &quot;name&quot;: &quot;A String&quot;, # Required. The name of the vulnerability.
1763 &quot;description&quot;: &quot;A String&quot;, # The description of the vulnerability.
1764 &quot;fixingKbs&quot;: [ # Required. The names of the KBs which have hotfixes to mitigate this vulnerability. Note that there may be multiple hotfixes (and thus multiple KBs) that mitigate a given vulnerability. Currently any listed kb&#x27;s presence is considered a fix.
1765 {
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001766 &quot;url&quot;: &quot;A String&quot;, # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001767 &quot;name&quot;: &quot;A String&quot;, # The KB name (generally of the form KB[0-9]+ i.e. KB123456).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001768 },
1769 ],
Bu Sun Kim65020912020-05-20 12:08:20 -07001770 },
1771 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001772 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001773 &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.
1774 { # Identifies all appearances 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
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001775 &quot;minAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists.
1776 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1777 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1778 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1779 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1780 },
1781 &quot;maxAffectedVersion&quot;: { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
1782 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1783 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1784 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1785 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1786 },
1787 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. 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.
1788 &quot;severityName&quot;: &quot;A String&quot;, # The severity (eg: distro assigned severity) for this vulnerability.
1789 &quot;isObsolete&quot;: True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001790 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The fix for this specific package version.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001791 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001792 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001793 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1794 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001795 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1796 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001797 },
1798 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001799 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001800 &quot;packageType&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc).
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001801 &quot;package&quot;: &quot;A String&quot;, # Required. The name of the package where the vulnerability was found.
1802 &quot;description&quot;: &quot;A String&quot;, # A vendor-specific description of this note.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001803 &quot;sourceUpdateTime&quot;: &quot;A String&quot;, # The time this information was last changed at the source. This is an upstream timestamp from the underlying information source - e.g. Ubuntu security tracker.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001804 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001805 ],
1806 &quot;cvssScore&quot;: 3.14, # The CVSS score for this vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001807 &quot;cvssV3&quot;: { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3.
1808 &quot;exploitabilityScore&quot;: 3.14,
1809 &quot;impactScore&quot;: 3.14,
1810 &quot;scope&quot;: &quot;A String&quot;,
1811 &quot;baseScore&quot;: 3.14, # The base score is a function of the base metric scores.
1812 &quot;attackVector&quot;: &quot;A String&quot;, # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments.
1813 &quot;attackComplexity&quot;: &quot;A String&quot;,
1814 &quot;availabilityImpact&quot;: &quot;A String&quot;,
1815 &quot;privilegesRequired&quot;: &quot;A String&quot;,
1816 &quot;confidentialityImpact&quot;: &quot;A String&quot;,
1817 &quot;integrityImpact&quot;: &quot;A String&quot;,
1818 &quot;userInteraction&quot;: &quot;A String&quot;,
1819 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001820 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001821 &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.
1822 &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. # A note describing the initial analysis of a resource.
1823 &quot;analysisKind&quot;: &quot;A String&quot;, # Required. Immutable. The kind of analysis that is handled by this discovery.
1824 },
1825 &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.
1826 &quot;name&quot;: &quot;A String&quot;, # Required. Immutable. The name of the package.
1827 &quot;distribution&quot;: [ # The various channels by which a package is distributed.
1828 { # This represents a particular channel of distribution for a given package. E.g., Debian&#x27;s jessie-backports dpkg mirror.
1829 &quot;latestVersion&quot;: { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel.
1830 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1831 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
1832 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1833 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
1834 },
1835 &quot;maintainer&quot;: &quot;A String&quot;, # A freeform string denoting the maintainer of this package.
1836 &quot;architecture&quot;: &quot;A String&quot;, # The CPU architecture for which packages in this distribution channel were built.
1837 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
1838 &quot;description&quot;: &quot;A String&quot;, # The distribution channel-specific description of this package.
1839 &quot;url&quot;: &quot;A String&quot;, # The distribution channel-specific homepage for this package.
1840 },
1841 ],
1842 },
1843 &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.
1844 &quot;kind&quot;: &quot;A String&quot;, # Output only. The type of analysis. This field can be used as a filter in list requests.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001845 &quot;relatedUrl&quot;: [ # URLs associated with this note.
1846 { # Metadata for any related URL information.
1847 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
1848 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001849 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001850 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001851 &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.
1852 &quot;resourceUrl&quot;: &quot;A String&quot;, # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images.
1853 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
1854 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
1855 &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.
1856 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
1857 &quot;A String&quot;,
1858 ],
1859 },
1860 },
1861 &quot;expirationTime&quot;: &quot;A String&quot;, # Time of expiration for this note. Empty if note does not expire.
1862 &quot;build&quot;: { # Note holding the version of the provider&#x27;s builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build.
1863 &quot;signature&quot;: { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details.
1864 &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`
1865 &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).
1866 &quot;keyType&quot;: &quot;A String&quot;, # The type of the key, either stored in `public_key` or referenced in `key_id`.
1867 &quot;signature&quot;: &quot;A String&quot;, # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded.
1868 },
1869 &quot;builderVersion&quot;: &quot;A String&quot;, # Required. Immutable. Version of the builder which produced this build.
1870 },
1871 &quot;attestationAuthority&quot;: { # Note kind that represents a logical attestation &quot;role&quot; or &quot;authority&quot;. For example, an organization might have one `Authority` 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.
1872 &quot;hint&quot;: { # This submessage provides human-readable hints about the purpose of the authority. Because the name of a note acts as its resource reference, it is important to disambiguate the canonical name of the Note (which might be a UUID for security purposes) from &quot;readable&quot; names more suitable for debug output. Note that these hints should not be used to look up authorities in security sensitive contexts, such as when looking up attestations to verify. # Hint hints at the purpose of the attestation authority.
1873 &quot;humanReadableName&quot;: &quot;A String&quot;, # Required. The human readable name of this attestation authority, for example &quot;qa&quot;.
1874 },
1875 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001876 &quot;intoto&quot;: { # This contains the fields corresponding to the definition of a software supply chain step in an in-toto layout. This information goes into a Grafeas note. # A note describing an in-toto link.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001877 &quot;stepName&quot;: &quot;A String&quot;, # This field identifies the name of the step in the supply chain.
1878 &quot;expectedMaterials&quot;: [ # The following fields contain in-toto artifact rules identifying the artifacts that enter this supply chain step, and exit the supply chain step, i.e. materials and products of the step.
1879 { # Defines an object to declare an in-toto artifact rule
1880 &quot;artifactRule&quot;: [
1881 &quot;A String&quot;,
1882 ],
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001883 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001884 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001885 &quot;threshold&quot;: &quot;A String&quot;, # This field contains a value that indicates the minimum number of keys that need to be used to sign the step&#x27;s in-toto link.
1886 &quot;signingKeys&quot;: [ # This field contains the public keys that can be used to verify the signatures on the step metadata.
1887 { # This defines the format used to record keys used in the software supply chain. An in-toto link is attested using one or more keys defined in the in-toto layout. An example of this is: { &quot;key_id&quot;: &quot;776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...&quot;, &quot;key_type&quot;: &quot;rsa&quot;, &quot;public_key_value&quot;: &quot;-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...&quot;, &quot;key_scheme&quot;: &quot;rsassa-pss-sha256&quot; } The format for in-toto&#x27;s key definition can be found in section 4.2 of the in-toto specification.
1888 &quot;keyScheme&quot;: &quot;A String&quot;, # This field contains the corresponding signature scheme. Eg: &quot;rsassa-pss-sha256&quot;.
1889 &quot;keyId&quot;: &quot;A String&quot;, # key_id is an identifier for the signing key.
1890 &quot;publicKeyValue&quot;: &quot;A String&quot;, # This field contains the actual public key.
1891 &quot;keyType&quot;: &quot;A String&quot;, # This field identifies the specific signing method. Eg: &quot;rsa&quot;, &quot;ed25519&quot;, and &quot;ecdsa&quot;.
1892 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001893 ],
1894 &quot;expectedProducts&quot;: [
1895 { # Defines an object to declare an in-toto artifact rule
1896 &quot;artifactRule&quot;: [
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001897 &quot;A String&quot;,
1898 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001899 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001900 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001901 &quot;expectedCommand&quot;: [ # This field contains the expected command used to perform the step.
1902 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001903 ],
1904 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001905 &quot;relatedNoteNames&quot;: [ # Other notes related to this note.
1906 &quot;A String&quot;,
1907 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001908 &quot;shortDescription&quot;: &quot;A String&quot;, # A one sentence description of this note.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001909 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001910 &quot;deployable&quot;: { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed.
1911 &quot;resourceUri&quot;: [ # Required. Resource URI for the artifact being deployed.
1912 &quot;A String&quot;,
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001913 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001914 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001915 &quot;longDescription&quot;: &quot;A String&quot;, # A detailed description of this note.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001916 }</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001917</div>
1918
1919<div class="method">
Bu Sun Kim65020912020-05-20 12:08:20 -07001920 <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001921 <pre>Gets a summary of the number and severity of occurrences.
1922
1923Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001924 parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required)
Bu Sun Kim65020912020-05-20 12:08:20 -07001925 filter: string, The filter expression.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001926 x__xgafv: string, V1 error format.
1927 Allowed values
1928 1 - v1 error format
1929 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001930
1931Returns:
1932 An object of the form:
1933
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001934 { # A summary of how many vulnerability occurrences there are per resource and severity type.
Bu Sun Kim65020912020-05-20 12:08:20 -07001935 &quot;counts&quot;: [ # A listing by resource of the number of fixable and total vulnerabilities.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001936 { # Per resource and severity counts of fixable and total vulnerabilities.
Bu Sun Kim65020912020-05-20 12:08:20 -07001937 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # The affected resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001938 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07001939 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001940 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
1941 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
1942 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
1943 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001944 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001945 &quot;severity&quot;: &quot;A String&quot;, # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities.
1946 &quot;totalCount&quot;: &quot;A String&quot;, # The total number of vulnerabilities associated with this resource.
1947 &quot;fixableCount&quot;: &quot;A String&quot;, # The number of fixable vulnerabilities associated with this resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001948 },
1949 ],
1950 }</pre>
1951</div>
1952
1953<div class="method">
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001954 <code class="details" id="list">list(parent, pageSize=None, filter=None, pageToken=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001955 <pre>Lists occurrences for the specified project.
1956
1957Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001958 parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required)
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001959 pageSize: integer, Number of occurrences to return in the list. Must be positive. Max allowed page size is 1000. If not specified, page size defaults to 20.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001960 filter: string, The filter expression.
Bu Sun Kim65020912020-05-20 12:08:20 -07001961 pageToken: string, Token to provide to skip to a particular spot in the list.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001962 x__xgafv: string, V1 error format.
1963 Allowed values
1964 1 - v1 error format
1965 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001966
1967Returns:
1968 An object of the form:
1969
1970 { # Response for listing occurrences.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001971 &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 Kim65020912020-05-20 12:08:20 -07001972 &quot;occurrences&quot;: [ # The occurrences requested.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001973 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001974 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
1975 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
1976 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
1977 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
1978 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
1979 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
1980 &quot;A String&quot;,
1981 ],
1982 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
1983 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
1984 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
1985 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
1986 },
1987 },
1988 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07001989 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07001990 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
1991 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001992 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001993 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001994 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08001995 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
1996 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001997 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
1998 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08001999 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002000 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002001 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002002 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002003 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002004 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002005 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002006 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2007 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002008 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2009 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002010 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002011 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002012 },
2013 },
2014 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002015 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2016 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2017 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2018 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002019 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002020 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002021 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2022 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002023 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002024 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002025 },
2026 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002027 },
2028 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
2029 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2030 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
2031 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2032 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2033 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2034 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2035 &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.
2036 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2037 &quot;A String&quot;,
2038 ],
2039 },
2040 &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.
2041 { # Layer holds metadata specific to a layer of a Docker image.
2042 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2043 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2044 },
2045 ],
2046 },
2047 },
2048 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2049 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2050 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2051 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2052 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2053 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2054 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002055 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002056 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002057 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002058 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002059 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002060 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002061 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2062 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002063 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002064 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002065 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2066 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2067 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2068 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2069 },
2070 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2071 &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.
2072 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2073 },
2074 &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).
2075 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2076 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2077 },
2078 &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.
2079 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2080 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2081 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2082 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2083 },
2084 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2085 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2086 &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.
2087 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2088 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2089 },
2090 },
2091 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002092 &quot;labels&quot;: { # Labels with user defined metadata.
2093 &quot;a_key&quot;: &quot;A String&quot;,
2094 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002095 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002096 &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.
2097 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002098 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2099 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002100 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002101 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002102 },
2103 ],
2104 },
2105 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002106 &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.
2107 { # 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.
2108 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2109 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2110 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2111 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2112 },
2113 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2114 &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.
2115 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2116 },
2117 &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).
2118 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2119 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2120 },
2121 &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.
2122 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2123 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2124 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2125 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2126 },
2127 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2128 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2129 &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.
2130 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2131 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2132 },
2133 },
2134 },
2135 &quot;labels&quot;: { # Labels with user defined metadata.
2136 &quot;a_key&quot;: &quot;A String&quot;,
2137 },
2138 },
2139 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002140 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2141 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002142 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2143 &quot;a_key&quot;: &quot;A String&quot;,
2144 },
2145 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2146 &quot;commands&quot;: [ # Commands requested by the build.
2147 { # Command describes a step performed as part of the build pipeline.
2148 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
2149 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2150 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2151 &quot;A String&quot;,
2152 ],
2153 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2154 &quot;A String&quot;,
2155 ],
2156 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2157 &quot;env&quot;: [ # Environment variables set before running this command.
2158 &quot;A String&quot;,
2159 ],
2160 },
2161 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002162 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002163 &quot;builtArtifacts&quot;: [ # Output of the build.
2164 { # Artifact describes a build product.
2165 &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.
2166 &quot;A String&quot;,
2167 ],
2168 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2169 &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`.
2170 },
2171 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002172 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002173 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2174 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002175 },
2176 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002177 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002178 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2179 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2180 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2181 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2182 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2183 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2184 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2185 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2186 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2187 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2188 },
2189 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2190 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002191 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002192 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2193 },
2194 },
2195 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
2196 &quot;signed&quot;: { # This corresponds to an in-toto link.
2197 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
2198 &quot;customValues&quot;: {
2199 &quot;a_key&quot;: &quot;A String&quot;,
2200 },
2201 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002202 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2203 {
2204 &quot;resourceUri&quot;: &quot;A String&quot;,
2205 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2206 &quot;sha256&quot;: &quot;A String&quot;,
2207 },
2208 },
2209 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002210 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
2211 &quot;customValues&quot;: {
2212 &quot;a_key&quot;: &quot;A String&quot;,
2213 },
2214 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002215 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
2216 &quot;A String&quot;,
2217 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002218 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
2219 {
2220 &quot;resourceUri&quot;: &quot;A String&quot;,
2221 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2222 &quot;sha256&quot;: &quot;A String&quot;,
2223 },
2224 },
2225 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002226 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002227 &quot;signatures&quot;: [
2228 { # A signature object consists of the KeyID used and the signature itself.
2229 &quot;keyid&quot;: &quot;A String&quot;,
2230 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002231 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002232 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002233 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002234 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2235 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002236 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
2237 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002238 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
2239 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
2240 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
2241 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
2242 },
2243 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002244 &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).
2245 },
2246 &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. # A PGP signed attestation.
2247 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
2248 &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).
2249 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002250 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002251 },
2252 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002253 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2254 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002255 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002256 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002257 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002258 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2259 {
2260 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2261 },
2262 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002263 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002264 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002265 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2266 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002267 },
2268 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002269 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2270 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002271 },
2272 ],
2273 }</pre>
2274</div>
2275
2276<div class="method">
2277 <code class="details" id="list_next">list_next(previous_request, previous_response)</code>
2278 <pre>Retrieves the next page of results.
2279
2280Args:
2281 previous_request: The request for the previous page. (required)
2282 previous_response: The response from the request for the previous page. (required)
2283
2284Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -07002285 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002286 page. Returns None if there are no more items in the collection.
2287 </pre>
2288</div>
2289
2290<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002291 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002292 <pre>Updates the specified occurrence.
2293
2294Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002295 name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
Dan O'Mearadd494642020-05-01 07:42:23 -07002296 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002297 The object takes the form of:
2298
2299{ # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002300 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2301 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2302 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2303 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2304 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2305 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2306 &quot;A String&quot;,
2307 ],
2308 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2309 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2310 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2311 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2312 },
2313 },
2314 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002315 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002316 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2317 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002318 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002319 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002320 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002321 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2322 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002323 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2324 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002325 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002326 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002327 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002328 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002329 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002330 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002331 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002332 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2333 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002334 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2335 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002336 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002337 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002338 },
2339 },
2340 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002341 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2342 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2343 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2344 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002345 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002346 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002347 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2348 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002349 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002350 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002351 },
2352 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002353 },
2354 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
2355 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2356 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
2357 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2358 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2359 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2360 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2361 &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.
2362 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2363 &quot;A String&quot;,
2364 ],
2365 },
2366 &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.
2367 { # Layer holds metadata specific to a layer of a Docker image.
2368 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2369 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2370 },
2371 ],
2372 },
2373 },
2374 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2375 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2376 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2377 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2378 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2379 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2380 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002381 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002382 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002383 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002384 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002385 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002386 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002387 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2388 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002389 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002390 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002391 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2392 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2393 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2394 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2395 },
2396 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2397 &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.
2398 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2399 },
2400 &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).
2401 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2402 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2403 },
2404 &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.
2405 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2406 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2407 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2408 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2409 },
2410 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2411 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2412 &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.
2413 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2414 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2415 },
2416 },
2417 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002418 &quot;labels&quot;: { # Labels with user defined metadata.
2419 &quot;a_key&quot;: &quot;A String&quot;,
2420 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002421 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002422 &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.
2423 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002424 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2425 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002426 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002427 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002428 },
2429 ],
2430 },
2431 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002432 &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.
2433 { # 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.
2434 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2435 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2436 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2437 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2438 },
2439 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2440 &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.
2441 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2442 },
2443 &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).
2444 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2445 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2446 },
2447 &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.
2448 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2449 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2450 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2451 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2452 },
2453 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2454 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2455 &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.
2456 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2457 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2458 },
2459 },
2460 },
2461 &quot;labels&quot;: { # Labels with user defined metadata.
2462 &quot;a_key&quot;: &quot;A String&quot;,
2463 },
2464 },
2465 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002466 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2467 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002468 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2469 &quot;a_key&quot;: &quot;A String&quot;,
2470 },
2471 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2472 &quot;commands&quot;: [ # Commands requested by the build.
2473 { # Command describes a step performed as part of the build pipeline.
2474 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
2475 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2476 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2477 &quot;A String&quot;,
2478 ],
2479 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2480 &quot;A String&quot;,
2481 ],
2482 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2483 &quot;env&quot;: [ # Environment variables set before running this command.
2484 &quot;A String&quot;,
2485 ],
2486 },
2487 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002488 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002489 &quot;builtArtifacts&quot;: [ # Output of the build.
2490 { # Artifact describes a build product.
2491 &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.
2492 &quot;A String&quot;,
2493 ],
2494 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2495 &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`.
2496 },
2497 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002498 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002499 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2500 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002501 },
2502 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002503 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002504 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2505 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2506 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2507 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2508 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2509 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2510 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2511 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2512 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2513 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2514 },
2515 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2516 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002517 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002518 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2519 },
2520 },
2521 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
2522 &quot;signed&quot;: { # This corresponds to an in-toto link.
2523 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
2524 &quot;customValues&quot;: {
2525 &quot;a_key&quot;: &quot;A String&quot;,
2526 },
2527 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002528 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2529 {
2530 &quot;resourceUri&quot;: &quot;A String&quot;,
2531 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2532 &quot;sha256&quot;: &quot;A String&quot;,
2533 },
2534 },
2535 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002536 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
2537 &quot;customValues&quot;: {
2538 &quot;a_key&quot;: &quot;A String&quot;,
2539 },
2540 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002541 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
2542 &quot;A String&quot;,
2543 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002544 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
2545 {
2546 &quot;resourceUri&quot;: &quot;A String&quot;,
2547 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2548 &quot;sha256&quot;: &quot;A String&quot;,
2549 },
2550 },
2551 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002552 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002553 &quot;signatures&quot;: [
2554 { # A signature object consists of the KeyID used and the signature itself.
2555 &quot;keyid&quot;: &quot;A String&quot;,
2556 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002557 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002558 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002559 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002560 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2561 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002562 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
2563 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002564 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
2565 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
2566 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
2567 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
2568 },
2569 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002570 &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).
2571 },
2572 &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. # A PGP signed attestation.
2573 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
2574 &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).
2575 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002576 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002577 },
2578 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002579 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2580 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002581 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002582 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002583 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002584 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2585 {
2586 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2587 },
2588 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002589 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002590 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002591 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2592 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002593 },
2594 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002595 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2596 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002597}
2598
2599 updateMask: string, The fields to update.
2600 x__xgafv: string, V1 error format.
2601 Allowed values
2602 1 - v1 error format
2603 2 - v2 error format
2604
2605Returns:
2606 An object of the form:
2607
2608 { # An instance of an analysis type that has been found on a resource.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002609 &quot;remediation&quot;: &quot;A String&quot;, # A description of actions that can be taken to remedy the note.
2610 &quot;deployment&quot;: { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime.
2611 &quot;deployment&quot;: { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource.
2612 &quot;deployTime&quot;: &quot;A String&quot;, # Required. Beginning of the lifetime of this deployment.
2613 &quot;userEmail&quot;: &quot;A String&quot;, # Identity of the user that triggered this deployment.
2614 &quot;resourceUri&quot;: [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name.
2615 &quot;A String&quot;,
2616 ],
2617 &quot;undeployTime&quot;: &quot;A String&quot;, # End of the lifetime of this deployment.
2618 &quot;address&quot;: &quot;A String&quot;, # Address of the runtime element hosting this deployment.
2619 &quot;config&quot;: &quot;A String&quot;, # Configuration used to create this deployment.
2620 &quot;platform&quot;: &quot;A String&quot;, # Platform hosting this deployment.
2621 },
2622 },
2623 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was created.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002624 &quot;vulnerability&quot;: { # Details of a vulnerability Occurrence. # Describes a security vulnerability.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002625 &quot;packageIssue&quot;: [ # Required. The set of affected locations and their fixes (if available) within the associated resource.
2626 { # This message wraps a location affected by a vulnerability and its associated fix (if one is available).
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002627 &quot;affectedLocation&quot;: { # The location of the vulnerability. # Required. The location of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002628 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002629 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002630 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2631 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002632 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2633 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002634 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002635 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002636 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002637 &quot;severityName&quot;: &quot;A String&quot;, # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002638 &quot;fixedLocation&quot;: { # The location of the vulnerability. # The location of the available fix for vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002639 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002640 &quot;version&quot;: { # Version contains structured information about the version of a package. # Required. The version of the package being described.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002641 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2642 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002643 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2644 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002645 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002646 &quot;package&quot;: &quot;A String&quot;, # Required. The package being described.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002647 },
2648 },
2649 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002650 &quot;shortDescription&quot;: &quot;A String&quot;, # Output only. A one sentence description of this vulnerability.
2651 &quot;longDescription&quot;: &quot;A String&quot;, # Output only. A detailed description of this vulnerability.
2652 &quot;type&quot;: &quot;A String&quot;, # The type of package; whether native or non native(ruby gems, node.js packages etc)
2653 &quot;cvssScore&quot;: 3.14, # Output only. The CVSS score of this vulnerability. CVSS score is on a scale of 0-10 where 0 indicates low severity and 10 indicates high severity.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002654 &quot;severity&quot;: &quot;A String&quot;, # Output only. The note provider assigned Severity of the vulnerability.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002655 &quot;effectiveSeverity&quot;: &quot;A String&quot;, # The distro assigned severity for this vulnerability when it is available, and note provider assigned severity when distro has not yet assigned a severity for this vulnerability.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002656 &quot;relatedUrls&quot;: [ # Output only. URLs related to this vulnerability.
2657 { # Metadata for any related URL information.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002658 &quot;label&quot;: &quot;A String&quot;, # Label to describe usage of the URL.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002659 &quot;url&quot;: &quot;A String&quot;, # Specific URL associated with the resource.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002660 },
2661 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002662 },
2663 &quot;noteName&quot;: &quot;A String&quot;, # Required. Immutable. The analysis note associated with this occurrence, in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used as a filter in list requests.
2664 &quot;derivedImage&quot;: { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note.
2665 &quot;derivedImage&quot;: { # Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM . # Required. Immutable. The child image derived from the base image.
2666 &quot;baseResourceUrl&quot;: &quot;A String&quot;, # Output only. This contains the base image URL for the derived image occurrence.
2667 &quot;distance&quot;: 42, # Output only. The number of layers by which this image differs from the associated image basis.
2668 &quot;fingerprint&quot;: { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
2669 &quot;v1Name&quot;: &quot;A String&quot;, # Required. The layer ID of the final layer in the Docker image&#x27;s v1 representation.
2670 &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.
2671 &quot;v2Blob&quot;: [ # Required. The ordered list of v2 blobs that represent a given image.
2672 &quot;A String&quot;,
2673 ],
2674 },
2675 &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.
2676 { # Layer holds metadata specific to a layer of a Docker image.
2677 &quot;arguments&quot;: &quot;A String&quot;, # The recovered arguments to the Dockerfile directive.
2678 &quot;directive&quot;: &quot;A String&quot;, # Required. The recovered Dockerfile directive used to construct this layer.
2679 },
2680 ],
2681 },
2682 },
2683 &quot;resource&quot;: { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
2684 &quot;name&quot;: &quot;A String&quot;, # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - &quot;Debian&quot;.
2685 &quot;uri&quot;: &quot;A String&quot;, # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image.
2686 &quot;contentHash&quot;: { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest.
2687 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
2688 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
2689 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002690 },
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002691 &quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002692 &quot;provenanceBytes&quot;: &quot;A String&quot;, # Serialized JSON representation of the provenance, used in generating the build signature in the corresponding build note. 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.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002693 &quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002694 &quot;startTime&quot;: &quot;A String&quot;, # Time at which execution of the build was started.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002695 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002696 &quot;createTime&quot;: &quot;A String&quot;, # Time at which the build was created.
2697 &quot;projectId&quot;: &quot;A String&quot;, # ID of the project.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002698 &quot;sourceProvenance&quot;: { # Source describes the location of the source used for the build. # Details of the Source input to the build.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002699 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002700 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2701 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2702 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2703 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2704 },
2705 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2706 &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.
2707 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2708 },
2709 &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).
2710 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2711 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2712 },
2713 &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.
2714 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2715 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2716 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2717 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2718 },
2719 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2720 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2721 &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.
2722 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2723 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2724 },
2725 },
2726 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002727 &quot;labels&quot;: { # Labels with user defined metadata.
2728 &quot;a_key&quot;: &quot;A String&quot;,
2729 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002730 },
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002731 &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.
2732 &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.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002733 &quot;fileHash&quot;: [ # Required. Collection of file hashes.
2734 { # Container message for hash values.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002735 &quot;value&quot;: &quot;A String&quot;, # Required. The hash value.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002736 &quot;type&quot;: &quot;A String&quot;, # Required. The type of hash that was performed.
Bu Sun Kimd059ad82020-07-22 17:02:09 -07002737 },
2738 ],
2739 },
2740 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002741 &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.
2742 { # 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.
2743 &quot;gerrit&quot;: { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project.
2744 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2745 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2746 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2747 },
2748 &quot;revisionId&quot;: &quot;A String&quot;, # A revision (commit) ID.
2749 &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.
2750 &quot;hostUri&quot;: &quot;A String&quot;, # The URI of a running Gerrit instance.
2751 },
2752 &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).
2753 &quot;revisionId&quot;: &quot;A String&quot;, # Git commit hash.
2754 &quot;url&quot;: &quot;A String&quot;, # Git repository URL.
2755 },
2756 &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.
2757 &quot;revisionId&quot;: &quot;A String&quot;, # A revision ID.
2758 &quot;aliasContext&quot;: { # An alias to a repo revision. # An alias, which may be a branch or tag.
2759 &quot;kind&quot;: &quot;A String&quot;, # The alias kind.
2760 &quot;name&quot;: &quot;A String&quot;, # The alias name.
2761 },
2762 &quot;repoId&quot;: { # A unique identifier for a Cloud Repo. # The ID of the repo.
2763 &quot;uid&quot;: &quot;A String&quot;, # A server-assigned, globally unique identifier.
2764 &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.
2765 &quot;projectId&quot;: &quot;A String&quot;, # The ID of the project.
2766 &quot;repoName&quot;: &quot;A String&quot;, # The name of the repo. Leave empty for the default repo.
2767 },
2768 },
2769 },
2770 &quot;labels&quot;: { # Labels with user defined metadata.
2771 &quot;a_key&quot;: &quot;A String&quot;,
2772 },
2773 },
2774 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002775 &quot;artifactStorageSourceUri&quot;: &quot;A String&quot;, # If provided, the input binary artifacts for the build came from this location.
2776 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002777 &quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
2778 &quot;a_key&quot;: &quot;A String&quot;,
2779 },
2780 &quot;builderVersion&quot;: &quot;A String&quot;, # Version string of the builder at the time this build was executed.
2781 &quot;commands&quot;: [ # Commands requested by the build.
2782 { # Command describes a step performed as part of the build pipeline.
2783 &quot;name&quot;: &quot;A String&quot;, # Required. 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`.
2784 &quot;dir&quot;: &quot;A String&quot;, # Working directory (relative to project source root) used when running this command.
2785 &quot;waitFor&quot;: [ # The ID(s) of the command(s) that this command depends on.
2786 &quot;A String&quot;,
2787 ],
2788 &quot;args&quot;: [ # Command-line arguments used when executing this command.
2789 &quot;A String&quot;,
2790 ],
2791 &quot;id&quot;: &quot;A String&quot;, # Optional unique identifier for this command, used in wait_for to reference this command as a dependency.
2792 &quot;env&quot;: [ # Environment variables set before running this command.
2793 &quot;A String&quot;,
2794 ],
2795 },
2796 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002797 &quot;id&quot;: &quot;A String&quot;, # Required. Unique identifier of the build.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002798 &quot;builtArtifacts&quot;: [ # Output of the build.
2799 { # Artifact describes a build product.
2800 &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.
2801 &quot;A String&quot;,
2802 ],
2803 &quot;checksum&quot;: &quot;A String&quot;, # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
2804 &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`.
2805 },
2806 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002807 &quot;endTime&quot;: &quot;A String&quot;, # Time at which execution of the build was finished.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002808 &quot;triggerId&quot;: &quot;A String&quot;, # Trigger identifier if the build was triggered automatically; empty if not.
2809 &quot;logsUri&quot;: &quot;A String&quot;, # URI where any logs for this provenance were written.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002810 },
2811 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002812 &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.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002813 &quot;installation&quot;: { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
2814 &quot;installation&quot;: { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed.
2815 &quot;location&quot;: [ # Required. All of the places within the filesystem versions of this package have been found.
2816 { # An occurrence of a particular package installation found within a system&#x27;s filesystem. E.g., glibc was found in `/var/lib/dpkg/status`.
2817 &quot;cpeUri&quot;: &quot;A String&quot;, # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package.
2818 &quot;version&quot;: { # Version contains structured information about the version of a package. # The version installed at this location.
2819 &quot;name&quot;: &quot;A String&quot;, # Required only when version kind is NORMAL. The main part of the version name.
2820 &quot;kind&quot;: &quot;A String&quot;, # Required. Distinguishes between sentinel MIN/MAX versions and normal versions.
2821 &quot;revision&quot;: &quot;A String&quot;, # The iteration of the package build from the above version.
2822 &quot;epoch&quot;: 42, # Used to correct mistakes in the version numbering scheme.
2823 },
2824 &quot;path&quot;: &quot;A String&quot;, # The path from which we gathered that this package/version is installed.
2825 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002826 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002827 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the installed package.
2828 },
2829 },
2830 &quot;intoto&quot;: { # This corresponds to a signed in-toto link - it is made up of one or more signatures and the in-toto link itself. This is used for occurrences of a Grafeas in-toto note. # Describes a specific in-toto link.
2831 &quot;signed&quot;: { # This corresponds to an in-toto link.
2832 &quot;environment&quot;: { # Defines an object for the environment field in in-toto links. The suggested fields are &quot;variables&quot;, &quot;filesystem&quot;, and &quot;workdir&quot;. # This is a field that can be used to capture information about the environment. It is suggested for this field to contain information that details environment variables, filesystem information, and the present working directory. The recommended structure of this field is: &quot;environment&quot;: { &quot;custom_values&quot;: { &quot;variables&quot;: &quot;&quot;, &quot;filesystem&quot;: &quot;&quot;, &quot;workdir&quot;: &quot;&quot;, &quot;&quot;: &quot;...&quot; } }
2833 &quot;customValues&quot;: {
2834 &quot;a_key&quot;: &quot;A String&quot;,
2835 },
2836 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002837 &quot;products&quot;: [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials.
2838 {
2839 &quot;resourceUri&quot;: &quot;A String&quot;,
2840 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2841 &quot;sha256&quot;: &quot;A String&quot;,
2842 },
2843 },
2844 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002845 &quot;byproducts&quot;: { # Defines an object for the byproducts field in in-toto links. The suggested fields are &quot;stderr&quot;, &quot;stdout&quot;, and &quot;return-value&quot;. # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step.
2846 &quot;customValues&quot;: {
2847 &quot;a_key&quot;: &quot;A String&quot;,
2848 },
2849 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002850 &quot;command&quot;: [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren&#x27;t directly mapped to a specific command. Each term in the command is an independent string in the list. An example of a command in the in-toto metadata field is: &quot;command&quot;: [&quot;git&quot;, &quot;clone&quot;, &quot;https://github.com/in-toto/demo-project.git&quot;]
2851 &quot;A String&quot;,
2852 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002853 &quot;materials&quot;: [ # Materials are the supply chain artifacts that go into the step and are used for the operation performed. The key of the map is the path of the artifact and the structure contains the recorded hash information. An example is: &quot;materials&quot;: [ { &quot;resource_uri&quot;: &quot;foo/bar&quot;, &quot;hashes&quot;: { &quot;sha256&quot;: &quot;ebebf...&quot;, : } } ]
2854 {
2855 &quot;resourceUri&quot;: &quot;A String&quot;,
2856 &quot;hashes&quot;: { # Defines a hash object for use in Materials and Products.
2857 &quot;sha256&quot;: &quot;A String&quot;,
2858 },
2859 },
2860 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002861 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002862 &quot;signatures&quot;: [
2863 { # A signature object consists of the KeyID used and the signature itself.
2864 &quot;keyid&quot;: &quot;A String&quot;,
2865 &quot;sig&quot;: &quot;A String&quot;,
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002866 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002867 ],
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002868 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002869 &quot;attestation&quot;: { # Details of an attestation occurrence. # Describes an attestation of an artifact.
2870 &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 authority 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). # Required. Attestation for the resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002871 &quot;genericSignedAttestation&quot;: { # An attestation wrapper that uses the Grafeas `Signature` message. This attestation must define the `serialized_payload` that the `signatures` verify and any metadata necessary to interpret that plaintext. The signatures should always be over the `serialized_payload` bytestring.
2872 &quot;serializedPayload&quot;: &quot;A String&quot;, # The serialized payload that is verified by one or more `signatures`. The encoding and semantic meaning of this payload must match what is set in `content_type`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002873 &quot;signatures&quot;: [ # One or more signatures over `serialized_payload`. Verifier implementations should consider this attestation message verified if at least one `signature` verifies `serialized_payload`. See `Signature` in common.proto for more details on signature structure and verification.
2874 { # Verifiers (e.g. Kritis implementations) MUST verify signatures with respect to the trust anchors defined in policy (e.g. a Kritis policy). Typically this means that the verifier has been configured with a map from `public_key_id` to public key material (and any required parameters, e.g. signing algorithm). In particular, verification implementations MUST NOT treat the signature `public_key_id` as anything more than a key lookup hint. The `public_key_id` DOES NOT validate or authenticate a public key; it only provides a mechanism for quickly selecting a public key ALREADY CONFIGURED on the verifier through a trusted channel. Verification implementations MUST reject signatures in any of the following circumstances: * The `public_key_id` is not recognized by the verifier. * The public key that `public_key_id` refers to does not verify the signature with respect to the payload. The `signature` contents SHOULD NOT be &quot;attached&quot; (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any &quot;attached&quot; payload and only verify signatures with respect to explicitly provided payload (e.g. a `payload` field on the proto message that holds this Signature, or the canonical serialization of the proto message that holds this signature).
2875 &quot;publicKeyId&quot;: &quot;A String&quot;, # The identifier for the public key that verifies this signature. * The `public_key_id` is required. * The `public_key_id` SHOULD be an RFC3986 conformant URI. * When possible, the `public_key_id` SHOULD be an immutable reference, such as a cryptographic digest. Examples of valid `public_key_id`s: OpenPGP V4 public key fingerprint: * &quot;openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA&quot; See https://www.iana.org/assignments/uri-schemes/prov/openpgp4fpr for more details on this scheme. RFC6920 digest-named SubjectPublicKeyInfo (digest of the DER serialization): * &quot;ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU&quot; * &quot;nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5&quot;
2876 &quot;signature&quot;: &quot;A String&quot;, # The content of the signature, an opaque bytestring. The payload that this signature verifies MUST be unambiguously provided with the Signature during verification. A wrapper message might provide the payload explicitly. Alternatively, a message might have a canonical serialization that can always be unambiguously computed to derive the payload.
2877 },
2878 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002879 &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).
2880 },
2881 &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. # A PGP signed attestation.
2882 &quot;signature&quot;: &quot;A String&quot;, # Required. 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.
2883 &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).
2884 &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 hexidecimal 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`.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002885 },
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002886 },
2887 },
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002888 &quot;discovered&quot;: { # Details of a discovery occurrence. # Describes when a resource was discovered.
2889 &quot;discovered&quot;: { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002890 &quot;analysisStatus&quot;: &quot;A String&quot;, # The status of discovery for the resource.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002891 &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 is output only and populated by the API.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002892 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002893 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
2894 {
2895 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
2896 },
2897 ],
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002898 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002899 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002900 &quot;continuousAnalysis&quot;: &quot;A String&quot;, # Whether the resource is continuously analyzed.
2901 &quot;lastAnalysisTime&quot;: &quot;A String&quot;, # The last time continuous analysis was done for this resource. Deprecated, do not use.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002902 },
2903 },
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002904 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time this occurrence was last updated.
2905 &quot;name&quot;: &quot;A String&quot;, # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002906 }</pre>
2907</div>
2908
2909<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002910 <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002911 <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. The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002912
2913Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002914 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 -07002915 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002916 The object takes the form of:
2917
2918{ # Request message for `SetIamPolicy` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002919 &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.
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002920 &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 -07002921 &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 -07002922 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002923 &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`.
2924 &quot;A String&quot;,
2925 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002926 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2927 &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).
2928 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2929 &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.
2930 &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.
2931 &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.
2932 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002933 },
2934 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002935 &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 -07002936 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002937 }
2938
2939 x__xgafv: string, V1 error format.
2940 Allowed values
2941 1 - v1 error format
2942 2 - v2 error format
2943
2944Returns:
2945 An object of the form:
2946
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002947 { # 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/).
Bu Sun Kim673ec5c2020-11-16 11:05:03 -07002948 &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 -07002949 &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 -07002950 { # Associates `members` with a `role`.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -08002951 &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`.
2952 &quot;A String&quot;,
2953 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002954 &quot;role&quot;: &quot;A String&quot;, # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2955 &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).
2956 &quot;expression&quot;: &quot;A String&quot;, # Textual representation of an expression in Common Expression Language syntax.
2957 &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.
2958 &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.
2959 &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.
2960 },
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002961 },
2962 ],
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -08002963 &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 -07002964 }</pre>
2965</div>
2966
2967<div class="method">
Dan O'Mearadd494642020-05-01 07:42:23 -07002968 <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002969 <pre>Returns the permissions that a caller has on the specified note or occurrence. Requires list permission on the project (for example, `containeranalysis.notes.list`). The resource takes the format `projects/[PROJECT_ID]/notes/[NOTE_ID]` for notes and `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]` for occurrences.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002970
2971Args:
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002972 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 -07002973 body: object, The request body.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002974 The object takes the form of:
2975
2976{ # Request message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002977 &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 -07002978 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002979 ],
2980 }
2981
2982 x__xgafv: string, V1 error format.
2983 Allowed values
2984 1 - v1 error format
2985 2 - v2 error format
2986
2987Returns:
2988 An object of the form:
2989
2990 { # Response message for `TestIamPermissions` method.
Dmitry Frenkel3e17f892020-10-06 16:46:05 -07002991 &quot;permissions&quot;: [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
Bu Sun Kim65020912020-05-20 12:08:20 -07002992 &quot;A String&quot;,
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07002993 ],
2994 }</pre>
2995</div>
2996
2997</body></html>