Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1 | <html><body> |
| 2 | <style> |
| 3 | |
| 4 | body, 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 | |
| 15 | body { |
| 16 | font-size: 13px; |
| 17 | padding: 1em; |
| 18 | } |
| 19 | |
| 20 | h1 { |
| 21 | font-size: 26px; |
| 22 | margin-bottom: 1em; |
| 23 | } |
| 24 | |
| 25 | h2 { |
| 26 | font-size: 24px; |
| 27 | margin-bottom: 1em; |
| 28 | } |
| 29 | |
| 30 | h3 { |
| 31 | font-size: 20px; |
| 32 | margin-bottom: 1em; |
| 33 | margin-top: 1em; |
| 34 | } |
| 35 | |
| 36 | pre, code { |
| 37 | line-height: 1.5; |
| 38 | font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace; |
| 39 | } |
| 40 | |
| 41 | pre { |
| 42 | margin-top: 0.5em; |
| 43 | } |
| 44 | |
| 45 | h1, h2, h3, p { |
| 46 | font-family: Arial, sans serif; |
| 47 | } |
| 48 | |
| 49 | h1, 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 78 | <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 79 | <p class="firstline">Creates new occurrences in batch.</p> |
| 80 | <p class="toc_element"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 81 | <code><a href="#close">close()</a></code></p> |
| 82 | <p class="firstline">Close httplib2 connections.</p> |
| 83 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 84 | <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 85 | <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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 88 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 89 | <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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 94 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 95 | <p class="toc_element"> |
| 96 | <code><a href="#getNotes">getNotes(name, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 97 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 98 | <p class="toc_element"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 99 | <code><a href="#getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 100 | <p class="firstline">Gets a summary of the number and severity of occurrences.</p> |
| 101 | <p class="toc_element"> |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 102 | <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 103 | <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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 108 | <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 109 | <p class="firstline">Updates the specified occurrence.</p> |
| 110 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 111 | <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 112 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 113 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 114 | <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 115 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 116 | <h3>Method Details</h3> |
| 117 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 118 | <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 119 | <pre>Creates new occurrences in batch. |
| 120 | |
| 121 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 122 | 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 123 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 124 | The object takes the form of: |
| 125 | |
| 126 | { # Request to create occurrences in batch. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 127 | "occurrences": [ # Required. The occurrences to create. Max allowed length is 1000. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 128 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 129 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 130 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 131 | "config": "A String", # Configuration used to create this deployment. |
| 132 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 133 | "platform": "A String", # Platform hosting this deployment. |
| 134 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 135 | "A String", |
| 136 | ], |
| 137 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 138 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 139 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 140 | }, |
| 141 | }, |
| 142 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 143 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 144 | "genericSignedAttestation": { # 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. |
| 145 | "serializedPayload": "A String", # 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`. |
| 146 | "signatures": [ # 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. |
| 147 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 148 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 149 | "signature": "A String", # 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. |
| 150 | }, |
| 151 | ], |
| 152 | "contentType": "A String", # 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). |
| 153 | }, |
| 154 | "pgpSignedAttestation": { # 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. |
| 155 | "signature": "A String", # 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. |
| 156 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 157 | "contentType": "A String", # 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). |
| 158 | }, |
| 159 | }, |
| 160 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 161 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 162 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 163 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 164 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 165 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 166 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 167 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 168 | { |
| 169 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 170 | }, |
| 171 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 172 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 173 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 174 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 175 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 176 | }, |
| 177 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 178 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 179 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 180 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 181 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 182 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 183 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 184 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 185 | "package": "A String", # Required. The package being described. |
| 186 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 187 | "revision": "A String", # The iteration of the package build from the above version. |
| 188 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 189 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 190 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 191 | }, |
| 192 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 193 | }, |
| 194 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 195 | "package": "A String", # Required. The package being described. |
| 196 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 197 | "revision": "A String", # The iteration of the package build from the above version. |
| 198 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 199 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 200 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 201 | }, |
| 202 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 203 | }, |
| 204 | }, |
| 205 | ], |
| 206 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 207 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 208 | { # Metadata for any related URL information. |
| 209 | "url": "A String", # Specific URL associated with the resource. |
| 210 | "label": "A String", # Label to describe usage of the URL. |
| 211 | }, |
| 212 | ], |
| 213 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 214 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 215 | "effectiveSeverity": "A String", # 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. |
| 216 | "cvssScore": 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. |
| 217 | }, |
| 218 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 219 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 220 | "name": "A String", # Output only. The name of the installed package. |
| 221 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 222 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 223 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 224 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 225 | "revision": "A String", # The iteration of the package build from the above version. |
| 226 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 227 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 228 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 229 | }, |
| 230 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 231 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 232 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 233 | }, |
| 234 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 235 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 236 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 237 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 238 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 239 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 240 | "startTime": "A String", # Time at which execution of the build was started. |
| 241 | "commands": [ # Commands requested by the build. |
| 242 | { # Command describes a step performed as part of the build pipeline. |
| 243 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 244 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 245 | "A String", |
| 246 | ], |
| 247 | "env": [ # Environment variables set before running this command. |
| 248 | "A String", |
| 249 | ], |
| 250 | "name": "A String", # 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`. |
| 251 | "args": [ # Command-line arguments used when executing this command. |
| 252 | "A String", |
| 253 | ], |
| 254 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 255 | }, |
| 256 | ], |
| 257 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 258 | "builtArtifacts": [ # Output of the build. |
| 259 | { # Artifact describes a build product. |
| 260 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 261 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 262 | "names": [ # 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. |
| 263 | "A String", |
| 264 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 265 | }, |
| 266 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 267 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 268 | "createTime": "A String", # Time at which the build was created. |
| 269 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 270 | "a_key": "A String", |
| 271 | }, |
| 272 | "projectId": "A String", # ID of the project. |
| 273 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 274 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 275 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 276 | "additionalContexts": [ # 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. |
| 277 | { # 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. |
| 278 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 279 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 280 | "name": "A String", # The alias name. |
| 281 | "kind": "A String", # The alias kind. |
| 282 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 283 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 284 | "revisionId": "A String", # A revision (commit) ID. |
| 285 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 286 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 287 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 288 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 289 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 290 | }, |
| 291 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 292 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 293 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 294 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 295 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 296 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 297 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 298 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 299 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 300 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 301 | "name": "A String", # The alias name. |
| 302 | "kind": "A String", # The alias kind. |
| 303 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 304 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 305 | "labels": { # Labels with user defined metadata. |
| 306 | "a_key": "A String", |
| 307 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 308 | }, |
| 309 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 310 | "context": { # 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. |
| 311 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 312 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 313 | "name": "A String", # The alias name. |
| 314 | "kind": "A String", # The alias kind. |
| 315 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 316 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 317 | "revisionId": "A String", # A revision (commit) ID. |
| 318 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 319 | }, |
| 320 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 321 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 322 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 323 | }, |
| 324 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 325 | "revisionId": "A String", # A revision ID. |
| 326 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 327 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 328 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 329 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 330 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 331 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 332 | }, |
| 333 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 334 | "name": "A String", # The alias name. |
| 335 | "kind": "A String", # The alias kind. |
| 336 | }, |
| 337 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 338 | "labels": { # Labels with user defined metadata. |
| 339 | "a_key": "A String", |
| 340 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 341 | }, |
| 342 | "fileHashes": { # 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. |
| 343 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 344 | "fileHash": [ # Required. Collection of file hashes. |
| 345 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 346 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 347 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 348 | }, |
| 349 | ], |
| 350 | }, |
| 351 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 352 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 353 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 354 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 355 | }, |
| 356 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 357 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 358 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 359 | "customValues": { |
| 360 | "a_key": "A String", |
| 361 | }, |
| 362 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 363 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 364 | "A String", |
| 365 | ], |
| 366 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 367 | { |
| 368 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 369 | "sha256": "A String", |
| 370 | }, |
| 371 | "resourceUri": "A String", |
| 372 | }, |
| 373 | ], |
| 374 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 375 | "customValues": { |
| 376 | "a_key": "A String", |
| 377 | }, |
| 378 | }, |
| 379 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 380 | { |
| 381 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 382 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 383 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 384 | "resourceUri": "A String", |
| 385 | }, |
| 386 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 387 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 388 | "signatures": [ |
| 389 | { # A signature object consists of the KeyID used and the signature itself. |
| 390 | "keyid": "A String", |
| 391 | "sig": "A String", |
| 392 | }, |
| 393 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 394 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 395 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 396 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 397 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 398 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 399 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 400 | { # Layer holds metadata specific to a layer of a Docker image. |
| 401 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 402 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 403 | }, |
| 404 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 405 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 406 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 407 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 408 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 409 | "A String", |
| 410 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 411 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 412 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 413 | }, |
| 414 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 415 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 416 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 417 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 418 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 419 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 420 | "value": "A String", # Required. The hash value. |
| 421 | "type": "A String", # Required. The type of hash that was performed. |
| 422 | }, |
| 423 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 424 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 425 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 426 | }, |
| 427 | ], |
| 428 | } |
| 429 | |
| 430 | x__xgafv: string, V1 error format. |
| 431 | Allowed values |
| 432 | 1 - v1 error format |
| 433 | 2 - v2 error format |
| 434 | |
| 435 | Returns: |
| 436 | An object of the form: |
| 437 | |
| 438 | { # Response for creating occurrences in batch. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 439 | "occurrences": [ # The occurrences that were created. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 440 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 441 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 442 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 443 | "config": "A String", # Configuration used to create this deployment. |
| 444 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 445 | "platform": "A String", # Platform hosting this deployment. |
| 446 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 447 | "A String", |
| 448 | ], |
| 449 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 450 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 451 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 452 | }, |
| 453 | }, |
| 454 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 455 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 456 | "genericSignedAttestation": { # 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. |
| 457 | "serializedPayload": "A String", # 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`. |
| 458 | "signatures": [ # 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. |
| 459 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 460 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 461 | "signature": "A String", # 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. |
| 462 | }, |
| 463 | ], |
| 464 | "contentType": "A String", # 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). |
| 465 | }, |
| 466 | "pgpSignedAttestation": { # 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. |
| 467 | "signature": "A String", # 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. |
| 468 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 469 | "contentType": "A String", # 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). |
| 470 | }, |
| 471 | }, |
| 472 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 473 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 474 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 475 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 476 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 477 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 478 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 479 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 480 | { |
| 481 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 482 | }, |
| 483 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 484 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 485 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 486 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 487 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 488 | }, |
| 489 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 490 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 491 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 492 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 493 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 494 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 495 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 496 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 497 | "package": "A String", # Required. The package being described. |
| 498 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 499 | "revision": "A String", # The iteration of the package build from the above version. |
| 500 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 501 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 502 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 503 | }, |
| 504 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 505 | }, |
| 506 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 507 | "package": "A String", # Required. The package being described. |
| 508 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 509 | "revision": "A String", # The iteration of the package build from the above version. |
| 510 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 511 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 512 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 513 | }, |
| 514 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 515 | }, |
| 516 | }, |
| 517 | ], |
| 518 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 519 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 520 | { # Metadata for any related URL information. |
| 521 | "url": "A String", # Specific URL associated with the resource. |
| 522 | "label": "A String", # Label to describe usage of the URL. |
| 523 | }, |
| 524 | ], |
| 525 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 526 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 527 | "effectiveSeverity": "A String", # 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. |
| 528 | "cvssScore": 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. |
| 529 | }, |
| 530 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 531 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 532 | "name": "A String", # Output only. The name of the installed package. |
| 533 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 534 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 535 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 536 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 537 | "revision": "A String", # The iteration of the package build from the above version. |
| 538 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 539 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 540 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 541 | }, |
| 542 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 543 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 544 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 545 | }, |
| 546 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 547 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 548 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 549 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 550 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 551 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 552 | "startTime": "A String", # Time at which execution of the build was started. |
| 553 | "commands": [ # Commands requested by the build. |
| 554 | { # Command describes a step performed as part of the build pipeline. |
| 555 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 556 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 557 | "A String", |
| 558 | ], |
| 559 | "env": [ # Environment variables set before running this command. |
| 560 | "A String", |
| 561 | ], |
| 562 | "name": "A String", # 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`. |
| 563 | "args": [ # Command-line arguments used when executing this command. |
| 564 | "A String", |
| 565 | ], |
| 566 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 567 | }, |
| 568 | ], |
| 569 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 570 | "builtArtifacts": [ # Output of the build. |
| 571 | { # Artifact describes a build product. |
| 572 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 573 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 574 | "names": [ # 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. |
| 575 | "A String", |
| 576 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 577 | }, |
| 578 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 579 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 580 | "createTime": "A String", # Time at which the build was created. |
| 581 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 582 | "a_key": "A String", |
| 583 | }, |
| 584 | "projectId": "A String", # ID of the project. |
| 585 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 586 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 587 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 588 | "additionalContexts": [ # 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. |
| 589 | { # 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. |
| 590 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 591 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 592 | "name": "A String", # The alias name. |
| 593 | "kind": "A String", # The alias kind. |
| 594 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 595 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 596 | "revisionId": "A String", # A revision (commit) ID. |
| 597 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 598 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 599 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 600 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 601 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 602 | }, |
| 603 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 604 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 605 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 606 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 607 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 608 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 609 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 610 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 611 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 612 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 613 | "name": "A String", # The alias name. |
| 614 | "kind": "A String", # The alias kind. |
| 615 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 616 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 617 | "labels": { # Labels with user defined metadata. |
| 618 | "a_key": "A String", |
| 619 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 620 | }, |
| 621 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 622 | "context": { # 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. |
| 623 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 624 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 625 | "name": "A String", # The alias name. |
| 626 | "kind": "A String", # The alias kind. |
| 627 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 628 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 629 | "revisionId": "A String", # A revision (commit) ID. |
| 630 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 631 | }, |
| 632 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 633 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 634 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 635 | }, |
| 636 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 637 | "revisionId": "A String", # A revision ID. |
| 638 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 639 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 640 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 641 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 642 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 643 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 644 | }, |
| 645 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 646 | "name": "A String", # The alias name. |
| 647 | "kind": "A String", # The alias kind. |
| 648 | }, |
| 649 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 650 | "labels": { # Labels with user defined metadata. |
| 651 | "a_key": "A String", |
| 652 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 653 | }, |
| 654 | "fileHashes": { # 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. |
| 655 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 656 | "fileHash": [ # Required. Collection of file hashes. |
| 657 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 658 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 659 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 660 | }, |
| 661 | ], |
| 662 | }, |
| 663 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 664 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 665 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 666 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 667 | }, |
| 668 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 669 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 670 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 671 | "customValues": { |
| 672 | "a_key": "A String", |
| 673 | }, |
| 674 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 675 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 676 | "A String", |
| 677 | ], |
| 678 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 679 | { |
| 680 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 681 | "sha256": "A String", |
| 682 | }, |
| 683 | "resourceUri": "A String", |
| 684 | }, |
| 685 | ], |
| 686 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 687 | "customValues": { |
| 688 | "a_key": "A String", |
| 689 | }, |
| 690 | }, |
| 691 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 692 | { |
| 693 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 694 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 695 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 696 | "resourceUri": "A String", |
| 697 | }, |
| 698 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 699 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 700 | "signatures": [ |
| 701 | { # A signature object consists of the KeyID used and the signature itself. |
| 702 | "keyid": "A String", |
| 703 | "sig": "A String", |
| 704 | }, |
| 705 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 706 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 707 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 708 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 709 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 710 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 711 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 712 | { # Layer holds metadata specific to a layer of a Docker image. |
| 713 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 714 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 715 | }, |
| 716 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 717 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 718 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 719 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 720 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 721 | "A String", |
| 722 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 723 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 724 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 725 | }, |
| 726 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 727 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 728 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 729 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 730 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 731 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 732 | "value": "A String", # Required. The hash value. |
| 733 | "type": "A String", # Required. The type of hash that was performed. |
| 734 | }, |
| 735 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 736 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 737 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 738 | }, |
| 739 | ], |
| 740 | }</pre> |
| 741 | </div> |
| 742 | |
| 743 | <div class="method"> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 744 | <code class="details" id="close">close()</code> |
| 745 | <pre>Close httplib2 connections.</pre> |
| 746 | </div> |
| 747 | |
| 748 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 749 | <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 750 | <pre>Creates a new occurrence. |
| 751 | |
| 752 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 753 | 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 754 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 755 | The object takes the form of: |
| 756 | |
| 757 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 758 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 759 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 760 | "config": "A String", # Configuration used to create this deployment. |
| 761 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 762 | "platform": "A String", # Platform hosting this deployment. |
| 763 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 764 | "A String", |
| 765 | ], |
| 766 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 767 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 768 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 769 | }, |
| 770 | }, |
| 771 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 772 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 773 | "genericSignedAttestation": { # 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. |
| 774 | "serializedPayload": "A String", # 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`. |
| 775 | "signatures": [ # 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. |
| 776 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 777 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 778 | "signature": "A String", # 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. |
| 779 | }, |
| 780 | ], |
| 781 | "contentType": "A String", # 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). |
| 782 | }, |
| 783 | "pgpSignedAttestation": { # 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. |
| 784 | "signature": "A String", # 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. |
| 785 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 786 | "contentType": "A String", # 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). |
| 787 | }, |
| 788 | }, |
| 789 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 790 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 791 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 792 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 793 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 794 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 795 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 796 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 797 | { |
| 798 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 799 | }, |
| 800 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 801 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 802 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 803 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 804 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 805 | }, |
| 806 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 807 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 808 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 809 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 810 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 811 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 812 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 813 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 814 | "package": "A String", # Required. The package being described. |
| 815 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 816 | "revision": "A String", # The iteration of the package build from the above version. |
| 817 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 818 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 819 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 820 | }, |
| 821 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 822 | }, |
| 823 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 824 | "package": "A String", # Required. The package being described. |
| 825 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 826 | "revision": "A String", # The iteration of the package build from the above version. |
| 827 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 828 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 829 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 830 | }, |
| 831 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 832 | }, |
| 833 | }, |
| 834 | ], |
| 835 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 836 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 837 | { # Metadata for any related URL information. |
| 838 | "url": "A String", # Specific URL associated with the resource. |
| 839 | "label": "A String", # Label to describe usage of the URL. |
| 840 | }, |
| 841 | ], |
| 842 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 843 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 844 | "effectiveSeverity": "A String", # 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. |
| 845 | "cvssScore": 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. |
| 846 | }, |
| 847 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 848 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 849 | "name": "A String", # Output only. The name of the installed package. |
| 850 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 851 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 852 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 853 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 854 | "revision": "A String", # The iteration of the package build from the above version. |
| 855 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 856 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 857 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 858 | }, |
| 859 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 860 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 861 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 862 | }, |
| 863 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 864 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 865 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 866 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 867 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 868 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 869 | "startTime": "A String", # Time at which execution of the build was started. |
| 870 | "commands": [ # Commands requested by the build. |
| 871 | { # Command describes a step performed as part of the build pipeline. |
| 872 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 873 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 874 | "A String", |
| 875 | ], |
| 876 | "env": [ # Environment variables set before running this command. |
| 877 | "A String", |
| 878 | ], |
| 879 | "name": "A String", # 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`. |
| 880 | "args": [ # Command-line arguments used when executing this command. |
| 881 | "A String", |
| 882 | ], |
| 883 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 884 | }, |
| 885 | ], |
| 886 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 887 | "builtArtifacts": [ # Output of the build. |
| 888 | { # Artifact describes a build product. |
| 889 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 890 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 891 | "names": [ # 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. |
| 892 | "A String", |
| 893 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 894 | }, |
| 895 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 896 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 897 | "createTime": "A String", # Time at which the build was created. |
| 898 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 899 | "a_key": "A String", |
| 900 | }, |
| 901 | "projectId": "A String", # ID of the project. |
| 902 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 903 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 904 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 905 | "additionalContexts": [ # 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. |
| 906 | { # 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. |
| 907 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 908 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 909 | "name": "A String", # The alias name. |
| 910 | "kind": "A String", # The alias kind. |
| 911 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 912 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 913 | "revisionId": "A String", # A revision (commit) ID. |
| 914 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 915 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 916 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 917 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 918 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 919 | }, |
| 920 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 921 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 922 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 923 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 924 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 925 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 926 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 927 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 928 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 929 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 930 | "name": "A String", # The alias name. |
| 931 | "kind": "A String", # The alias kind. |
| 932 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 933 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 934 | "labels": { # Labels with user defined metadata. |
| 935 | "a_key": "A String", |
| 936 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 937 | }, |
| 938 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 939 | "context": { # 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. |
| 940 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 941 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 942 | "name": "A String", # The alias name. |
| 943 | "kind": "A String", # The alias kind. |
| 944 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 945 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 946 | "revisionId": "A String", # A revision (commit) ID. |
| 947 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 948 | }, |
| 949 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 950 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 951 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 952 | }, |
| 953 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 954 | "revisionId": "A String", # A revision ID. |
| 955 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 956 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 957 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 958 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 959 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 960 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 961 | }, |
| 962 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 963 | "name": "A String", # The alias name. |
| 964 | "kind": "A String", # The alias kind. |
| 965 | }, |
| 966 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 967 | "labels": { # Labels with user defined metadata. |
| 968 | "a_key": "A String", |
| 969 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 970 | }, |
| 971 | "fileHashes": { # 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. |
| 972 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 973 | "fileHash": [ # Required. Collection of file hashes. |
| 974 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 975 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 976 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 977 | }, |
| 978 | ], |
| 979 | }, |
| 980 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 981 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 982 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 983 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 984 | }, |
| 985 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 986 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 987 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 988 | "customValues": { |
| 989 | "a_key": "A String", |
| 990 | }, |
| 991 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 992 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 993 | "A String", |
| 994 | ], |
| 995 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 996 | { |
| 997 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 998 | "sha256": "A String", |
| 999 | }, |
| 1000 | "resourceUri": "A String", |
| 1001 | }, |
| 1002 | ], |
| 1003 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1004 | "customValues": { |
| 1005 | "a_key": "A String", |
| 1006 | }, |
| 1007 | }, |
| 1008 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 1009 | { |
| 1010 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1011 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1012 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1013 | "resourceUri": "A String", |
| 1014 | }, |
| 1015 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1016 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1017 | "signatures": [ |
| 1018 | { # A signature object consists of the KeyID used and the signature itself. |
| 1019 | "keyid": "A String", |
| 1020 | "sig": "A String", |
| 1021 | }, |
| 1022 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1023 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1024 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1025 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 1026 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1027 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1028 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 1029 | { # Layer holds metadata specific to a layer of a Docker image. |
| 1030 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 1031 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 1032 | }, |
| 1033 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1034 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1035 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 1036 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1037 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1038 | "A String", |
| 1039 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1040 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1041 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1042 | }, |
| 1043 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1044 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 1045 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1046 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1047 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1048 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1049 | "value": "A String", # Required. The hash value. |
| 1050 | "type": "A String", # Required. The type of hash that was performed. |
| 1051 | }, |
| 1052 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1053 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1054 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1055 | } |
| 1056 | |
| 1057 | x__xgafv: string, V1 error format. |
| 1058 | Allowed values |
| 1059 | 1 - v1 error format |
| 1060 | 2 - v2 error format |
| 1061 | |
| 1062 | Returns: |
| 1063 | An object of the form: |
| 1064 | |
| 1065 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1066 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1067 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1068 | "config": "A String", # Configuration used to create this deployment. |
| 1069 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1070 | "platform": "A String", # Platform hosting this deployment. |
| 1071 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 1072 | "A String", |
| 1073 | ], |
| 1074 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1075 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1076 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 1077 | }, |
| 1078 | }, |
| 1079 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 1080 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 1081 | "genericSignedAttestation": { # 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. |
| 1082 | "serializedPayload": "A String", # 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`. |
| 1083 | "signatures": [ # 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. |
| 1084 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 1085 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 1086 | "signature": "A String", # 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. |
| 1087 | }, |
| 1088 | ], |
| 1089 | "contentType": "A String", # 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). |
| 1090 | }, |
| 1091 | "pgpSignedAttestation": { # 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. |
| 1092 | "signature": "A String", # 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. |
| 1093 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 1094 | "contentType": "A String", # 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). |
| 1095 | }, |
| 1096 | }, |
| 1097 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1098 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1099 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 1100 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1101 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1102 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 1103 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1104 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 1105 | { |
| 1106 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1107 | }, |
| 1108 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1109 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 1110 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1111 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1112 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1113 | }, |
| 1114 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1115 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 1116 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 1117 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 1118 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 1119 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 1120 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 1121 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 1122 | "package": "A String", # Required. The package being described. |
| 1123 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1124 | "revision": "A String", # The iteration of the package build from the above version. |
| 1125 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1126 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1127 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1128 | }, |
| 1129 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1130 | }, |
| 1131 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 1132 | "package": "A String", # Required. The package being described. |
| 1133 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1134 | "revision": "A String", # The iteration of the package build from the above version. |
| 1135 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1136 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1137 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1138 | }, |
| 1139 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1140 | }, |
| 1141 | }, |
| 1142 | ], |
| 1143 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 1144 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 1145 | { # Metadata for any related URL information. |
| 1146 | "url": "A String", # Specific URL associated with the resource. |
| 1147 | "label": "A String", # Label to describe usage of the URL. |
| 1148 | }, |
| 1149 | ], |
| 1150 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 1151 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 1152 | "effectiveSeverity": "A String", # 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. |
| 1153 | "cvssScore": 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. |
| 1154 | }, |
| 1155 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 1156 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 1157 | "name": "A String", # Output only. The name of the installed package. |
| 1158 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 1159 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 1160 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1161 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 1162 | "revision": "A String", # The iteration of the package build from the above version. |
| 1163 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1164 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1165 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1166 | }, |
| 1167 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 1168 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1169 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1170 | }, |
| 1171 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1172 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1173 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1174 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1175 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 1176 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 1177 | "startTime": "A String", # Time at which execution of the build was started. |
| 1178 | "commands": [ # Commands requested by the build. |
| 1179 | { # Command describes a step performed as part of the build pipeline. |
| 1180 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 1181 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 1182 | "A String", |
| 1183 | ], |
| 1184 | "env": [ # Environment variables set before running this command. |
| 1185 | "A String", |
| 1186 | ], |
| 1187 | "name": "A String", # 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`. |
| 1188 | "args": [ # Command-line arguments used when executing this command. |
| 1189 | "A String", |
| 1190 | ], |
| 1191 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 1192 | }, |
| 1193 | ], |
| 1194 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1195 | "builtArtifacts": [ # Output of the build. |
| 1196 | { # Artifact describes a build product. |
| 1197 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 1198 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 1199 | "names": [ # 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. |
| 1200 | "A String", |
| 1201 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1202 | }, |
| 1203 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1204 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1205 | "createTime": "A String", # Time at which the build was created. |
| 1206 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 1207 | "a_key": "A String", |
| 1208 | }, |
| 1209 | "projectId": "A String", # ID of the project. |
| 1210 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1211 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1212 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1213 | "additionalContexts": [ # 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. |
| 1214 | { # 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. |
| 1215 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1216 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1217 | "name": "A String", # The alias name. |
| 1218 | "kind": "A String", # The alias kind. |
| 1219 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1220 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1221 | "revisionId": "A String", # A revision (commit) ID. |
| 1222 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1223 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1224 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1225 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1226 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1227 | }, |
| 1228 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1229 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1230 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1231 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1232 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1233 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1234 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1235 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1236 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1237 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1238 | "name": "A String", # The alias name. |
| 1239 | "kind": "A String", # The alias kind. |
| 1240 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1241 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1242 | "labels": { # Labels with user defined metadata. |
| 1243 | "a_key": "A String", |
| 1244 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1245 | }, |
| 1246 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1247 | "context": { # 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. |
| 1248 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1249 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1250 | "name": "A String", # The alias name. |
| 1251 | "kind": "A String", # The alias kind. |
| 1252 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1253 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1254 | "revisionId": "A String", # A revision (commit) ID. |
| 1255 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1256 | }, |
| 1257 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1258 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1259 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1260 | }, |
| 1261 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1262 | "revisionId": "A String", # A revision ID. |
| 1263 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1264 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1265 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1266 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1267 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1268 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1269 | }, |
| 1270 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1271 | "name": "A String", # The alias name. |
| 1272 | "kind": "A String", # The alias kind. |
| 1273 | }, |
| 1274 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1275 | "labels": { # Labels with user defined metadata. |
| 1276 | "a_key": "A String", |
| 1277 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1278 | }, |
| 1279 | "fileHashes": { # 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. |
| 1280 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 1281 | "fileHash": [ # Required. Collection of file hashes. |
| 1282 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1283 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1284 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1285 | }, |
| 1286 | ], |
| 1287 | }, |
| 1288 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1289 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1290 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1291 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1292 | }, |
| 1293 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1294 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1295 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1296 | "customValues": { |
| 1297 | "a_key": "A String", |
| 1298 | }, |
| 1299 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1300 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 1301 | "A String", |
| 1302 | ], |
| 1303 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 1304 | { |
| 1305 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1306 | "sha256": "A String", |
| 1307 | }, |
| 1308 | "resourceUri": "A String", |
| 1309 | }, |
| 1310 | ], |
| 1311 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1312 | "customValues": { |
| 1313 | "a_key": "A String", |
| 1314 | }, |
| 1315 | }, |
| 1316 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 1317 | { |
| 1318 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1319 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1320 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1321 | "resourceUri": "A String", |
| 1322 | }, |
| 1323 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1324 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1325 | "signatures": [ |
| 1326 | { # A signature object consists of the KeyID used and the signature itself. |
| 1327 | "keyid": "A String", |
| 1328 | "sig": "A String", |
| 1329 | }, |
| 1330 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1331 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1332 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1333 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 1334 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1335 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1336 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 1337 | { # Layer holds metadata specific to a layer of a Docker image. |
| 1338 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 1339 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 1340 | }, |
| 1341 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1342 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1343 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 1344 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1345 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1346 | "A String", |
| 1347 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1348 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1349 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1350 | }, |
| 1351 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1352 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 1353 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1354 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1355 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1356 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1357 | "value": "A String", # Required. The hash value. |
| 1358 | "type": "A String", # Required. The type of hash that was performed. |
| 1359 | }, |
| 1360 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1361 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1362 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1363 | }</pre> |
| 1364 | </div> |
| 1365 | |
| 1366 | <div class="method"> |
| 1367 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1368 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1369 | |
| 1370 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1371 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1372 | x__xgafv: string, V1 error format. |
| 1373 | Allowed values |
| 1374 | 1 - v1 error format |
| 1375 | 2 - v2 error format |
| 1376 | |
| 1377 | Returns: |
| 1378 | An object of the form: |
| 1379 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1380 | { # 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1381 | }</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 | |
| 1388 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1389 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1390 | x__xgafv: string, V1 error format. |
| 1391 | Allowed values |
| 1392 | 1 - v1 error format |
| 1393 | 2 - v2 error format |
| 1394 | |
| 1395 | Returns: |
| 1396 | An object of the form: |
| 1397 | |
| 1398 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1399 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1400 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1401 | "config": "A String", # Configuration used to create this deployment. |
| 1402 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1403 | "platform": "A String", # Platform hosting this deployment. |
| 1404 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 1405 | "A String", |
| 1406 | ], |
| 1407 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1408 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1409 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 1410 | }, |
| 1411 | }, |
| 1412 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 1413 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 1414 | "genericSignedAttestation": { # 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. |
| 1415 | "serializedPayload": "A String", # 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`. |
| 1416 | "signatures": [ # 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. |
| 1417 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 1418 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 1419 | "signature": "A String", # 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. |
| 1420 | }, |
| 1421 | ], |
| 1422 | "contentType": "A String", # 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). |
| 1423 | }, |
| 1424 | "pgpSignedAttestation": { # 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. |
| 1425 | "signature": "A String", # 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. |
| 1426 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 1427 | "contentType": "A String", # 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). |
| 1428 | }, |
| 1429 | }, |
| 1430 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1431 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1432 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 1433 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1434 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1435 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 1436 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1437 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 1438 | { |
| 1439 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 1440 | }, |
| 1441 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1442 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 1443 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1444 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1445 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1446 | }, |
| 1447 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1448 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 1449 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 1450 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 1451 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 1452 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 1453 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 1454 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 1455 | "package": "A String", # Required. The package being described. |
| 1456 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1457 | "revision": "A String", # The iteration of the package build from the above version. |
| 1458 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1459 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1460 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1461 | }, |
| 1462 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1463 | }, |
| 1464 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 1465 | "package": "A String", # Required. The package being described. |
| 1466 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1467 | "revision": "A String", # The iteration of the package build from the above version. |
| 1468 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1469 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1470 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1471 | }, |
| 1472 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1473 | }, |
| 1474 | }, |
| 1475 | ], |
| 1476 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 1477 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 1478 | { # Metadata for any related URL information. |
| 1479 | "url": "A String", # Specific URL associated with the resource. |
| 1480 | "label": "A String", # Label to describe usage of the URL. |
| 1481 | }, |
| 1482 | ], |
| 1483 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 1484 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 1485 | "effectiveSeverity": "A String", # 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. |
| 1486 | "cvssScore": 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. |
| 1487 | }, |
| 1488 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 1489 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 1490 | "name": "A String", # Output only. The name of the installed package. |
| 1491 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 1492 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 1493 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1494 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 1495 | "revision": "A String", # The iteration of the package build from the above version. |
| 1496 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1497 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1498 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1499 | }, |
| 1500 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 1501 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1502 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1503 | }, |
| 1504 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1505 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1506 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1507 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1508 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 1509 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 1510 | "startTime": "A String", # Time at which execution of the build was started. |
| 1511 | "commands": [ # Commands requested by the build. |
| 1512 | { # Command describes a step performed as part of the build pipeline. |
| 1513 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 1514 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 1515 | "A String", |
| 1516 | ], |
| 1517 | "env": [ # Environment variables set before running this command. |
| 1518 | "A String", |
| 1519 | ], |
| 1520 | "name": "A String", # 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`. |
| 1521 | "args": [ # Command-line arguments used when executing this command. |
| 1522 | "A String", |
| 1523 | ], |
| 1524 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 1525 | }, |
| 1526 | ], |
| 1527 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1528 | "builtArtifacts": [ # Output of the build. |
| 1529 | { # Artifact describes a build product. |
| 1530 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 1531 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 1532 | "names": [ # 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. |
| 1533 | "A String", |
| 1534 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1535 | }, |
| 1536 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1537 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1538 | "createTime": "A String", # Time at which the build was created. |
| 1539 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 1540 | "a_key": "A String", |
| 1541 | }, |
| 1542 | "projectId": "A String", # ID of the project. |
| 1543 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 1544 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1545 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1546 | "additionalContexts": [ # 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. |
| 1547 | { # 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. |
| 1548 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1549 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1550 | "name": "A String", # The alias name. |
| 1551 | "kind": "A String", # The alias kind. |
| 1552 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1553 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1554 | "revisionId": "A String", # A revision (commit) ID. |
| 1555 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1556 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1557 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1558 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1559 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1560 | }, |
| 1561 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1562 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1563 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1564 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1565 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1566 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1567 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1568 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1569 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1570 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1571 | "name": "A String", # The alias name. |
| 1572 | "kind": "A String", # The alias kind. |
| 1573 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1574 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1575 | "labels": { # Labels with user defined metadata. |
| 1576 | "a_key": "A String", |
| 1577 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1578 | }, |
| 1579 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1580 | "context": { # 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. |
| 1581 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1582 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1583 | "name": "A String", # The alias name. |
| 1584 | "kind": "A String", # The alias kind. |
| 1585 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1586 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1587 | "revisionId": "A String", # A revision (commit) ID. |
| 1588 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1589 | }, |
| 1590 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1591 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1592 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1593 | }, |
| 1594 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 1595 | "revisionId": "A String", # A revision ID. |
| 1596 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1597 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1598 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1599 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1600 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1601 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1602 | }, |
| 1603 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 1604 | "name": "A String", # The alias name. |
| 1605 | "kind": "A String", # The alias kind. |
| 1606 | }, |
| 1607 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1608 | "labels": { # Labels with user defined metadata. |
| 1609 | "a_key": "A String", |
| 1610 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1611 | }, |
| 1612 | "fileHashes": { # 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. |
| 1613 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 1614 | "fileHash": [ # Required. Collection of file hashes. |
| 1615 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1616 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1617 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1618 | }, |
| 1619 | ], |
| 1620 | }, |
| 1621 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 1622 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1623 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1624 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1625 | }, |
| 1626 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1627 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1628 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1629 | "customValues": { |
| 1630 | "a_key": "A String", |
| 1631 | }, |
| 1632 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1633 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 1634 | "A String", |
| 1635 | ], |
| 1636 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 1637 | { |
| 1638 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1639 | "sha256": "A String", |
| 1640 | }, |
| 1641 | "resourceUri": "A String", |
| 1642 | }, |
| 1643 | ], |
| 1644 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1645 | "customValues": { |
| 1646 | "a_key": "A String", |
| 1647 | }, |
| 1648 | }, |
| 1649 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 1650 | { |
| 1651 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 1652 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1653 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1654 | "resourceUri": "A String", |
| 1655 | }, |
| 1656 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1657 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1658 | "signatures": [ |
| 1659 | { # A signature object consists of the KeyID used and the signature itself. |
| 1660 | "keyid": "A String", |
| 1661 | "sig": "A String", |
| 1662 | }, |
| 1663 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1664 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1665 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1666 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 1667 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1668 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1669 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 1670 | { # Layer holds metadata specific to a layer of a Docker image. |
| 1671 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 1672 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 1673 | }, |
| 1674 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1675 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1676 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 1677 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1678 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1679 | "A String", |
| 1680 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1681 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1682 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1683 | }, |
| 1684 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1685 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 1686 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1687 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1688 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 1689 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 1690 | "value": "A String", # Required. The hash value. |
| 1691 | "type": "A String", # Required. The type of hash that was performed. |
| 1692 | }, |
| 1693 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1694 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 1695 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1696 | }</pre> |
| 1697 | </div> |
| 1698 | |
| 1699 | <div class="method"> |
| 1700 | <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1701 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1702 | |
| 1703 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1704 | 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1705 | body: object, The request body. |
| 1706 | The object takes the form of: |
| 1707 | |
| 1708 | { # Request message for `GetIamPolicy` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1709 | "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`. |
| 1710 | "requestedPolicyVersion": 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1711 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1712 | } |
| 1713 | |
| 1714 | x__xgafv: string, V1 error format. |
| 1715 | Allowed values |
| 1716 | 1 - v1 error format |
| 1717 | 2 - v2 error format |
| 1718 | |
| 1719 | Returns: |
| 1720 | An object of the form: |
| 1721 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1722 | { # 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:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 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 < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1723 | "version": 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1724 | "bindings": [ # 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1725 | { # Associates `members` with a `role`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1726 | "members": [ # 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 | "A String", |
| 1728 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1729 | "condition": { # 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: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1730 | "title": "A String", # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1731 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1732 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1733 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1734 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1735 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1736 | }, |
| 1737 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1738 | "etag": "A String", # `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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1739 | }</pre> |
| 1740 | </div> |
| 1741 | |
| 1742 | <div class="method"> |
| 1743 | <code class="details" id="getNotes">getNotes(name, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1744 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1745 | |
| 1746 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1747 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1748 | x__xgafv: string, V1 error format. |
| 1749 | Allowed values |
| 1750 | 1 - v1 error format |
| 1751 | 2 - v2 error format |
| 1752 | |
| 1753 | Returns: |
| 1754 | An object of the form: |
| 1755 | |
| 1756 | { # A type of analysis that can be done for a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1757 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as a filter in list requests. |
| 1758 | "relatedNoteNames": [ # Other notes related to this note. |
| 1759 | "A String", |
| 1760 | ], |
| 1761 | "name": "A String", # Output only. The name of the note in the form of `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. |
| 1762 | "intoto": { # 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. |
| 1763 | "expectedCommand": [ # This field contains the expected command used to perform the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1764 | "A String", |
| 1765 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1766 | "signingKeys": [ # This field contains the public keys that can be used to verify the signatures on the step metadata. |
| 1767 | { # 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: { "key_id": "776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...", "key_type": "rsa", "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...", "key_scheme": "rsassa-pss-sha256" } The format for in-toto's key definition can be found in section 4.2 of the in-toto specification. |
| 1768 | "keyScheme": "A String", # This field contains the corresponding signature scheme. Eg: "rsassa-pss-sha256". |
| 1769 | "publicKeyValue": "A String", # This field contains the actual public key. |
| 1770 | "keyId": "A String", # key_id is an identifier for the signing key. |
| 1771 | "keyType": "A String", # This field identifies the specific signing method. Eg: "rsa", "ed25519", and "ecdsa". |
| 1772 | }, |
| 1773 | ], |
| 1774 | "threshold": "A String", # This field contains a value that indicates the minimum number of keys that need to be used to sign the step's in-toto link. |
| 1775 | "expectedProducts": [ |
| 1776 | { # Defines an object to declare an in-toto artifact rule |
| 1777 | "artifactRule": [ |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1778 | "A String", |
| 1779 | ], |
| 1780 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1781 | ], |
| 1782 | "stepName": "A String", # This field identifies the name of the step in the supply chain. |
| 1783 | "expectedMaterials": [ # 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. |
| 1784 | { # Defines an object to declare an in-toto artifact rule |
| 1785 | "artifactRule": [ |
| 1786 | "A String", |
| 1787 | ], |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1788 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 1789 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1790 | }, |
| 1791 | "baseImage": { # 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. |
| 1792 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image. |
| 1793 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
| 1794 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 1795 | "A String", |
| 1796 | ], |
| 1797 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
| 1798 | }, |
| 1799 | "resourceUrl": "A String", # Required. Immutable. The resource_url for the resource representing the basis of associated occurrence images. |
| 1800 | }, |
| 1801 | "vulnerability": { # Vulnerability provides metadata about a security vulnerability in a Note. # A note describing a package vulnerability. |
| 1802 | "cvssV3": { # Common Vulnerability Scoring System version 3. For details, see https://www.first.org/cvss/specification-document # The full description of the CVSSv3. |
| 1803 | "attackVector": "A String", # Base Metrics Represents the intrinsic characteristics of a vulnerability that are constant over time and across user environments. |
| 1804 | "impactScore": 3.14, |
| 1805 | "userInteraction": "A String", |
| 1806 | "baseScore": 3.14, # The base score is a function of the base metric scores. |
| 1807 | "confidentialityImpact": "A String", |
| 1808 | "privilegesRequired": "A String", |
| 1809 | "attackComplexity": "A String", |
| 1810 | "availabilityImpact": "A String", |
| 1811 | "scope": "A String", |
| 1812 | "exploitabilityScore": 3.14, |
| 1813 | "integrityImpact": "A String", |
| 1814 | }, |
| 1815 | "details": [ # All information about the package to specifically identify this vulnerability. One entry per (version range and cpe_uri) the package vulnerability has manifested in. |
| 1816 | { # 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 |
| 1817 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 1818 | "maxAffectedVersion": { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists. |
| 1819 | "revision": "A String", # The iteration of the package build from the above version. |
| 1820 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1821 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1822 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1823 | }, |
| 1824 | "package": "A String", # Required. The name of the package where the vulnerability was found. |
| 1825 | "minAffectedVersion": { # Version contains structured information about the version of a package. # The min version of the package in which the vulnerability exists. |
| 1826 | "revision": "A String", # The iteration of the package build from the above version. |
| 1827 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1828 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1829 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1830 | }, |
| 1831 | "fixedLocation": { # The location of the vulnerability. # The fix for this specific package version. |
| 1832 | "package": "A String", # Required. The package being described. |
| 1833 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 1834 | "revision": "A String", # The iteration of the package build from the above version. |
| 1835 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1836 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1837 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1838 | }, |
| 1839 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 1840 | }, |
| 1841 | "isObsolete": True or False, # Whether this detail is obsolete. Occurrences are expected not to point to obsolete details. |
| 1842 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc). |
| 1843 | "cpeUri": "A String", # 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. |
| 1844 | "description": "A String", # A vendor-specific description of this note. |
| 1845 | "sourceUpdateTime": "A String", # 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. |
| 1846 | }, |
| 1847 | ], |
| 1848 | "sourceUpdateTime": "A String", # 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. |
| 1849 | "windowsDetails": [ # Windows details get their own format because the information format and model don'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. |
| 1850 | { |
| 1851 | "fixingKbs": [ # 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's presence is considered a fix. |
| 1852 | { |
| 1853 | "name": "A String", # The KB name (generally of the form KB[0-9]+ i.e. KB123456). |
| 1854 | "url": "A String", # A link to the KB in the Windows update catalog - https://www.catalog.update.microsoft.com/ |
| 1855 | }, |
| 1856 | ], |
| 1857 | "description": "A String", # The description of the vulnerability. |
| 1858 | "cpeUri": "A String", # 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. |
| 1859 | "name": "A String", # Required. The name of the vulnerability. |
| 1860 | }, |
| 1861 | ], |
| 1862 | "severity": "A String", # Note provider assigned impact of the vulnerability. |
| 1863 | "cvssScore": 3.14, # The CVSS score for this vulnerability. |
| 1864 | }, |
| 1865 | "build": { # Note holding the version of the provider's builder and the signature of the provenance message in the build details occurrence. # A note describing build provenance for a verifiable build. |
| 1866 | "builderVersion": "A String", # Required. Immutable. Version of the builder which produced this build. |
| 1867 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in occurrences pointing to this build note containing build details. |
| 1868 | "keyId": "A String", # 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). |
| 1869 | "publicKey": "A String", # 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` |
| 1870 | "signature": "A String", # Required. Signature of the related `BuildProvenance`. In JSON, this is base-64 encoded. |
| 1871 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in `key_id`. |
| 1872 | }, |
| 1873 | }, |
| 1874 | "shortDescription": "A String", # A one sentence description of this note. |
| 1875 | "expirationTime": "A String", # Time of expiration for this note. Empty if note does not expire. |
| 1876 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 1877 | "resourceUri": [ # Required. Resource URI for the artifact being deployed. |
| 1878 | "A String", |
| 1879 | ], |
| 1880 | }, |
| 1881 | "longDescription": "A String", # A detailed description of this note. |
| 1882 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note exists in a provider's project. A `Discovery` occurrence is created in a consumer's project at the start of analysis. # A note describing the initial analysis of a resource. |
| 1883 | "analysisKind": "A String", # Required. Immutable. The kind of analysis that is handled by this discovery. |
| 1884 | }, |
| 1885 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a filter in list requests. |
| 1886 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For example, an organization might have one `Authority` for "QA" and one for "build". 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't all live in the same project. # A note describing an attestation role. |
| 1887 | "hint": { # 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 "readable" 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. |
| 1888 | "humanReadableName": "A String", # Required. The human readable name of this attestation authority, for example "qa". |
| 1889 | }, |
| 1890 | }, |
| 1891 | "relatedUrl": [ # URLs associated with this note. |
| 1892 | { # Metadata for any related URL information. |
| 1893 | "url": "A String", # Specific URL associated with the resource. |
| 1894 | "label": "A String", # Label to describe usage of the URL. |
| 1895 | }, |
| 1896 | ], |
| 1897 | "package": { # 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. |
| 1898 | "name": "A String", # Required. Immutable. The name of the package. |
| 1899 | "distribution": [ # The various channels by which a package is distributed. |
| 1900 | { # This represents a particular channel of distribution for a given package. E.g., Debian's jessie-backports dpkg mirror. |
| 1901 | "description": "A String", # The distribution channel-specific description of this package. |
| 1902 | "latestVersion": { # Version contains structured information about the version of a package. # The latest available version of this package in this distribution channel. |
| 1903 | "revision": "A String", # The iteration of the package build from the above version. |
| 1904 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 1905 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1906 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 1907 | }, |
| 1908 | "architecture": "A String", # The CPU architecture for which packages in this distribution channel were built. |
| 1909 | "url": "A String", # The distribution channel-specific homepage for this package. |
| 1910 | "cpeUri": "A String", # Required. The cpe_uri in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 1911 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 1912 | }, |
| 1913 | ], |
| 1914 | }, |
| 1915 | "kind": "A String", # Output only. The type of analysis. This field can be used as a filter in list requests. |
| 1916 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1917 | </div> |
| 1918 | |
| 1919 | <div class="method"> |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1920 | <code class="details" id="getVulnerabilitySummary">getVulnerabilitySummary(parent, filter=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1921 | <pre>Gets a summary of the number and severity of occurrences. |
| 1922 | |
| 1923 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1924 | parent: string, Required. The name of the project to get a vulnerability summary for in the form of `projects/[PROJECT_ID]`. (required) |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1925 | filter: string, The filter expression. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1926 | x__xgafv: string, V1 error format. |
| 1927 | Allowed values |
| 1928 | 1 - v1 error format |
| 1929 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1930 | |
| 1931 | Returns: |
| 1932 | An object of the form: |
| 1933 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1934 | { # A summary of how many vulnerability occurrences there are per resource and severity type. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1935 | "counts": [ # A listing by resource of the number of fixable and total vulnerabilities. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1936 | { # Per resource and severity counts of fixable and total vulnerabilities. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1937 | "resource": { # An entity that can have metadata. For example, a Docker image. # The affected resource. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1938 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1939 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1940 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1941 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1942 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 1943 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1944 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1945 | "totalCount": "A String", # The total number of vulnerabilities associated with this resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1946 | "severity": "A String", # The severity for this count. SEVERITY_UNSPECIFIED indicates total across all severities. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 1947 | "fixableCount": "A String", # The number of fixable vulnerabilities associated with this resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1948 | }, |
| 1949 | ], |
| 1950 | }</pre> |
| 1951 | </div> |
| 1952 | |
| 1953 | <div class="method"> |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1954 | <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1955 | <pre>Lists occurrences for the specified project. |
| 1956 | |
| 1957 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1958 | parent: string, Required. The name of the project to list occurrences for in the form of `projects/[PROJECT_ID]`. (required) |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 1959 | filter: string, The filter expression. |
| 1960 | 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1961 | pageToken: string, Token to provide to skip to a particular spot in the list. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1962 | x__xgafv: string, V1 error format. |
| 1963 | Allowed values |
| 1964 | 1 - v1 error format |
| 1965 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1966 | |
| 1967 | Returns: |
| 1968 | An object of the form: |
| 1969 | |
| 1970 | { # Response for listing occurrences. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 1971 | "nextPageToken": "A String", # 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 Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1972 | "occurrences": [ # The occurrences requested. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1973 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 1974 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 1975 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 1976 | "config": "A String", # Configuration used to create this deployment. |
| 1977 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 1978 | "platform": "A String", # Platform hosting this deployment. |
| 1979 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 1980 | "A String", |
| 1981 | ], |
| 1982 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 1983 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 1984 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 1985 | }, |
| 1986 | }, |
| 1987 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 1988 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 1989 | "genericSignedAttestation": { # 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. |
| 1990 | "serializedPayload": "A String", # 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`. |
| 1991 | "signatures": [ # 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. |
| 1992 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 1993 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 1994 | "signature": "A String", # 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. |
| 1995 | }, |
| 1996 | ], |
| 1997 | "contentType": "A String", # 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). |
| 1998 | }, |
| 1999 | "pgpSignedAttestation": { # 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. |
| 2000 | "signature": "A String", # 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. |
| 2001 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 2002 | "contentType": "A String", # 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). |
| 2003 | }, |
| 2004 | }, |
| 2005 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2006 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2007 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2008 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2009 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2010 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 2011 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2012 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2013 | { |
| 2014 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2015 | }, |
| 2016 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2017 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 2018 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2019 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2020 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2021 | }, |
| 2022 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2023 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2024 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 2025 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 2026 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 2027 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 2028 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 2029 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 2030 | "package": "A String", # Required. The package being described. |
| 2031 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2032 | "revision": "A String", # The iteration of the package build from the above version. |
| 2033 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2034 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2035 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2036 | }, |
| 2037 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2038 | }, |
| 2039 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 2040 | "package": "A String", # Required. The package being described. |
| 2041 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2042 | "revision": "A String", # The iteration of the package build from the above version. |
| 2043 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2044 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2045 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2046 | }, |
| 2047 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2048 | }, |
| 2049 | }, |
| 2050 | ], |
| 2051 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 2052 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2053 | { # Metadata for any related URL information. |
| 2054 | "url": "A String", # Specific URL associated with the resource. |
| 2055 | "label": "A String", # Label to describe usage of the URL. |
| 2056 | }, |
| 2057 | ], |
| 2058 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2059 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 2060 | "effectiveSeverity": "A String", # 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. |
| 2061 | "cvssScore": 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. |
| 2062 | }, |
| 2063 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2064 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2065 | "name": "A String", # Output only. The name of the installed package. |
| 2066 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2067 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2068 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2069 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2070 | "revision": "A String", # The iteration of the package build from the above version. |
| 2071 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2072 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2073 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2074 | }, |
| 2075 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2076 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2077 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2078 | }, |
| 2079 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2080 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2081 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2082 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2083 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2084 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 2085 | "startTime": "A String", # Time at which execution of the build was started. |
| 2086 | "commands": [ # Commands requested by the build. |
| 2087 | { # Command describes a step performed as part of the build pipeline. |
| 2088 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 2089 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2090 | "A String", |
| 2091 | ], |
| 2092 | "env": [ # Environment variables set before running this command. |
| 2093 | "A String", |
| 2094 | ], |
| 2095 | "name": "A String", # 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`. |
| 2096 | "args": [ # Command-line arguments used when executing this command. |
| 2097 | "A String", |
| 2098 | ], |
| 2099 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2100 | }, |
| 2101 | ], |
| 2102 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2103 | "builtArtifacts": [ # Output of the build. |
| 2104 | { # Artifact describes a build product. |
| 2105 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 2106 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 2107 | "names": [ # 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. |
| 2108 | "A String", |
| 2109 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2110 | }, |
| 2111 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2112 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2113 | "createTime": "A String", # Time at which the build was created. |
| 2114 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 2115 | "a_key": "A String", |
| 2116 | }, |
| 2117 | "projectId": "A String", # ID of the project. |
| 2118 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2119 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2120 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2121 | "additionalContexts": [ # 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. |
| 2122 | { # 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. |
| 2123 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2124 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2125 | "name": "A String", # The alias name. |
| 2126 | "kind": "A String", # The alias kind. |
| 2127 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2128 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2129 | "revisionId": "A String", # A revision (commit) ID. |
| 2130 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2131 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2132 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2133 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2134 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2135 | }, |
| 2136 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2137 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2138 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2139 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2140 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2141 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2142 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2143 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2144 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2145 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2146 | "name": "A String", # The alias name. |
| 2147 | "kind": "A String", # The alias kind. |
| 2148 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2149 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2150 | "labels": { # Labels with user defined metadata. |
| 2151 | "a_key": "A String", |
| 2152 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2153 | }, |
| 2154 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2155 | "context": { # 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. |
| 2156 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2157 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2158 | "name": "A String", # The alias name. |
| 2159 | "kind": "A String", # The alias kind. |
| 2160 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2161 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2162 | "revisionId": "A String", # A revision (commit) ID. |
| 2163 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2164 | }, |
| 2165 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2166 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2167 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2168 | }, |
| 2169 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2170 | "revisionId": "A String", # A revision ID. |
| 2171 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2172 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2173 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2174 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2175 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2176 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2177 | }, |
| 2178 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2179 | "name": "A String", # The alias name. |
| 2180 | "kind": "A String", # The alias kind. |
| 2181 | }, |
| 2182 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2183 | "labels": { # Labels with user defined metadata. |
| 2184 | "a_key": "A String", |
| 2185 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2186 | }, |
| 2187 | "fileHashes": { # 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. |
| 2188 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 2189 | "fileHash": [ # Required. Collection of file hashes. |
| 2190 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2191 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2192 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2193 | }, |
| 2194 | ], |
| 2195 | }, |
| 2196 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2197 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2198 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2199 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2200 | }, |
| 2201 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2202 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2203 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2204 | "customValues": { |
| 2205 | "a_key": "A String", |
| 2206 | }, |
| 2207 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2208 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 2209 | "A String", |
| 2210 | ], |
| 2211 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2212 | { |
| 2213 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2214 | "sha256": "A String", |
| 2215 | }, |
| 2216 | "resourceUri": "A String", |
| 2217 | }, |
| 2218 | ], |
| 2219 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2220 | "customValues": { |
| 2221 | "a_key": "A String", |
| 2222 | }, |
| 2223 | }, |
| 2224 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2225 | { |
| 2226 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2227 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2228 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2229 | "resourceUri": "A String", |
| 2230 | }, |
| 2231 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2232 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2233 | "signatures": [ |
| 2234 | { # A signature object consists of the KeyID used and the signature itself. |
| 2235 | "keyid": "A String", |
| 2236 | "sig": "A String", |
| 2237 | }, |
| 2238 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2239 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2240 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2241 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2242 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2243 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2244 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 2245 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2246 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 2247 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2248 | }, |
| 2249 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2250 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2251 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 2252 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2253 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2254 | "A String", |
| 2255 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2256 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2257 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2258 | }, |
| 2259 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2260 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2261 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2262 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2263 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2264 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2265 | "value": "A String", # Required. The hash value. |
| 2266 | "type": "A String", # Required. The type of hash that was performed. |
| 2267 | }, |
| 2268 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2269 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2270 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2271 | }, |
| 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 | |
| 2280 | Args: |
| 2281 | previous_request: The request for the previous page. (required) |
| 2282 | previous_response: The response from the request for the previous page. (required) |
| 2283 | |
| 2284 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2285 | A request object that you can call 'execute()' on to request the next |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2286 | page. Returns None if there are no more items in the collection. |
| 2287 | </pre> |
| 2288 | </div> |
| 2289 | |
| 2290 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2291 | <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2292 | <pre>Updates the specified occurrence. |
| 2293 | |
| 2294 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2295 | name: string, Required. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2296 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2297 | The object takes the form of: |
| 2298 | |
| 2299 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2300 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 2301 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 2302 | "config": "A String", # Configuration used to create this deployment. |
| 2303 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 2304 | "platform": "A String", # Platform hosting this deployment. |
| 2305 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 2306 | "A String", |
| 2307 | ], |
| 2308 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 2309 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 2310 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 2311 | }, |
| 2312 | }, |
| 2313 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 2314 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 2315 | "genericSignedAttestation": { # 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. |
| 2316 | "serializedPayload": "A String", # 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`. |
| 2317 | "signatures": [ # 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. |
| 2318 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 2319 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 2320 | "signature": "A String", # 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. |
| 2321 | }, |
| 2322 | ], |
| 2323 | "contentType": "A String", # 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). |
| 2324 | }, |
| 2325 | "pgpSignedAttestation": { # 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. |
| 2326 | "signature": "A String", # 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. |
| 2327 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 2328 | "contentType": "A String", # 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). |
| 2329 | }, |
| 2330 | }, |
| 2331 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2332 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2333 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2334 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2335 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2336 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 2337 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2338 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2339 | { |
| 2340 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2341 | }, |
| 2342 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2343 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 2344 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2345 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2346 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2347 | }, |
| 2348 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2349 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2350 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 2351 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 2352 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 2353 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 2354 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 2355 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 2356 | "package": "A String", # Required. The package being described. |
| 2357 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2358 | "revision": "A String", # The iteration of the package build from the above version. |
| 2359 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2360 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2361 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2362 | }, |
| 2363 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2364 | }, |
| 2365 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 2366 | "package": "A String", # Required. The package being described. |
| 2367 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2368 | "revision": "A String", # The iteration of the package build from the above version. |
| 2369 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2370 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2371 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2372 | }, |
| 2373 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2374 | }, |
| 2375 | }, |
| 2376 | ], |
| 2377 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 2378 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2379 | { # Metadata for any related URL information. |
| 2380 | "url": "A String", # Specific URL associated with the resource. |
| 2381 | "label": "A String", # Label to describe usage of the URL. |
| 2382 | }, |
| 2383 | ], |
| 2384 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2385 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 2386 | "effectiveSeverity": "A String", # 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. |
| 2387 | "cvssScore": 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. |
| 2388 | }, |
| 2389 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2390 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2391 | "name": "A String", # Output only. The name of the installed package. |
| 2392 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2393 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2394 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2395 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2396 | "revision": "A String", # The iteration of the package build from the above version. |
| 2397 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2398 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2399 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2400 | }, |
| 2401 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2402 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2403 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2404 | }, |
| 2405 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2406 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2407 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2408 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2409 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2410 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 2411 | "startTime": "A String", # Time at which execution of the build was started. |
| 2412 | "commands": [ # Commands requested by the build. |
| 2413 | { # Command describes a step performed as part of the build pipeline. |
| 2414 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 2415 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2416 | "A String", |
| 2417 | ], |
| 2418 | "env": [ # Environment variables set before running this command. |
| 2419 | "A String", |
| 2420 | ], |
| 2421 | "name": "A String", # 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`. |
| 2422 | "args": [ # Command-line arguments used when executing this command. |
| 2423 | "A String", |
| 2424 | ], |
| 2425 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2426 | }, |
| 2427 | ], |
| 2428 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2429 | "builtArtifacts": [ # Output of the build. |
| 2430 | { # Artifact describes a build product. |
| 2431 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 2432 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 2433 | "names": [ # 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. |
| 2434 | "A String", |
| 2435 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2436 | }, |
| 2437 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2438 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2439 | "createTime": "A String", # Time at which the build was created. |
| 2440 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 2441 | "a_key": "A String", |
| 2442 | }, |
| 2443 | "projectId": "A String", # ID of the project. |
| 2444 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2445 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2446 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2447 | "additionalContexts": [ # 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. |
| 2448 | { # 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. |
| 2449 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2450 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2451 | "name": "A String", # The alias name. |
| 2452 | "kind": "A String", # The alias kind. |
| 2453 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2454 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2455 | "revisionId": "A String", # A revision (commit) ID. |
| 2456 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2457 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2458 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2459 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2460 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2461 | }, |
| 2462 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2463 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2464 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2465 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2466 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2467 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2468 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2469 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2470 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2471 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2472 | "name": "A String", # The alias name. |
| 2473 | "kind": "A String", # The alias kind. |
| 2474 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2475 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2476 | "labels": { # Labels with user defined metadata. |
| 2477 | "a_key": "A String", |
| 2478 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2479 | }, |
| 2480 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2481 | "context": { # 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. |
| 2482 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2483 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2484 | "name": "A String", # The alias name. |
| 2485 | "kind": "A String", # The alias kind. |
| 2486 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2487 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2488 | "revisionId": "A String", # A revision (commit) ID. |
| 2489 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2490 | }, |
| 2491 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2492 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2493 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2494 | }, |
| 2495 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2496 | "revisionId": "A String", # A revision ID. |
| 2497 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2498 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2499 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2500 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2501 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2502 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2503 | }, |
| 2504 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2505 | "name": "A String", # The alias name. |
| 2506 | "kind": "A String", # The alias kind. |
| 2507 | }, |
| 2508 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2509 | "labels": { # Labels with user defined metadata. |
| 2510 | "a_key": "A String", |
| 2511 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2512 | }, |
| 2513 | "fileHashes": { # 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. |
| 2514 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 2515 | "fileHash": [ # Required. Collection of file hashes. |
| 2516 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2517 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2518 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2519 | }, |
| 2520 | ], |
| 2521 | }, |
| 2522 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2523 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2524 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2525 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2526 | }, |
| 2527 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2528 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2529 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2530 | "customValues": { |
| 2531 | "a_key": "A String", |
| 2532 | }, |
| 2533 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2534 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 2535 | "A String", |
| 2536 | ], |
| 2537 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2538 | { |
| 2539 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2540 | "sha256": "A String", |
| 2541 | }, |
| 2542 | "resourceUri": "A String", |
| 2543 | }, |
| 2544 | ], |
| 2545 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2546 | "customValues": { |
| 2547 | "a_key": "A String", |
| 2548 | }, |
| 2549 | }, |
| 2550 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2551 | { |
| 2552 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2553 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2554 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2555 | "resourceUri": "A String", |
| 2556 | }, |
| 2557 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2558 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2559 | "signatures": [ |
| 2560 | { # A signature object consists of the KeyID used and the signature itself. |
| 2561 | "keyid": "A String", |
| 2562 | "sig": "A String", |
| 2563 | }, |
| 2564 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2565 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2566 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2567 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2568 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2569 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2570 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 2571 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2572 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 2573 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2574 | }, |
| 2575 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2576 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2577 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 2578 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2579 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2580 | "A String", |
| 2581 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2582 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2583 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2584 | }, |
| 2585 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2586 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2587 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2588 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2589 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2590 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2591 | "value": "A String", # Required. The hash value. |
| 2592 | "type": "A String", # Required. The type of hash that was performed. |
| 2593 | }, |
| 2594 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2595 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2596 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2597 | } |
| 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 | |
| 2605 | Returns: |
| 2606 | An object of the form: |
| 2607 | |
| 2608 | { # An instance of an analysis type that has been found on a resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2609 | "deployment": { # Details of a deployment occurrence. # Describes the deployment of an artifact on a runtime. |
| 2610 | "deployment": { # The period during which some deployable was active in a runtime. # Required. Deployment history for the resource. |
| 2611 | "config": "A String", # Configuration used to create this deployment. |
| 2612 | "deployTime": "A String", # Required. Beginning of the lifetime of this deployment. |
| 2613 | "platform": "A String", # Platform hosting this deployment. |
| 2614 | "resourceUri": [ # Output only. Resource URI for the artifact being deployed taken from the deployable field with the same name. |
| 2615 | "A String", |
| 2616 | ], |
| 2617 | "userEmail": "A String", # Identity of the user that triggered this deployment. |
| 2618 | "address": "A String", # Address of the runtime element hosting this deployment. |
| 2619 | "undeployTime": "A String", # End of the lifetime of this deployment. |
| 2620 | }, |
| 2621 | }, |
| 2622 | "attestation": { # Details of an attestation occurrence. # Describes an attestation of an artifact. |
| 2623 | "attestation": { # Occurrence that represents a single "attestation". 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. |
| 2624 | "genericSignedAttestation": { # 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. |
| 2625 | "serializedPayload": "A String", # 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`. |
| 2626 | "signatures": [ # 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. |
| 2627 | { # 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 "attached" (where the payload is included with the serialized `signature` bytes). Verifiers MUST ignore any "attached" 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). |
| 2628 | "publicKeyId": "A String", # 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: * "openpgp4fpr:74FAF3B861BDA0870C7B6DEF607E48D2A663AEEA" 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): * "ni:///sha-256;cD9o9Cq6LG3jD0iKXqEi_vdjJGecm_iXkbqVoScViaU" * "nih:///sha-256;703f68f42aba2c6de30f488a5ea122fef76324679c9bf89791ba95a1271589a5" |
| 2629 | "signature": "A String", # 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. |
| 2630 | }, |
| 2631 | ], |
| 2632 | "contentType": "A String", # 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). |
| 2633 | }, |
| 2634 | "pgpSignedAttestation": { # 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. |
| 2635 | "signature": "A String", # 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. |
| 2636 | "pgpKeyId": "A String", # 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 "LONG", "SHORT", 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`. |
| 2637 | "contentType": "A String", # 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). |
| 2638 | }, |
| 2639 | }, |
| 2640 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2641 | "remediation": "A String", # A description of actions that can be taken to remedy the note. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2642 | "discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered. |
| 2643 | "discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2644 | "continuousAnalysis": "A String", # Whether the resource is continuously analyzed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2645 | "analysisStatus": "A String", # The status of discovery for the resource. |
| 2646 | "analysisStatusError": { # 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 Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2647 | "details": [ # A list of messages that carry the error details. There is a common set of message types for APIs to use. |
| 2648 | { |
| 2649 | "a_key": "", # Properties of the object. Contains field @type with type URL. |
| 2650 | }, |
| 2651 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2652 | "code": 42, # The status code, which should be an enum value of google.rpc.Code. |
| 2653 | "message": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2654 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2655 | "lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource. Deprecated, do not use. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2656 | }, |
| 2657 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2658 | "name": "A String", # Output only. The name of the occurrence in the form of `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. |
| 2659 | "vulnerability": { # Details of a vulnerability Occurrence. # Describes a security vulnerability. |
| 2660 | "type": "A String", # The type of package; whether native or non native(ruby gems, node.js packages etc) |
| 2661 | "packageIssue": [ # Required. The set of affected locations and their fixes (if available) within the associated resource. |
| 2662 | { # This message wraps a location affected by a vulnerability and its associated fix (if one is available). |
| 2663 | "severityName": "A String", # Deprecated, use Details.effective_severity instead The severity (e.g., distro assigned severity) for this vulnerability. |
| 2664 | "fixedLocation": { # The location of the vulnerability. # The location of the available fix for vulnerability. |
| 2665 | "package": "A String", # Required. The package being described. |
| 2666 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2667 | "revision": "A String", # The iteration of the package build from the above version. |
| 2668 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2669 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2670 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2671 | }, |
| 2672 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2673 | }, |
| 2674 | "affectedLocation": { # The location of the vulnerability. # Required. The location of the vulnerability. |
| 2675 | "package": "A String", # Required. The package being described. |
| 2676 | "version": { # Version contains structured information about the version of a package. # Required. The version of the package being described. |
| 2677 | "revision": "A String", # The iteration of the package build from the above version. |
| 2678 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2679 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2680 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2681 | }, |
| 2682 | "cpeUri": "A String", # Required. The CPE URI in [cpe format](https://cpe.mitre.org/specification/) format. Examples include distro or storage location for vulnerable jar. |
| 2683 | }, |
| 2684 | }, |
| 2685 | ], |
| 2686 | "longDescription": "A String", # Output only. A detailed description of this vulnerability. |
| 2687 | "relatedUrls": [ # Output only. URLs related to this vulnerability. |
| 2688 | { # Metadata for any related URL information. |
| 2689 | "url": "A String", # Specific URL associated with the resource. |
| 2690 | "label": "A String", # Label to describe usage of the URL. |
| 2691 | }, |
| 2692 | ], |
| 2693 | "shortDescription": "A String", # Output only. A one sentence description of this vulnerability. |
| 2694 | "severity": "A String", # Output only. The note provider assigned Severity of the vulnerability. |
| 2695 | "effectiveSeverity": "A String", # 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. |
| 2696 | "cvssScore": 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. |
| 2697 | }, |
| 2698 | "installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource. |
| 2699 | "installation": { # This represents how a particular software package may be installed on a system. # Required. Where the package was installed. |
| 2700 | "name": "A String", # Output only. The name of the installed package. |
| 2701 | "location": [ # Required. All of the places within the filesystem versions of this package have been found. |
| 2702 | { # An occurrence of a particular package installation found within a system's filesystem. E.g., glibc was found in `/var/lib/dpkg/status`. |
| 2703 | "cpeUri": "A String", # Required. The CPE URI in [CPE format](https://cpe.mitre.org/specification/) denoting the package manager version distributing a package. |
| 2704 | "version": { # Version contains structured information about the version of a package. # The version installed at this location. |
| 2705 | "revision": "A String", # The iteration of the package build from the above version. |
| 2706 | "name": "A String", # Required only when version kind is NORMAL. The main part of the version name. |
| 2707 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 2708 | "kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal versions. |
| 2709 | }, |
| 2710 | "path": "A String", # The path from which we gathered that this package/version is installed. |
| 2711 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2712 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2713 | }, |
| 2714 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2715 | "build": { # Details of a build occurrence. # Describes a verifiable build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2716 | "provenanceBytes": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2717 | "provenance": { # 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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2718 | "logsUri": "A String", # URI where any logs for this provenance were written. |
| 2719 | "triggerId": "A String", # Trigger identifier if the build was triggered automatically; empty if not. |
| 2720 | "startTime": "A String", # Time at which execution of the build was started. |
| 2721 | "commands": [ # Commands requested by the build. |
| 2722 | { # Command describes a step performed as part of the build pipeline. |
| 2723 | "dir": "A String", # Working directory (relative to project source root) used when running this command. |
| 2724 | "waitFor": [ # The ID(s) of the command(s) that this command depends on. |
| 2725 | "A String", |
| 2726 | ], |
| 2727 | "env": [ # Environment variables set before running this command. |
| 2728 | "A String", |
| 2729 | ], |
| 2730 | "name": "A String", # 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`. |
| 2731 | "args": [ # Command-line arguments used when executing this command. |
| 2732 | "A String", |
| 2733 | ], |
| 2734 | "id": "A String", # Optional unique identifier for this command, used in wait_for to reference this command as a dependency. |
| 2735 | }, |
| 2736 | ], |
| 2737 | "id": "A String", # Required. Unique identifier of the build. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2738 | "builtArtifacts": [ # Output of the build. |
| 2739 | { # Artifact describes a build product. |
| 2740 | "id": "A String", # Artifact ID, if any; for container images, this will be a URL by digest like `gcr.io/projectID/imagename@sha256:123456`. |
| 2741 | "checksum": "A String", # Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. |
| 2742 | "names": [ # 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. |
| 2743 | "A String", |
| 2744 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2745 | }, |
| 2746 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2747 | "creator": "A String", # E-mail address of the user who initiated this build. Note that this was the user'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 Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2748 | "createTime": "A String", # Time at which the build was created. |
| 2749 | "buildOptions": { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details. |
| 2750 | "a_key": "A String", |
| 2751 | }, |
| 2752 | "projectId": "A String", # ID of the project. |
| 2753 | "builderVersion": "A String", # Version string of the builder at the time this build was executed. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame] | 2754 | "sourceProvenance": { # Source describes the location of the source used for the build. # Details of the Source input to the build. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2755 | "artifactStorageSourceUri": "A String", # If provided, the input binary artifacts for the build came from this location. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2756 | "additionalContexts": [ # 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. |
| 2757 | { # 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. |
| 2758 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2759 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2760 | "name": "A String", # The alias name. |
| 2761 | "kind": "A String", # The alias kind. |
| 2762 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2763 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2764 | "revisionId": "A String", # A revision (commit) ID. |
| 2765 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2766 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2767 | "git": { # 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). |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2768 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2769 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2770 | }, |
| 2771 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2772 | "revisionId": "A String", # A revision ID. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2773 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2774 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2775 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2776 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2777 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2778 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2779 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2780 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2781 | "name": "A String", # The alias name. |
| 2782 | "kind": "A String", # The alias kind. |
| 2783 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2784 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2785 | "labels": { # Labels with user defined metadata. |
| 2786 | "a_key": "A String", |
| 2787 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2788 | }, |
| 2789 | ], |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2790 | "context": { # 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. |
| 2791 | "gerrit": { # A SourceContext referring to a Gerrit project. # A SourceContext referring to a Gerrit project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2792 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2793 | "name": "A String", # The alias name. |
| 2794 | "kind": "A String", # The alias kind. |
| 2795 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2796 | "hostUri": "A String", # The URI of a running Gerrit instance. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2797 | "revisionId": "A String", # A revision (commit) ID. |
| 2798 | "gerritProject": "A String", # The full project name within the host. Projects may be nested, so "project/subproject" is a valid project name. The "repo name" is the hostURI/project. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2799 | }, |
| 2800 | "git": { # 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2801 | "url": "A String", # Git repository URL. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2802 | "revisionId": "A String", # Git commit hash. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2803 | }, |
| 2804 | "cloudRepo": { # A CloudRepoSourceContext denotes a particular revision in a Google Cloud Source Repo. # A SourceContext referring to a revision in a Google Cloud Source Repo. |
| 2805 | "revisionId": "A String", # A revision ID. |
| 2806 | "repoId": { # A unique identifier for a Cloud Repo. # The ID of the repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2807 | "projectRepoId": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2808 | "projectId": "A String", # The ID of the project. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2809 | "repoName": "A String", # The name of the repo. Leave empty for the default repo. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2810 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2811 | "uid": "A String", # A server-assigned, globally unique identifier. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2812 | }, |
| 2813 | "aliasContext": { # An alias to a repo revision. # An alias, which may be a branch or tag. |
| 2814 | "name": "A String", # The alias name. |
| 2815 | "kind": "A String", # The alias kind. |
| 2816 | }, |
| 2817 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2818 | "labels": { # Labels with user defined metadata. |
| 2819 | "a_key": "A String", |
| 2820 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2821 | }, |
| 2822 | "fileHashes": { # 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. |
| 2823 | "a_key": { # Container message for hashes of byte content of files, used in source messages to verify integrity of source input to the build. |
| 2824 | "fileHash": [ # Required. Collection of file hashes. |
| 2825 | { # Container message for hash values. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2826 | "value": "A String", # Required. The hash value. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2827 | "type": "A String", # Required. The type of hash that was performed. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2828 | }, |
| 2829 | ], |
| 2830 | }, |
| 2831 | }, |
Bu Sun Kim | 673ec5c | 2020-11-16 11:05:03 -0700 | [diff] [blame] | 2832 | }, |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2833 | "endTime": "A String", # Time at which execution of the build was finished. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2834 | }, |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2835 | }, |
| 2836 | "intoto": { # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2837 | "signed": { # This corresponds to an in-toto link. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2838 | "environment": { # Defines an object for the environment field in in-toto links. The suggested fields are "variables", "filesystem", and "workdir". # 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: "environment": { "custom_values": { "variables": "", "filesystem": "", "workdir": "", "": "..." } } |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2839 | "customValues": { |
| 2840 | "a_key": "A String", |
| 2841 | }, |
| 2842 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2843 | "command": [ # This field contains the full command executed for the step. This can also be empty if links are generated for operations that aren'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: "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"] |
| 2844 | "A String", |
| 2845 | ], |
| 2846 | "products": [ # Products are the supply chain artifacts generated as a result of the step. The structure is identical to that of materials. |
| 2847 | { |
| 2848 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2849 | "sha256": "A String", |
| 2850 | }, |
| 2851 | "resourceUri": "A String", |
| 2852 | }, |
| 2853 | ], |
| 2854 | "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested fields are "stderr", "stdout", and "return-value". # ByProducts are data generated as part of a software supply chain step, but are not the actual result of the step. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2855 | "customValues": { |
| 2856 | "a_key": "A String", |
| 2857 | }, |
| 2858 | }, |
| 2859 | "materials": [ # 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: "materials": [ { "resource_uri": "foo/bar", "hashes": { "sha256": "ebebf...", : } } ] |
| 2860 | { |
| 2861 | "hashes": { # Defines a hash object for use in Materials and Products. |
| 2862 | "sha256": "A String", |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2863 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2864 | "resourceUri": "A String", |
| 2865 | }, |
| 2866 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2867 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2868 | "signatures": [ |
| 2869 | { # A signature object consists of the KeyID used and the signature itself. |
| 2870 | "keyid": "A String", |
| 2871 | "sig": "A String", |
| 2872 | }, |
| 2873 | ], |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2874 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2875 | "updateTime": "A String", # Output only. The time this occurrence was last updated. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2876 | "derivedImage": { # Details of an image occurrence. # Describes how this resource derives from the basis in the associated note. |
| 2877 | "derivedImage": { # 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. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2878 | "baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image occurrence. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2879 | "layerInfo": [ # This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. |
| 2880 | { # Layer holds metadata specific to a layer of a Docker image. |
| 2881 | "arguments": "A String", # The recovered arguments to the Dockerfile directive. |
| 2882 | "directive": "A String", # Required. The recovered Dockerfile directive used to construct this layer. |
| 2883 | }, |
| 2884 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2885 | "distance": 42, # Output only. The number of layers by which this image differs from the associated image basis. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2886 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image. |
| 2887 | "v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1 representation. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2888 | "v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image. |
| 2889 | "A String", |
| 2890 | ], |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2891 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) Only the name of the final blob is kept. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2892 | }, |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2893 | }, |
| 2894 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2895 | "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests. |
| 2896 | "noteName": "A String", # 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. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2897 | "createTime": "A String", # Output only. The time this occurrence was created. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2898 | "resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies. |
| 2899 | "contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead. The hash of the resource content. For example, the Docker digest. |
| 2900 | "value": "A String", # Required. The hash value. |
| 2901 | "type": "A String", # Required. The type of hash that was performed. |
| 2902 | }, |
| 2903 | "uri": "A String", # Required. The unique URI of the resource. For example, `https://gcr.io/project/image@sha256:foo` for a Docker image. |
| 2904 | "name": "A String", # Deprecated, do not use. Use uri instead. The name of the resource. For example, the name of a Docker image - "Debian". |
| 2905 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2906 | }</pre> |
| 2907 | </div> |
| 2908 | |
| 2909 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2910 | <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2911 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2912 | |
| 2913 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2914 | 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2915 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2916 | The object takes the form of: |
| 2917 | |
| 2918 | { # Request message for `SetIamPolicy` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2919 | "policy": { # 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:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 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 < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). # REQUIRED: The complete policy to be applied to the `resource`. The size of the policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud Platform services (such as Projects) might reject them. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2920 | "version": 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2921 | "bindings": [ # 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2922 | { # Associates `members` with a `role`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2923 | "members": [ # 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 | "A String", |
| 2925 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2926 | "condition": { # 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: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2927 | "title": "A String", # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2928 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2929 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2930 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2931 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2932 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2933 | }, |
| 2934 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2935 | "etag": "A String", # `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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2936 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2937 | } |
| 2938 | |
| 2939 | x__xgafv: string, V1 error format. |
| 2940 | Allowed values |
| 2941 | 1 - v1 error format |
| 2942 | 2 - v2 error format |
| 2943 | |
| 2944 | Returns: |
| 2945 | An object of the form: |
| 2946 | |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2947 | { # 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:** { "bindings": [ { "role": "roles/resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@appspot.gserviceaccount.com" ] }, { "role": "roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" ], "condition": { "title": "expirable access", "description": "Does not grant access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", } } ], "etag": "BwWWja0YfJA=", "version": 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 < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a description of IAM and its features, see the [IAM documentation](https://cloud.google.com/iam/docs/). |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2948 | "version": 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 Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2949 | "bindings": [ # 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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2950 | { # Associates `members` with a `role`. |
Yoshi Automation Bot | c2228be | 2020-11-24 15:48:03 -0800 | [diff] [blame] | 2951 | "members": [ # 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 | "A String", |
| 2953 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2954 | "condition": { # 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: "Summary size limit" description: "Determines if a summary is less than 100 chars" expression: "document.summary.size() < 100" Example (Equality): title: "Requestor is owner" description: "Determines if requestor is the document owner" expression: "document.owner == request.auth.claims.email" Example (Logic): title: "Public documents" description: "Determine whether the document should be publicly visible" expression: "document.type != 'private' && document.type != 'internal'" Example (Data Manipulation): title: "Notification string" description: "Create a notification string with a timestamp." expression: "'New message received at ' + string(document.create_time)" 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). |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2955 | "title": "A String", # 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. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2956 | "location": "A String", # Optional. String indicating the location of the expression for error reporting, e.g. a file name and a position in the file. |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2957 | "description": "A String", # Optional. Description of the expression. This is a longer text which describes the expression, e.g. when hovered over it in a UI. |
Yoshi Automation Bot | b6971b0 | 2020-11-26 17:16:03 -0800 | [diff] [blame] | 2958 | "expression": "A String", # Textual representation of an expression in Common Expression Language syntax. |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2959 | }, |
Yoshi Automation Bot | 0bf565c | 2020-12-09 08:56:03 -0800 | [diff] [blame^] | 2960 | "role": "A String", # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2961 | }, |
| 2962 | ], |
Yoshi Automation Bot | 0d561ef | 2020-11-25 07:50:41 -0800 | [diff] [blame] | 2963 | "etag": "A String", # `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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2964 | }</pre> |
| 2965 | </div> |
| 2966 | |
| 2967 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2968 | <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2969 | <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 Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2970 | |
| 2971 | Args: |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2972 | 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'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2973 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2974 | The object takes the form of: |
| 2975 | |
| 2976 | { # Request message for `TestIamPermissions` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2977 | "permissions": [ # The set of permissions to check for the `resource`. Permissions with wildcards (such as '*' or 'storage.*') are not allowed. For more information see [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2978 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2979 | ], |
| 2980 | } |
| 2981 | |
| 2982 | x__xgafv: string, V1 error format. |
| 2983 | Allowed values |
| 2984 | 1 - v1 error format |
| 2985 | 2 - v2 error format |
| 2986 | |
| 2987 | Returns: |
| 2988 | An object of the form: |
| 2989 | |
| 2990 | { # Response message for `TestIamPermissions` method. |
Dmitry Frenkel | 3e17f89 | 2020-10-06 16:46:05 -0700 | [diff] [blame] | 2991 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2992 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2993 | ], |
| 2994 | }</pre> |
| 2995 | </div> |
| 2996 | |
| 2997 | </body></html> |