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_v1alpha1.html">Container Analysis API</a> . <a href="containeranalysis_v1alpha1.projects.html">projects</a> . <a href="containeranalysis_v1alpha1.projects.notes.html">notes</a></h1> |
| 76 | <h2>Instance Methods</h2> |
| 77 | <p class="toc_element"> |
| 78 | <code><a href="containeranalysis_v1alpha1.projects.notes.occurrences.html">occurrences()</a></code> |
| 79 | </p> |
| 80 | <p class="firstline">Returns the occurrences Resource.</p> |
| 81 | |
| 82 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 83 | <code><a href="#create">create(parent, body=None, noteId=None, name=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 84 | <p class="firstline">Creates a new `Note`.</p> |
| 85 | <p class="toc_element"> |
| 86 | <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p> |
| 87 | <p class="firstline">Deletes the given `Note` from the system.</p> |
| 88 | <p class="toc_element"> |
| 89 | <code><a href="#get">get(name, x__xgafv=None)</a></code></p> |
| 90 | <p class="firstline">Returns the requested `Note`.</p> |
| 91 | <p class="toc_element"> |
| 92 | <code><a href="#getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
| 93 | <p class="firstline">Gets the access control policy for a note or an `Occurrence` resource.</p> |
| 94 | <p class="toc_element"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 95 | <code><a href="#list">list(parent, filter=None, pageSize=None, name=None, pageToken=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 96 | <p class="firstline">Lists all `Notes` for a given project.</p> |
| 97 | <p class="toc_element"> |
| 98 | <code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p> |
| 99 | <p class="firstline">Retrieves the next page of results.</p> |
| 100 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 101 | <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] | 102 | <p class="firstline">Updates an existing `Note`.</p> |
| 103 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 104 | <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 105 | <p class="firstline">Sets the access control policy on the specified `Note` or `Occurrence`.</p> |
| 106 | <p class="toc_element"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 107 | <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 108 | <p class="firstline">Returns the permissions that a caller has on the specified note or</p> |
| 109 | <h3>Method Details</h3> |
| 110 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 111 | <code class="details" id="create">create(parent, body=None, noteId=None, name=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 112 | <pre>Creates a new `Note`. |
| 113 | |
| 114 | Args: |
| 115 | parent: string, This field contains the project Id for example: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 116 | "projects/{project_id} (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 117 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 118 | The object takes the form of: |
| 119 | |
| 120 | { # Provides a detailed description of a `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 121 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 122 | # various channels. |
| 123 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 124 | "distribution": [ # The various channels by which a package is distributed. |
| 125 | { # This represents a particular channel of distribution for a given package. |
| 126 | # e.g. Debian's jessie-backports dpkg mirror |
| 127 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 128 | # this distribution channel. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 129 | # For a discussion of this in Debian/Ubuntu: |
| 130 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 131 | # For a discussion of this in Redhat/Fedora/Centos: |
| 132 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 133 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 134 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 135 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 136 | # If kind is not NORMAL, then the other fields are ignored. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 137 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 138 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 139 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 140 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 141 | # channel were built |
| 142 | "description": "A String", # The distribution channel-specific description of this package. |
| 143 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 144 | # denoting the package manager version distributing a package. |
| 145 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 146 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 147 | ], |
| 148 | "name": "A String", # The name of the package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 149 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 150 | "name": "A String", # The name of the note in the form |
| 151 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 152 | "relatedUrl": [ # URLs associated with this note |
| 153 | { # Metadata for any related URL information |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 154 | "label": "A String", # Label to describe usage of the URL |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 155 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 156 | }, |
| 157 | ], |
| 158 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 159 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 160 | # relationship. Linked occurrences are derived from this or an |
| 161 | # equivalent image via: |
| 162 | # FROM <Basis.resource_url> |
| 163 | # Or an equivalent reference, e.g. a tag of the resource_url. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 164 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 165 | # associated occurrence images. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 166 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 167 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 168 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 169 | # Only the name of the final blob is kept. |
| 170 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 171 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
| 172 | "A String", |
| 173 | ], |
| 174 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 175 | # representation. |
| 176 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 177 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 178 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 179 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 180 | # filter in list requests. |
| 181 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 182 | "details": [ # All information about the package to specifically identify this |
| 183 | # vulnerability. One entry per (version range and cpe_uri) the |
| 184 | # package vulnerability has manifested in. |
| 185 | { # Identifies all occurrences of this vulnerability in the package for a |
| 186 | # specific distro/location |
| 187 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 188 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 189 | # obsolete details. |
| 190 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 191 | # For a discussion of this in Debian/Ubuntu: |
| 192 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 193 | # For a discussion of this in Redhat/Fedora/Centos: |
| 194 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 195 | "name": "A String", # The main part of the version name. |
| 196 | "revision": "A String", # The iteration of the package build from the above version. |
| 197 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 198 | # If kind is not NORMAL, then the other fields are ignored. |
| 199 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 200 | }, |
| 201 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 202 | # For a discussion of this in Debian/Ubuntu: |
| 203 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 204 | # For a discussion of this in Redhat/Fedora/Centos: |
| 205 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 206 | "name": "A String", # The main part of the version name. |
| 207 | "revision": "A String", # The iteration of the package build from the above version. |
| 208 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 209 | # If kind is not NORMAL, then the other fields are ignored. |
| 210 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 211 | }, |
| 212 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 213 | # node.js packages etc) |
| 214 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 215 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 216 | # filter in list requests. |
| 217 | # For a discussion of this in Debian/Ubuntu: |
| 218 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 219 | # For a discussion of this in Redhat/Fedora/Centos: |
| 220 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 221 | "name": "A String", # The main part of the version name. |
| 222 | "revision": "A String", # The iteration of the package build from the above version. |
| 223 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 224 | # If kind is not NORMAL, then the other fields are ignored. |
| 225 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 226 | }, |
| 227 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 228 | # format. Examples include distro or storage location for vulnerable jar. |
| 229 | # This field can be used as a filter in list requests. |
| 230 | "package": "A String", # The package being described. |
| 231 | }, |
| 232 | "description": "A String", # A vendor-specific description of this note. |
| 233 | "package": "A String", # The name of the package where the vulnerability was found. |
| 234 | # This field can be used as a filter in list requests. |
| 235 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 236 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 237 | # which the vulnerability manifests. Examples include distro or storage |
| 238 | # location for vulnerable jar. |
| 239 | # This field can be used as a filter in list requests. |
| 240 | }, |
| 241 | ], |
| 242 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 243 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 244 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 245 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 246 | # the provenance message in linked BuildDetails. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 247 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 248 | # `BuilderDetails`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 249 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 250 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 251 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 252 | # key in Cloud Key Management Service). |
| 253 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 254 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 255 | # `key_id` |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 256 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 257 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 258 | # to PEM encoded public keys. |
| 259 | # |
| 260 | # This field may be empty if `key_id` references an external key. |
| 261 | # |
| 262 | # For Cloud Build based signatures, this is a PEM encoded public |
| 263 | # key. To verify the Cloud Build signature, place the contents of |
| 264 | # this field into a file (public.pem). The signature field is base64-decoded |
| 265 | # into its binary representation in signature.bin, and the provenance bytes |
| 266 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 267 | # signed.bin. OpenSSL can then verify the signature: |
| 268 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 269 | }, |
| 270 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 271 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 272 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 273 | # field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 274 | "longDescription": "A String", # A detailed description of this `Note`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 275 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 276 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 277 | "A String", |
| 278 | ], |
| 279 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 280 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 281 | # a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 282 | "shortDescription": "A String", # A one sentence description of this `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 283 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 284 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 285 | # consumer's project at the start of analysis. The occurrence's operation will |
| 286 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 287 | # note for a resource indicates that analysis hasn't started. |
| 288 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 289 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 290 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 291 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 292 | # one for "build". This Note is intended to act strictly as a grouping |
| 293 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 294 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 295 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 296 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 297 | # they don't all live in the same project. |
| 298 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 299 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 300 | # reference, it is important to disambiguate the canonical name of the Note |
| 301 | # (which might be a UUID for security purposes) from "readable" names more |
| 302 | # suitable for debug output. Note that these hints should NOT be used to |
| 303 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 304 | # looking up Attestations to verify. |
| 305 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 306 | }, |
| 307 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 308 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 309 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 310 | # bash 4.1.2), there will be a Upgrade Note. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 311 | "package": "A String", # Required - The package this Upgrade is for. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 312 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 313 | # For a discussion of this in Debian/Ubuntu: |
| 314 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 315 | # For a discussion of this in Redhat/Fedora/Centos: |
| 316 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 317 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 318 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 319 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 320 | # If kind is not NORMAL, then the other fields are ignored. |
| 321 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 322 | }, |
| 323 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 324 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 325 | # operating system (CPE). Some distributions have additional metadata around |
| 326 | # updates, classifying them into various categories and severities. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 327 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 328 | # upstream operating system upgrade feed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 329 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 330 | # https://cpe.mitre.org/specification/. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 331 | "severity": "A String", # The severity as specified by the upstream operating system. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 332 | "cve": [ # The cve that would be resolved by this upgrade. |
| 333 | "A String", |
| 334 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 335 | }, |
| 336 | ], |
| 337 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 338 | } |
| 339 | |
| 340 | noteId: string, The ID to use for this note. |
| 341 | name: string, The name of the project. |
| 342 | Should be of the form "providers/{provider_id}". |
| 343 | @Deprecated |
| 344 | x__xgafv: string, V1 error format. |
| 345 | Allowed values |
| 346 | 1 - v1 error format |
| 347 | 2 - v2 error format |
| 348 | |
| 349 | Returns: |
| 350 | An object of the form: |
| 351 | |
| 352 | { # Provides a detailed description of a `Note`. |
| 353 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 354 | # various channels. |
| 355 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 356 | "distribution": [ # The various channels by which a package is distributed. |
| 357 | { # This represents a particular channel of distribution for a given package. |
| 358 | # e.g. Debian's jessie-backports dpkg mirror |
| 359 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 360 | # this distribution channel. |
| 361 | # For a discussion of this in Debian/Ubuntu: |
| 362 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 363 | # For a discussion of this in Redhat/Fedora/Centos: |
| 364 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 365 | "name": "A String", # The main part of the version name. |
| 366 | "revision": "A String", # The iteration of the package build from the above version. |
| 367 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 368 | # If kind is not NORMAL, then the other fields are ignored. |
| 369 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 370 | }, |
| 371 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 372 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 373 | # channel were built |
| 374 | "description": "A String", # The distribution channel-specific description of this package. |
| 375 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 376 | # denoting the package manager version distributing a package. |
| 377 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 378 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 379 | ], |
| 380 | "name": "A String", # The name of the package. |
| 381 | }, |
| 382 | "name": "A String", # The name of the note in the form |
| 383 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
| 384 | "relatedUrl": [ # URLs associated with this note |
| 385 | { # Metadata for any related URL information |
| 386 | "label": "A String", # Label to describe usage of the URL |
| 387 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 388 | }, |
| 389 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 390 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 391 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 392 | # relationship. Linked occurrences are derived from this or an |
| 393 | # equivalent image via: |
| 394 | # FROM <Basis.resource_url> |
| 395 | # Or an equivalent reference, e.g. a tag of the resource_url. |
| 396 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 397 | # associated occurrence images. |
| 398 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
| 399 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 400 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 401 | # Only the name of the final blob is kept. |
| 402 | # This field can be used as a filter in list requests. |
| 403 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
| 404 | "A String", |
| 405 | ], |
| 406 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 407 | # representation. |
| 408 | # This field can be used as a filter in list requests. |
| 409 | }, |
| 410 | }, |
| 411 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 412 | # filter in list requests. |
| 413 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 414 | "details": [ # All information about the package to specifically identify this |
| 415 | # vulnerability. One entry per (version range and cpe_uri) the |
| 416 | # package vulnerability has manifested in. |
| 417 | { # Identifies all occurrences of this vulnerability in the package for a |
| 418 | # specific distro/location |
| 419 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 420 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 421 | # obsolete details. |
| 422 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 423 | # For a discussion of this in Debian/Ubuntu: |
| 424 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 425 | # For a discussion of this in Redhat/Fedora/Centos: |
| 426 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 427 | "name": "A String", # The main part of the version name. |
| 428 | "revision": "A String", # The iteration of the package build from the above version. |
| 429 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 430 | # If kind is not NORMAL, then the other fields are ignored. |
| 431 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 432 | }, |
| 433 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 434 | # For a discussion of this in Debian/Ubuntu: |
| 435 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 436 | # For a discussion of this in Redhat/Fedora/Centos: |
| 437 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 438 | "name": "A String", # The main part of the version name. |
| 439 | "revision": "A String", # The iteration of the package build from the above version. |
| 440 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 441 | # If kind is not NORMAL, then the other fields are ignored. |
| 442 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 443 | }, |
| 444 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 445 | # node.js packages etc) |
| 446 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 447 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 448 | # filter in list requests. |
| 449 | # For a discussion of this in Debian/Ubuntu: |
| 450 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 451 | # For a discussion of this in Redhat/Fedora/Centos: |
| 452 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 453 | "name": "A String", # The main part of the version name. |
| 454 | "revision": "A String", # The iteration of the package build from the above version. |
| 455 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 456 | # If kind is not NORMAL, then the other fields are ignored. |
| 457 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 458 | }, |
| 459 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 460 | # format. Examples include distro or storage location for vulnerable jar. |
| 461 | # This field can be used as a filter in list requests. |
| 462 | "package": "A String", # The package being described. |
| 463 | }, |
| 464 | "description": "A String", # A vendor-specific description of this note. |
| 465 | "package": "A String", # The name of the package where the vulnerability was found. |
| 466 | # This field can be used as a filter in list requests. |
| 467 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 468 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 469 | # which the vulnerability manifests. Examples include distro or storage |
| 470 | # location for vulnerable jar. |
| 471 | # This field can be used as a filter in list requests. |
| 472 | }, |
| 473 | ], |
| 474 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 475 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 476 | }, |
| 477 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
| 478 | # the provenance message in linked BuildDetails. |
| 479 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
| 480 | # `BuilderDetails`. |
| 481 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 482 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 483 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 484 | # key in Cloud Key Management Service). |
| 485 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 486 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 487 | # `key_id` |
| 488 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
| 489 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 490 | # to PEM encoded public keys. |
| 491 | # |
| 492 | # This field may be empty if `key_id` references an external key. |
| 493 | # |
| 494 | # For Cloud Build based signatures, this is a PEM encoded public |
| 495 | # key. To verify the Cloud Build signature, place the contents of |
| 496 | # this field into a file (public.pem). The signature field is base64-decoded |
| 497 | # into its binary representation in signature.bin, and the provenance bytes |
| 498 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 499 | # signed.bin. OpenSSL can then verify the signature: |
| 500 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
| 501 | }, |
| 502 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 503 | }, |
| 504 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 505 | # field can be used as a filter in list requests. |
| 506 | "longDescription": "A String", # A detailed description of this `Note`. |
| 507 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 508 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 509 | "A String", |
| 510 | ], |
| 511 | }, |
| 512 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 513 | # a filter in list requests. |
| 514 | "shortDescription": "A String", # A one sentence description of this `Note`. |
| 515 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 516 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 517 | # consumer's project at the start of analysis. The occurrence's operation will |
| 518 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 519 | # note for a resource indicates that analysis hasn't started. |
| 520 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 521 | }, |
| 522 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 523 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 524 | # one for "build". This Note is intended to act strictly as a grouping |
| 525 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 526 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 527 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 528 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 529 | # they don't all live in the same project. |
| 530 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 531 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 532 | # reference, it is important to disambiguate the canonical name of the Note |
| 533 | # (which might be a UUID for security purposes) from "readable" names more |
| 534 | # suitable for debug output. Note that these hints should NOT be used to |
| 535 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 536 | # looking up Attestations to verify. |
| 537 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
| 538 | }, |
| 539 | }, |
| 540 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 541 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 542 | # bash 4.1.2), there will be a Upgrade Note. |
| 543 | "package": "A String", # Required - The package this Upgrade is for. |
| 544 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 545 | # For a discussion of this in Debian/Ubuntu: |
| 546 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 547 | # For a discussion of this in Redhat/Fedora/Centos: |
| 548 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 549 | "name": "A String", # The main part of the version name. |
| 550 | "revision": "A String", # The iteration of the package build from the above version. |
| 551 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 552 | # If kind is not NORMAL, then the other fields are ignored. |
| 553 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 554 | }, |
| 555 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 556 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 557 | # operating system (CPE). Some distributions have additional metadata around |
| 558 | # updates, classifying them into various categories and severities. |
| 559 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 560 | # upstream operating system upgrade feed. |
| 561 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 562 | # https://cpe.mitre.org/specification/. |
| 563 | "severity": "A String", # The severity as specified by the upstream operating system. |
| 564 | "cve": [ # The cve that would be resolved by this upgrade. |
| 565 | "A String", |
| 566 | ], |
| 567 | }, |
| 568 | ], |
| 569 | }, |
| 570 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 571 | </div> |
| 572 | |
| 573 | <div class="method"> |
| 574 | <code class="details" id="delete">delete(name, x__xgafv=None)</code> |
| 575 | <pre>Deletes the given `Note` from the system. |
| 576 | |
| 577 | Args: |
| 578 | name: string, The name of the note in the form of |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 579 | "providers/{provider_id}/notes/{NOTE_ID}" (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 580 | x__xgafv: string, V1 error format. |
| 581 | Allowed values |
| 582 | 1 - v1 error format |
| 583 | 2 - v2 error format |
| 584 | |
| 585 | Returns: |
| 586 | An object of the form: |
| 587 | |
| 588 | { # A generic empty message that you can re-use to avoid defining duplicated |
| 589 | # empty messages in your APIs. A typical example is to use it as the request |
| 590 | # or the response type of an API method. For instance: |
| 591 | # |
| 592 | # service Foo { |
| 593 | # rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
| 594 | # } |
| 595 | # |
| 596 | # The JSON representation for `Empty` is empty JSON object `{}`. |
| 597 | }</pre> |
| 598 | </div> |
| 599 | |
| 600 | <div class="method"> |
| 601 | <code class="details" id="get">get(name, x__xgafv=None)</code> |
| 602 | <pre>Returns the requested `Note`. |
| 603 | |
| 604 | Args: |
| 605 | name: string, The name of the note in the form of |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 606 | "providers/{provider_id}/notes/{NOTE_ID}" (required) |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 607 | x__xgafv: string, V1 error format. |
| 608 | Allowed values |
| 609 | 1 - v1 error format |
| 610 | 2 - v2 error format |
| 611 | |
| 612 | Returns: |
| 613 | An object of the form: |
| 614 | |
| 615 | { # Provides a detailed description of a `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 616 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 617 | # various channels. |
| 618 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 619 | "distribution": [ # The various channels by which a package is distributed. |
| 620 | { # This represents a particular channel of distribution for a given package. |
| 621 | # e.g. Debian's jessie-backports dpkg mirror |
| 622 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 623 | # this distribution channel. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 624 | # For a discussion of this in Debian/Ubuntu: |
| 625 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 626 | # For a discussion of this in Redhat/Fedora/Centos: |
| 627 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 628 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 629 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 630 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 631 | # If kind is not NORMAL, then the other fields are ignored. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 632 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 633 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 634 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 635 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 636 | # channel were built |
| 637 | "description": "A String", # The distribution channel-specific description of this package. |
| 638 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 639 | # denoting the package manager version distributing a package. |
| 640 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 641 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 642 | ], |
| 643 | "name": "A String", # The name of the package. |
| 644 | }, |
| 645 | "name": "A String", # The name of the note in the form |
| 646 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
| 647 | "relatedUrl": [ # URLs associated with this note |
| 648 | { # Metadata for any related URL information |
| 649 | "label": "A String", # Label to describe usage of the URL |
| 650 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 651 | }, |
| 652 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 653 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 654 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 655 | # relationship. Linked occurrences are derived from this or an |
| 656 | # equivalent image via: |
| 657 | # FROM <Basis.resource_url> |
| 658 | # Or an equivalent reference, e.g. a tag of the resource_url. |
| 659 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 660 | # associated occurrence images. |
| 661 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
| 662 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 663 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 664 | # Only the name of the final blob is kept. |
| 665 | # This field can be used as a filter in list requests. |
| 666 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 667 | "A String", |
| 668 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 669 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 670 | # representation. |
| 671 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 672 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 673 | }, |
| 674 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 675 | # filter in list requests. |
| 676 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 677 | "details": [ # All information about the package to specifically identify this |
| 678 | # vulnerability. One entry per (version range and cpe_uri) the |
| 679 | # package vulnerability has manifested in. |
| 680 | { # Identifies all occurrences of this vulnerability in the package for a |
| 681 | # specific distro/location |
| 682 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 683 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 684 | # obsolete details. |
| 685 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 686 | # For a discussion of this in Debian/Ubuntu: |
| 687 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 688 | # For a discussion of this in Redhat/Fedora/Centos: |
| 689 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 690 | "name": "A String", # The main part of the version name. |
| 691 | "revision": "A String", # The iteration of the package build from the above version. |
| 692 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 693 | # If kind is not NORMAL, then the other fields are ignored. |
| 694 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 695 | }, |
| 696 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 697 | # For a discussion of this in Debian/Ubuntu: |
| 698 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 699 | # For a discussion of this in Redhat/Fedora/Centos: |
| 700 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 701 | "name": "A String", # The main part of the version name. |
| 702 | "revision": "A String", # The iteration of the package build from the above version. |
| 703 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 704 | # If kind is not NORMAL, then the other fields are ignored. |
| 705 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 706 | }, |
| 707 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 708 | # node.js packages etc) |
| 709 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 710 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 711 | # filter in list requests. |
| 712 | # For a discussion of this in Debian/Ubuntu: |
| 713 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 714 | # For a discussion of this in Redhat/Fedora/Centos: |
| 715 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 716 | "name": "A String", # The main part of the version name. |
| 717 | "revision": "A String", # The iteration of the package build from the above version. |
| 718 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 719 | # If kind is not NORMAL, then the other fields are ignored. |
| 720 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 721 | }, |
| 722 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 723 | # format. Examples include distro or storage location for vulnerable jar. |
| 724 | # This field can be used as a filter in list requests. |
| 725 | "package": "A String", # The package being described. |
| 726 | }, |
| 727 | "description": "A String", # A vendor-specific description of this note. |
| 728 | "package": "A String", # The name of the package where the vulnerability was found. |
| 729 | # This field can be used as a filter in list requests. |
| 730 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 731 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 732 | # which the vulnerability manifests. Examples include distro or storage |
| 733 | # location for vulnerable jar. |
| 734 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 735 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 736 | ], |
| 737 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 738 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 739 | }, |
| 740 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
| 741 | # the provenance message in linked BuildDetails. |
| 742 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
| 743 | # `BuilderDetails`. |
| 744 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 745 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 746 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 747 | # key in Cloud Key Management Service). |
| 748 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 749 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 750 | # `key_id` |
| 751 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
| 752 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 753 | # to PEM encoded public keys. |
| 754 | # |
| 755 | # This field may be empty if `key_id` references an external key. |
| 756 | # |
| 757 | # For Cloud Build based signatures, this is a PEM encoded public |
| 758 | # key. To verify the Cloud Build signature, place the contents of |
| 759 | # this field into a file (public.pem). The signature field is base64-decoded |
| 760 | # into its binary representation in signature.bin, and the provenance bytes |
| 761 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 762 | # signed.bin. OpenSSL can then verify the signature: |
| 763 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 764 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 765 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 766 | }, |
| 767 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 768 | # field can be used as a filter in list requests. |
| 769 | "longDescription": "A String", # A detailed description of this `Note`. |
| 770 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 771 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 772 | "A String", |
| 773 | ], |
| 774 | }, |
| 775 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 776 | # a filter in list requests. |
| 777 | "shortDescription": "A String", # A one sentence description of this `Note`. |
| 778 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 779 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 780 | # consumer's project at the start of analysis. The occurrence's operation will |
| 781 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 782 | # note for a resource indicates that analysis hasn't started. |
| 783 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 784 | }, |
| 785 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 786 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 787 | # one for "build". This Note is intended to act strictly as a grouping |
| 788 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 789 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 790 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 791 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 792 | # they don't all live in the same project. |
| 793 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 794 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 795 | # reference, it is important to disambiguate the canonical name of the Note |
| 796 | # (which might be a UUID for security purposes) from "readable" names more |
| 797 | # suitable for debug output. Note that these hints should NOT be used to |
| 798 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 799 | # looking up Attestations to verify. |
| 800 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
| 801 | }, |
| 802 | }, |
| 803 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 804 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 805 | # bash 4.1.2), there will be a Upgrade Note. |
| 806 | "package": "A String", # Required - The package this Upgrade is for. |
| 807 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 808 | # For a discussion of this in Debian/Ubuntu: |
| 809 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 810 | # For a discussion of this in Redhat/Fedora/Centos: |
| 811 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 812 | "name": "A String", # The main part of the version name. |
| 813 | "revision": "A String", # The iteration of the package build from the above version. |
| 814 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 815 | # If kind is not NORMAL, then the other fields are ignored. |
| 816 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 817 | }, |
| 818 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 819 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 820 | # operating system (CPE). Some distributions have additional metadata around |
| 821 | # updates, classifying them into various categories and severities. |
| 822 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 823 | # upstream operating system upgrade feed. |
| 824 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 825 | # https://cpe.mitre.org/specification/. |
| 826 | "severity": "A String", # The severity as specified by the upstream operating system. |
| 827 | "cve": [ # The cve that would be resolved by this upgrade. |
| 828 | "A String", |
| 829 | ], |
| 830 | }, |
| 831 | ], |
| 832 | }, |
| 833 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 834 | </div> |
| 835 | |
| 836 | <div class="method"> |
| 837 | <code class="details" id="getIamPolicy">getIamPolicy(resource, body=None, x__xgafv=None)</code> |
| 838 | <pre>Gets the access control policy for a note or an `Occurrence` resource. |
| 839 | Requires `containeranalysis.notes.setIamPolicy` or |
| 840 | `containeranalysis.occurrences.setIamPolicy` permission if the resource is |
| 841 | a note or occurrence, respectively. |
| 842 | Attempting to call this method on a resource without the required |
| 843 | permission will result in a `PERMISSION_DENIED` error. Attempting to call |
| 844 | this method on a non-existent resource will result in a `NOT_FOUND` error |
| 845 | if the user has list permission on the project, or a `PERMISSION_DENIED` |
| 846 | error otherwise. The resource takes the following formats: |
| 847 | `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for occurrences and |
| 848 | projects/{PROJECT_ID}/notes/{NOTE_ID} for notes |
| 849 | |
| 850 | Args: |
| 851 | resource: string, REQUIRED: The resource for which the policy is being requested. |
| 852 | See the operation documentation for the appropriate value for this field. (required) |
| 853 | body: object, The request body. |
| 854 | The object takes the form of: |
| 855 | |
| 856 | { # Request message for `GetIamPolicy` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 857 | "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 858 | # `GetIamPolicy`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 859 | "requestedPolicyVersion": 42, # Optional. The policy format version to be returned. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 860 | # |
| 861 | # Valid values are 0, 1, and 3. Requests specifying an invalid value will be |
| 862 | # rejected. |
| 863 | # |
| 864 | # Requests for policies with any conditional bindings must specify version 3. |
| 865 | # Policies without any conditional bindings may specify any valid value or |
| 866 | # leave the field unset. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 867 | # |
| 868 | # To learn which resources support conditions in their IAM policies, see the |
| 869 | # [IAM |
| 870 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 871 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 872 | } |
| 873 | |
| 874 | x__xgafv: string, V1 error format. |
| 875 | Allowed values |
| 876 | 1 - v1 error format |
| 877 | 2 - v2 error format |
| 878 | |
| 879 | Returns: |
| 880 | An object of the form: |
| 881 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 882 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 883 | # controls for Google Cloud resources. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 884 | # |
| 885 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 886 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 887 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 888 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 889 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 890 | # custom role. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 891 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 892 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 893 | # `condition`, which is a logical expression that allows access to a resource |
| 894 | # only if the expression evaluates to `true`. A condition can add constraints |
| 895 | # based on attributes of the request, the resource, or both. To learn which |
| 896 | # resources support conditions in their IAM policies, see the |
| 897 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 898 | # |
| 899 | # **JSON example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 900 | # |
| 901 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 902 | # "bindings": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 903 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 904 | # "role": "roles/resourcemanager.organizationAdmin", |
| 905 | # "members": [ |
| 906 | # "user:mike@example.com", |
| 907 | # "group:admins@example.com", |
| 908 | # "domain:google.com", |
| 909 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 910 | # ] |
| 911 | # }, |
| 912 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 913 | # "role": "roles/resourcemanager.organizationViewer", |
| 914 | # "members": [ |
| 915 | # "user:eve@example.com" |
| 916 | # ], |
| 917 | # "condition": { |
| 918 | # "title": "expirable access", |
| 919 | # "description": "Does not grant access after Sep 2020", |
| 920 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 921 | # } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 922 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 923 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 924 | # "etag": "BwWWja0YfJA=", |
| 925 | # "version": 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 926 | # } |
| 927 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 928 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 929 | # |
| 930 | # bindings: |
| 931 | # - members: |
| 932 | # - user:mike@example.com |
| 933 | # - group:admins@example.com |
| 934 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 935 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 936 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 937 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 938 | # - user:eve@example.com |
| 939 | # role: roles/resourcemanager.organizationViewer |
| 940 | # condition: |
| 941 | # title: expirable access |
| 942 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 943 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 944 | # - etag: BwWWja0YfJA= |
| 945 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 946 | # |
| 947 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 948 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 949 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 950 | # `condition` that determines how and when the `bindings` are applied. Each |
| 951 | # of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 952 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 953 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 954 | # |
| 955 | # If the condition evaluates to `true`, then this binding applies to the |
| 956 | # current request. |
| 957 | # |
| 958 | # If the condition evaluates to `false`, then this binding does not apply to |
| 959 | # the current request. However, a different role binding might grant the same |
| 960 | # role to one or more of the members in this binding. |
| 961 | # |
| 962 | # To learn which resources support conditions in their IAM policies, see the |
| 963 | # [IAM |
| 964 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 965 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 966 | # are documented at https://github.com/google/cel-spec. |
| 967 | # |
| 968 | # Example (Comparison): |
| 969 | # |
| 970 | # title: "Summary size limit" |
| 971 | # description: "Determines if a summary is less than 100 chars" |
| 972 | # expression: "document.summary.size() < 100" |
| 973 | # |
| 974 | # Example (Equality): |
| 975 | # |
| 976 | # title: "Requestor is owner" |
| 977 | # description: "Determines if requestor is the document owner" |
| 978 | # expression: "document.owner == request.auth.claims.email" |
| 979 | # |
| 980 | # Example (Logic): |
| 981 | # |
| 982 | # title: "Public documents" |
| 983 | # description: "Determine whether the document should be publicly visible" |
| 984 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 985 | # |
| 986 | # Example (Data Manipulation): |
| 987 | # |
| 988 | # title: "Notification string" |
| 989 | # description: "Create a notification string with a timestamp." |
| 990 | # expression: "'New message received at ' + string(document.create_time)" |
| 991 | # |
| 992 | # The exact variables and functions that may be referenced within an expression |
| 993 | # are determined by the service that evaluates it. See the service |
| 994 | # documentation for additional information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 995 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 996 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 997 | # expression. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 998 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 999 | # syntax. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1000 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 1001 | # reporting, e.g. a file name and a position in the file. |
| 1002 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 1003 | # describes the expression, e.g. when hovered over it in a UI. |
| 1004 | }, |
| 1005 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1006 | # `members` can have the following values: |
| 1007 | # |
| 1008 | # * `allUsers`: A special identifier that represents anyone who is |
| 1009 | # on the internet; with or without a Google account. |
| 1010 | # |
| 1011 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 1012 | # who is authenticated with a Google account or a service account. |
| 1013 | # |
| 1014 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1015 | # account. For example, `alice@example.com` . |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1016 | # |
| 1017 | # |
| 1018 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 1019 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 1020 | # |
| 1021 | # * `group:{emailid}`: An email address that represents a Google group. |
| 1022 | # For example, `admins@example.com`. |
| 1023 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1024 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 1025 | # identifier) representing a user that has been recently deleted. For |
| 1026 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 1027 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 1028 | # retains the role in the binding. |
| 1029 | # |
| 1030 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 1031 | # unique identifier) representing a service account that has been recently |
| 1032 | # deleted. For example, |
| 1033 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 1034 | # If the service account is undeleted, this value reverts to |
| 1035 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 1036 | # role in the binding. |
| 1037 | # |
| 1038 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 1039 | # identifier) representing a Google group that has been recently |
| 1040 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 1041 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 1042 | # recovered group retains the role in the binding. |
| 1043 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1044 | # |
| 1045 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 1046 | # users of that domain. For example, `google.com` or `example.com`. |
| 1047 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1048 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1049 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1050 | "role": "A String", # Role that is assigned to `members`. |
| 1051 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1052 | }, |
| 1053 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1054 | "version": 42, # Specifies the format of the policy. |
| 1055 | # |
| 1056 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 1057 | # are rejected. |
| 1058 | # |
| 1059 | # Any operation that affects conditional role bindings must specify version |
| 1060 | # `3`. This requirement applies to the following operations: |
| 1061 | # |
| 1062 | # * Getting a policy that includes a conditional role binding |
| 1063 | # * Adding a conditional role binding to a policy |
| 1064 | # * Changing a conditional role binding in a policy |
| 1065 | # * Removing any role binding, with or without a condition, from a policy |
| 1066 | # that includes conditions |
| 1067 | # |
| 1068 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 1069 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 1070 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 1071 | # the conditions in the version `3` policy are lost. |
| 1072 | # |
| 1073 | # If a policy does not include any conditions, operations on that policy may |
| 1074 | # specify any valid version or leave the field unset. |
| 1075 | # |
| 1076 | # To learn which resources support conditions in their IAM policies, see the |
| 1077 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 1078 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 1079 | # prevent simultaneous updates of a policy from overwriting each other. |
| 1080 | # It is strongly suggested that systems make use of the `etag` in the |
| 1081 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 1082 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 1083 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 1084 | # ensure that their change will be applied to the same version of the policy. |
| 1085 | # |
| 1086 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 1087 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 1088 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 1089 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1090 | }</pre> |
| 1091 | </div> |
| 1092 | |
| 1093 | <div class="method"> |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1094 | <code class="details" id="list">list(parent, filter=None, pageSize=None, name=None, pageToken=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1095 | <pre>Lists all `Notes` for a given project. |
| 1096 | |
| 1097 | Args: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1098 | parent: string, This field contains the project Id for example: "projects/{PROJECT_ID}". (required) |
| 1099 | filter: string, The filter expression. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1100 | pageSize: integer, Number of notes to return in the list. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1101 | name: string, The name field will contain the project Id for example: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1102 | "providers/{provider_id} |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1103 | @Deprecated |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1104 | pageToken: string, Token to provide to skip to a particular spot in the list. |
| 1105 | x__xgafv: string, V1 error format. |
| 1106 | Allowed values |
| 1107 | 1 - v1 error format |
| 1108 | 2 - v2 error format |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1109 | |
| 1110 | Returns: |
| 1111 | An object of the form: |
| 1112 | |
| 1113 | { # Response including listed notes. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1114 | "notes": [ # The occurrences requested |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1115 | { # Provides a detailed description of a `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1116 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 1117 | # various channels. |
| 1118 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 1119 | "distribution": [ # The various channels by which a package is distributed. |
| 1120 | { # This represents a particular channel of distribution for a given package. |
| 1121 | # e.g. Debian's jessie-backports dpkg mirror |
| 1122 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 1123 | # this distribution channel. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1124 | # For a discussion of this in Debian/Ubuntu: |
| 1125 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1126 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1127 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1128 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1129 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1130 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1131 | # If kind is not NORMAL, then the other fields are ignored. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1132 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1133 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1134 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 1135 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 1136 | # channel were built |
| 1137 | "description": "A String", # The distribution channel-specific description of this package. |
| 1138 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 1139 | # denoting the package manager version distributing a package. |
| 1140 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1141 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1142 | ], |
| 1143 | "name": "A String", # The name of the package. |
| 1144 | }, |
| 1145 | "name": "A String", # The name of the note in the form |
| 1146 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
| 1147 | "relatedUrl": [ # URLs associated with this note |
| 1148 | { # Metadata for any related URL information |
| 1149 | "label": "A String", # Label to describe usage of the URL |
| 1150 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1151 | }, |
| 1152 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1153 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 1154 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 1155 | # relationship. Linked occurrences are derived from this or an |
| 1156 | # equivalent image via: |
| 1157 | # FROM <Basis.resource_url> |
| 1158 | # Or an equivalent reference, e.g. a tag of the resource_url. |
| 1159 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 1160 | # associated occurrence images. |
| 1161 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
| 1162 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 1163 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 1164 | # Only the name of the final blob is kept. |
| 1165 | # This field can be used as a filter in list requests. |
| 1166 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1167 | "A String", |
| 1168 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1169 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 1170 | # representation. |
| 1171 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1172 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1173 | }, |
| 1174 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 1175 | # filter in list requests. |
| 1176 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 1177 | "details": [ # All information about the package to specifically identify this |
| 1178 | # vulnerability. One entry per (version range and cpe_uri) the |
| 1179 | # package vulnerability has manifested in. |
| 1180 | { # Identifies all occurrences of this vulnerability in the package for a |
| 1181 | # specific distro/location |
| 1182 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 1183 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 1184 | # obsolete details. |
| 1185 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 1186 | # For a discussion of this in Debian/Ubuntu: |
| 1187 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1188 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1189 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1190 | "name": "A String", # The main part of the version name. |
| 1191 | "revision": "A String", # The iteration of the package build from the above version. |
| 1192 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1193 | # If kind is not NORMAL, then the other fields are ignored. |
| 1194 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1195 | }, |
| 1196 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 1197 | # For a discussion of this in Debian/Ubuntu: |
| 1198 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1199 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1200 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1201 | "name": "A String", # The main part of the version name. |
| 1202 | "revision": "A String", # The iteration of the package build from the above version. |
| 1203 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1204 | # If kind is not NORMAL, then the other fields are ignored. |
| 1205 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1206 | }, |
| 1207 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 1208 | # node.js packages etc) |
| 1209 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 1210 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 1211 | # filter in list requests. |
| 1212 | # For a discussion of this in Debian/Ubuntu: |
| 1213 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1214 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1215 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1216 | "name": "A String", # The main part of the version name. |
| 1217 | "revision": "A String", # The iteration of the package build from the above version. |
| 1218 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1219 | # If kind is not NORMAL, then the other fields are ignored. |
| 1220 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1221 | }, |
| 1222 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 1223 | # format. Examples include distro or storage location for vulnerable jar. |
| 1224 | # This field can be used as a filter in list requests. |
| 1225 | "package": "A String", # The package being described. |
| 1226 | }, |
| 1227 | "description": "A String", # A vendor-specific description of this note. |
| 1228 | "package": "A String", # The name of the package where the vulnerability was found. |
| 1229 | # This field can be used as a filter in list requests. |
| 1230 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 1231 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 1232 | # which the vulnerability manifests. Examples include distro or storage |
| 1233 | # location for vulnerable jar. |
| 1234 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1235 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1236 | ], |
| 1237 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 1238 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 1239 | }, |
| 1240 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
| 1241 | # the provenance message in linked BuildDetails. |
| 1242 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
| 1243 | # `BuilderDetails`. |
| 1244 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 1245 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 1246 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 1247 | # key in Cloud Key Management Service). |
| 1248 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 1249 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 1250 | # `key_id` |
| 1251 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
| 1252 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 1253 | # to PEM encoded public keys. |
| 1254 | # |
| 1255 | # This field may be empty if `key_id` references an external key. |
| 1256 | # |
| 1257 | # For Cloud Build based signatures, this is a PEM encoded public |
| 1258 | # key. To verify the Cloud Build signature, place the contents of |
| 1259 | # this field into a file (public.pem). The signature field is base64-decoded |
| 1260 | # into its binary representation in signature.bin, and the provenance bytes |
| 1261 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 1262 | # signed.bin. OpenSSL can then verify the signature: |
| 1263 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1264 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1265 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 1266 | }, |
| 1267 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 1268 | # field can be used as a filter in list requests. |
| 1269 | "longDescription": "A String", # A detailed description of this `Note`. |
| 1270 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 1271 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 1272 | "A String", |
| 1273 | ], |
| 1274 | }, |
| 1275 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 1276 | # a filter in list requests. |
| 1277 | "shortDescription": "A String", # A one sentence description of this `Note`. |
| 1278 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 1279 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 1280 | # consumer's project at the start of analysis. The occurrence's operation will |
| 1281 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 1282 | # note for a resource indicates that analysis hasn't started. |
| 1283 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 1284 | }, |
| 1285 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 1286 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 1287 | # one for "build". This Note is intended to act strictly as a grouping |
| 1288 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 1289 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 1290 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 1291 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 1292 | # they don't all live in the same project. |
| 1293 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 1294 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 1295 | # reference, it is important to disambiguate the canonical name of the Note |
| 1296 | # (which might be a UUID for security purposes) from "readable" names more |
| 1297 | # suitable for debug output. Note that these hints should NOT be used to |
| 1298 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 1299 | # looking up Attestations to verify. |
| 1300 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
| 1301 | }, |
| 1302 | }, |
| 1303 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 1304 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 1305 | # bash 4.1.2), there will be a Upgrade Note. |
| 1306 | "package": "A String", # Required - The package this Upgrade is for. |
| 1307 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 1308 | # For a discussion of this in Debian/Ubuntu: |
| 1309 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1310 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1311 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1312 | "name": "A String", # The main part of the version name. |
| 1313 | "revision": "A String", # The iteration of the package build from the above version. |
| 1314 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1315 | # If kind is not NORMAL, then the other fields are ignored. |
| 1316 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1317 | }, |
| 1318 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 1319 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 1320 | # operating system (CPE). Some distributions have additional metadata around |
| 1321 | # updates, classifying them into various categories and severities. |
| 1322 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 1323 | # upstream operating system upgrade feed. |
| 1324 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 1325 | # https://cpe.mitre.org/specification/. |
| 1326 | "severity": "A String", # The severity as specified by the upstream operating system. |
| 1327 | "cve": [ # The cve that would be resolved by this upgrade. |
| 1328 | "A String", |
| 1329 | ], |
| 1330 | }, |
| 1331 | ], |
| 1332 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1333 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1334 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1335 | "nextPageToken": "A String", # The next pagination token in the list response. It should be used as |
| 1336 | # page_token for the following request. An empty value means no more result. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1337 | }</pre> |
| 1338 | </div> |
| 1339 | |
| 1340 | <div class="method"> |
| 1341 | <code class="details" id="list_next">list_next(previous_request, previous_response)</code> |
| 1342 | <pre>Retrieves the next page of results. |
| 1343 | |
| 1344 | Args: |
| 1345 | previous_request: The request for the previous page. (required) |
| 1346 | previous_response: The response from the request for the previous page. (required) |
| 1347 | |
| 1348 | Returns: |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1349 | 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] | 1350 | page. Returns None if there are no more items in the collection. |
| 1351 | </pre> |
| 1352 | </div> |
| 1353 | |
| 1354 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1355 | <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] | 1356 | <pre>Updates an existing `Note`. |
| 1357 | |
| 1358 | Args: |
| 1359 | name: string, The name of the note. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1360 | Should be of the form "projects/{provider_id}/notes/{note_id}". (required) |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1361 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1362 | The object takes the form of: |
| 1363 | |
| 1364 | { # Provides a detailed description of a `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1365 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 1366 | # various channels. |
| 1367 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 1368 | "distribution": [ # The various channels by which a package is distributed. |
| 1369 | { # This represents a particular channel of distribution for a given package. |
| 1370 | # e.g. Debian's jessie-backports dpkg mirror |
| 1371 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 1372 | # this distribution channel. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1373 | # For a discussion of this in Debian/Ubuntu: |
| 1374 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1375 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1376 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1377 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1378 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1379 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1380 | # If kind is not NORMAL, then the other fields are ignored. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1381 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1382 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1383 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 1384 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 1385 | # channel were built |
| 1386 | "description": "A String", # The distribution channel-specific description of this package. |
| 1387 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 1388 | # denoting the package manager version distributing a package. |
| 1389 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1390 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1391 | ], |
| 1392 | "name": "A String", # The name of the package. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1393 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1394 | "name": "A String", # The name of the note in the form |
| 1395 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1396 | "relatedUrl": [ # URLs associated with this note |
| 1397 | { # Metadata for any related URL information |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1398 | "label": "A String", # Label to describe usage of the URL |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1399 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1400 | }, |
| 1401 | ], |
| 1402 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 1403 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 1404 | # relationship. Linked occurrences are derived from this or an |
| 1405 | # equivalent image via: |
| 1406 | # FROM <Basis.resource_url> |
| 1407 | # Or an equivalent reference, e.g. a tag of the resource_url. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1408 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 1409 | # associated occurrence images. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1410 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1411 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 1412 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 1413 | # Only the name of the final blob is kept. |
| 1414 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1415 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
| 1416 | "A String", |
| 1417 | ], |
| 1418 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 1419 | # representation. |
| 1420 | # This field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1421 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1422 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1423 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 1424 | # filter in list requests. |
| 1425 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 1426 | "details": [ # All information about the package to specifically identify this |
| 1427 | # vulnerability. One entry per (version range and cpe_uri) the |
| 1428 | # package vulnerability has manifested in. |
| 1429 | { # Identifies all occurrences of this vulnerability in the package for a |
| 1430 | # specific distro/location |
| 1431 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 1432 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 1433 | # obsolete details. |
| 1434 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 1435 | # For a discussion of this in Debian/Ubuntu: |
| 1436 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1437 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1438 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1439 | "name": "A String", # The main part of the version name. |
| 1440 | "revision": "A String", # The iteration of the package build from the above version. |
| 1441 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1442 | # If kind is not NORMAL, then the other fields are ignored. |
| 1443 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1444 | }, |
| 1445 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 1446 | # For a discussion of this in Debian/Ubuntu: |
| 1447 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1448 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1449 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1450 | "name": "A String", # The main part of the version name. |
| 1451 | "revision": "A String", # The iteration of the package build from the above version. |
| 1452 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1453 | # If kind is not NORMAL, then the other fields are ignored. |
| 1454 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1455 | }, |
| 1456 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 1457 | # node.js packages etc) |
| 1458 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 1459 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 1460 | # filter in list requests. |
| 1461 | # For a discussion of this in Debian/Ubuntu: |
| 1462 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1463 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1464 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1465 | "name": "A String", # The main part of the version name. |
| 1466 | "revision": "A String", # The iteration of the package build from the above version. |
| 1467 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1468 | # If kind is not NORMAL, then the other fields are ignored. |
| 1469 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1470 | }, |
| 1471 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 1472 | # format. Examples include distro or storage location for vulnerable jar. |
| 1473 | # This field can be used as a filter in list requests. |
| 1474 | "package": "A String", # The package being described. |
| 1475 | }, |
| 1476 | "description": "A String", # A vendor-specific description of this note. |
| 1477 | "package": "A String", # The name of the package where the vulnerability was found. |
| 1478 | # This field can be used as a filter in list requests. |
| 1479 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 1480 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 1481 | # which the vulnerability manifests. Examples include distro or storage |
| 1482 | # location for vulnerable jar. |
| 1483 | # This field can be used as a filter in list requests. |
| 1484 | }, |
| 1485 | ], |
| 1486 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 1487 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 1488 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1489 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1490 | # the provenance message in linked BuildDetails. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1491 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1492 | # `BuilderDetails`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1493 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 1494 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 1495 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 1496 | # key in Cloud Key Management Service). |
| 1497 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 1498 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 1499 | # `key_id` |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1500 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1501 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 1502 | # to PEM encoded public keys. |
| 1503 | # |
| 1504 | # This field may be empty if `key_id` references an external key. |
| 1505 | # |
| 1506 | # For Cloud Build based signatures, this is a PEM encoded public |
| 1507 | # key. To verify the Cloud Build signature, place the contents of |
| 1508 | # this field into a file (public.pem). The signature field is base64-decoded |
| 1509 | # into its binary representation in signature.bin, and the provenance bytes |
| 1510 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 1511 | # signed.bin. OpenSSL can then verify the signature: |
| 1512 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1513 | }, |
| 1514 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 1515 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1516 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 1517 | # field can be used as a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1518 | "longDescription": "A String", # A detailed description of this `Note`. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1519 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 1520 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 1521 | "A String", |
| 1522 | ], |
| 1523 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1524 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 1525 | # a filter in list requests. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1526 | "shortDescription": "A String", # A one sentence description of this `Note`. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1527 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 1528 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 1529 | # consumer's project at the start of analysis. The occurrence's operation will |
| 1530 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 1531 | # note for a resource indicates that analysis hasn't started. |
| 1532 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 1533 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1534 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 1535 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 1536 | # one for "build". This Note is intended to act strictly as a grouping |
| 1537 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 1538 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 1539 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 1540 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 1541 | # they don't all live in the same project. |
| 1542 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 1543 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 1544 | # reference, it is important to disambiguate the canonical name of the Note |
| 1545 | # (which might be a UUID for security purposes) from "readable" names more |
| 1546 | # suitable for debug output. Note that these hints should NOT be used to |
| 1547 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 1548 | # looking up Attestations to verify. |
| 1549 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1550 | }, |
| 1551 | }, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1552 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 1553 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 1554 | # bash 4.1.2), there will be a Upgrade Note. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1555 | "package": "A String", # Required - The package this Upgrade is for. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1556 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 1557 | # For a discussion of this in Debian/Ubuntu: |
| 1558 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1559 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1560 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1561 | "name": "A String", # The main part of the version name. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1562 | "revision": "A String", # The iteration of the package build from the above version. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1563 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1564 | # If kind is not NORMAL, then the other fields are ignored. |
| 1565 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1566 | }, |
| 1567 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 1568 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 1569 | # operating system (CPE). Some distributions have additional metadata around |
| 1570 | # updates, classifying them into various categories and severities. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1571 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 1572 | # upstream operating system upgrade feed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1573 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 1574 | # https://cpe.mitre.org/specification/. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1575 | "severity": "A String", # The severity as specified by the upstream operating system. |
Bu Sun Kim | 4ed7d3f | 2020-05-27 12:20:54 -0700 | [diff] [blame] | 1576 | "cve": [ # The cve that would be resolved by this upgrade. |
| 1577 | "A String", |
| 1578 | ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1579 | }, |
| 1580 | ], |
| 1581 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1582 | } |
| 1583 | |
| 1584 | updateMask: string, The fields to update. |
| 1585 | x__xgafv: string, V1 error format. |
| 1586 | Allowed values |
| 1587 | 1 - v1 error format |
| 1588 | 2 - v2 error format |
| 1589 | |
| 1590 | Returns: |
| 1591 | An object of the form: |
| 1592 | |
| 1593 | { # Provides a detailed description of a `Note`. |
| 1594 | "package": { # This represents a particular package that is distributed over # A note describing a package hosted by various package managers. |
| 1595 | # various channels. |
| 1596 | # e.g. glibc (aka libc6) is distributed by many, at various versions. |
| 1597 | "distribution": [ # The various channels by which a package is distributed. |
| 1598 | { # This represents a particular channel of distribution for a given package. |
| 1599 | # e.g. Debian's jessie-backports dpkg mirror |
| 1600 | "latestVersion": { # Version contains structured information about the version of the package. # The latest available version of this package in |
| 1601 | # this distribution channel. |
| 1602 | # For a discussion of this in Debian/Ubuntu: |
| 1603 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1604 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1605 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1606 | "name": "A String", # The main part of the version name. |
| 1607 | "revision": "A String", # The iteration of the package build from the above version. |
| 1608 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1609 | # If kind is not NORMAL, then the other fields are ignored. |
| 1610 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1611 | }, |
| 1612 | "maintainer": "A String", # A freeform string denoting the maintainer of this package. |
| 1613 | "architecture": "A String", # The CPU architecture for which packages in this distribution |
| 1614 | # channel were built |
| 1615 | "description": "A String", # The distribution channel-specific description of this package. |
| 1616 | "cpeUri": "A String", # The cpe_uri in [cpe format](https://cpe.mitre.org/specification/) |
| 1617 | # denoting the package manager version distributing a package. |
| 1618 | "url": "A String", # The distribution channel-specific homepage for this package. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1619 | }, |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1620 | ], |
| 1621 | "name": "A String", # The name of the package. |
| 1622 | }, |
| 1623 | "name": "A String", # The name of the note in the form |
| 1624 | # "projects/{provider_project_id}/notes/{NOTE_ID}" |
| 1625 | "relatedUrl": [ # URLs associated with this note |
| 1626 | { # Metadata for any related URL information |
| 1627 | "label": "A String", # Label to describe usage of the URL |
| 1628 | "url": "A String", # Specific URL to associate with the note |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1629 | }, |
| 1630 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1631 | "expirationTime": "A String", # Time of expiration for this note, null if note does not expire. |
| 1632 | "baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image. |
| 1633 | # relationship. Linked occurrences are derived from this or an |
| 1634 | # equivalent image via: |
| 1635 | # FROM <Basis.resource_url> |
| 1636 | # Or an equivalent reference, e.g. a tag of the resource_url. |
| 1637 | "resourceUrl": "A String", # The resource_url for the resource representing the basis of |
| 1638 | # associated occurrence images. |
| 1639 | "fingerprint": { # A set of properties that uniquely identify a given Docker image. # The fingerprint of the base image. |
| 1640 | "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via: |
| 1641 | # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1]) |
| 1642 | # Only the name of the final blob is kept. |
| 1643 | # This field can be used as a filter in list requests. |
| 1644 | "v2Blob": [ # The ordered list of v2 blobs that represent a given image. |
| 1645 | "A String", |
| 1646 | ], |
| 1647 | "v1Name": "A String", # The layer-id of the final layer in the Docker image's v1 |
| 1648 | # representation. |
| 1649 | # This field can be used as a filter in list requests. |
| 1650 | }, |
| 1651 | }, |
| 1652 | "createTime": "A String", # Output only. The time this note was created. This field can be used as a |
| 1653 | # filter in list requests. |
| 1654 | "vulnerabilityType": { # VulnerabilityType provides metadata about a security vulnerability. # A package vulnerability type of note. |
| 1655 | "details": [ # All information about the package to specifically identify this |
| 1656 | # vulnerability. One entry per (version range and cpe_uri) the |
| 1657 | # package vulnerability has manifested in. |
| 1658 | { # Identifies all occurrences of this vulnerability in the package for a |
| 1659 | # specific distro/location |
| 1660 | # For example: glibc in cpe:/o:debian:debian_linux:8 for versions 2.1 - 2.2 |
| 1661 | "isObsolete": True or False, # Whether this Detail is obsolete. Occurrences are expected not to point to |
| 1662 | # obsolete details. |
| 1663 | "minAffectedVersion": { # Version contains structured information about the version of the package. # The min version of the package in which the vulnerability exists. |
| 1664 | # For a discussion of this in Debian/Ubuntu: |
| 1665 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1666 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1667 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1668 | "name": "A String", # The main part of the version name. |
| 1669 | "revision": "A String", # The iteration of the package build from the above version. |
| 1670 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1671 | # If kind is not NORMAL, then the other fields are ignored. |
| 1672 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1673 | }, |
| 1674 | "maxAffectedVersion": { # Version contains structured information about the version of the package. # The max version of the package in which the vulnerability exists. |
| 1675 | # For a discussion of this in Debian/Ubuntu: |
| 1676 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1677 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1678 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1679 | "name": "A String", # The main part of the version name. |
| 1680 | "revision": "A String", # The iteration of the package build from the above version. |
| 1681 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1682 | # If kind is not NORMAL, then the other fields are ignored. |
| 1683 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1684 | }, |
| 1685 | "packageType": "A String", # The type of package; whether native or non native(ruby gems, |
| 1686 | # node.js packages etc) |
| 1687 | "fixedLocation": { # The location of the vulnerability # The fix for this specific package version. |
| 1688 | "version": { # Version contains structured information about the version of the package. # The version of the package being described. This field can be used as a |
| 1689 | # filter in list requests. |
| 1690 | # For a discussion of this in Debian/Ubuntu: |
| 1691 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1692 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1693 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1694 | "name": "A String", # The main part of the version name. |
| 1695 | "revision": "A String", # The iteration of the package build from the above version. |
| 1696 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1697 | # If kind is not NORMAL, then the other fields are ignored. |
| 1698 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1699 | }, |
| 1700 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) |
| 1701 | # format. Examples include distro or storage location for vulnerable jar. |
| 1702 | # This field can be used as a filter in list requests. |
| 1703 | "package": "A String", # The package being described. |
| 1704 | }, |
| 1705 | "description": "A String", # A vendor-specific description of this note. |
| 1706 | "package": "A String", # The name of the package where the vulnerability was found. |
| 1707 | # This field can be used as a filter in list requests. |
| 1708 | "severityName": "A String", # The severity (eg: distro assigned severity) for this vulnerability. |
| 1709 | "cpeUri": "A String", # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in |
| 1710 | # which the vulnerability manifests. Examples include distro or storage |
| 1711 | # location for vulnerable jar. |
| 1712 | # This field can be used as a filter in list requests. |
| 1713 | }, |
| 1714 | ], |
| 1715 | "severity": "A String", # Note provider assigned impact of the vulnerability |
| 1716 | "cvssScore": 3.14, # The CVSS score for this Vulnerability. |
| 1717 | }, |
| 1718 | "buildType": { # Note holding the version of the provider's builder and the signature of # Build provenance type for a verifiable build. |
| 1719 | # the provenance message in linked BuildDetails. |
| 1720 | "signature": { # Message encapsulating the signature of the verified build. # Signature of the build in Occurrences pointing to the Note containing this |
| 1721 | # `BuilderDetails`. |
| 1722 | "keyId": "A String", # An Id for the key used to sign. This could be either an Id for the key |
| 1723 | # stored in `public_key` (such as the Id or fingerprint for a PGP key, or the |
| 1724 | # CN for a cert), or a reference to an external key (such as a reference to a |
| 1725 | # key in Cloud Key Management Service). |
| 1726 | "signature": "A String", # Signature of the related `BuildProvenance`, encoded in a base64 string. |
| 1727 | "keyType": "A String", # The type of the key, either stored in `public_key` or referenced in |
| 1728 | # `key_id` |
| 1729 | "publicKey": "A String", # Public key of the builder which can be used to verify that the related |
| 1730 | # findings are valid and unchanged. If `key_type` is empty, this defaults |
| 1731 | # to PEM encoded public keys. |
| 1732 | # |
| 1733 | # This field may be empty if `key_id` references an external key. |
| 1734 | # |
| 1735 | # For Cloud Build based signatures, this is a PEM encoded public |
| 1736 | # key. To verify the Cloud Build signature, place the contents of |
| 1737 | # this field into a file (public.pem). The signature field is base64-decoded |
| 1738 | # into its binary representation in signature.bin, and the provenance bytes |
| 1739 | # from `BuildDetails` are base64-decoded into a binary representation in |
| 1740 | # signed.bin. OpenSSL can then verify the signature: |
| 1741 | # `openssl sha256 -verify public.pem -signature signature.bin signed.bin` |
| 1742 | }, |
| 1743 | "builderVersion": "A String", # Version of the builder which produced this Note. |
| 1744 | }, |
| 1745 | "kind": "A String", # Output only. This explicitly denotes which kind of note is specified. This |
| 1746 | # field can be used as a filter in list requests. |
| 1747 | "longDescription": "A String", # A detailed description of this `Note`. |
| 1748 | "deployable": { # An artifact that can be deployed in some runtime. # A note describing something that can be deployed. |
| 1749 | "resourceUri": [ # Resource URI for the artifact being deployed. |
| 1750 | "A String", |
| 1751 | ], |
| 1752 | }, |
| 1753 | "updateTime": "A String", # Output only. The time this note was last updated. This field can be used as |
| 1754 | # a filter in list requests. |
| 1755 | "shortDescription": "A String", # A one sentence description of this `Note`. |
| 1756 | "discovery": { # A note that indicates a type of analysis a provider would perform. This note # A note describing a provider/analysis type. |
| 1757 | # exists in a provider's project. A `Discovery` occurrence is created in a |
| 1758 | # consumer's project at the start of analysis. The occurrence's operation will |
| 1759 | # indicate the status of the analysis. Absence of an occurrence linked to this |
| 1760 | # note for a resource indicates that analysis hasn't started. |
| 1761 | "analysisKind": "A String", # The kind of analysis that is handled by this discovery. |
| 1762 | }, |
| 1763 | "attestationAuthority": { # Note kind that represents a logical attestation "role" or "authority". For # A note describing an attestation role. |
| 1764 | # example, an organization might have one `AttestationAuthority` for "QA" and |
| 1765 | # one for "build". This Note is intended to act strictly as a grouping |
| 1766 | # mechanism for the attached Occurrences (Attestations). This grouping |
| 1767 | # mechanism also provides a security boundary, since IAM ACLs gate the ability |
| 1768 | # for a principle to attach an Occurrence to a given Note. It also provides a |
| 1769 | # single point of lookup to find all attached Attestation Occurrences, even if |
| 1770 | # they don't all live in the same project. |
| 1771 | "hint": { # This submessage provides human-readable hints about the purpose of the |
| 1772 | # AttestationAuthority. Because the name of a Note acts as its resource |
| 1773 | # reference, it is important to disambiguate the canonical name of the Note |
| 1774 | # (which might be a UUID for security purposes) from "readable" names more |
| 1775 | # suitable for debug output. Note that these hints should NOT be used to |
| 1776 | # look up AttestationAuthorities in security sensitive contexts, such as when |
| 1777 | # looking up Attestations to verify. |
| 1778 | "humanReadableName": "A String", # The human readable name of this Attestation Authority, for example "qa". |
| 1779 | }, |
| 1780 | }, |
| 1781 | "upgrade": { # An Upgrade Note represents a potential upgrade of a package to a given # A note describing an upgrade. |
| 1782 | # version. For each package version combination (i.e. bash 4.0, bash 4.1, |
| 1783 | # bash 4.1.2), there will be a Upgrade Note. |
| 1784 | "package": "A String", # Required - The package this Upgrade is for. |
| 1785 | "version": { # Version contains structured information about the version of the package. # Required - The version of the package in machine + human readable form. |
| 1786 | # For a discussion of this in Debian/Ubuntu: |
| 1787 | # http://serverfault.com/questions/604541/debian-packages-version-convention |
| 1788 | # For a discussion of this in Redhat/Fedora/Centos: |
| 1789 | # http://blog.jasonantman.com/2014/07/how-yum-and-rpm-compare-versions/ |
| 1790 | "name": "A String", # The main part of the version name. |
| 1791 | "revision": "A String", # The iteration of the package build from the above version. |
| 1792 | "kind": "A String", # Distinguish between sentinel MIN/MAX versions and normal versions. |
| 1793 | # If kind is not NORMAL, then the other fields are ignored. |
| 1794 | "epoch": 42, # Used to correct mistakes in the version numbering scheme. |
| 1795 | }, |
| 1796 | "distributions": [ # Metadata about the upgrade for each specific operating system. |
| 1797 | { # The Upgrade Distribution represents metadata about the Upgrade for each |
| 1798 | # operating system (CPE). Some distributions have additional metadata around |
| 1799 | # updates, classifying them into various categories and severities. |
| 1800 | "classification": "A String", # The operating system classification of this Upgrade, as specified by the |
| 1801 | # upstream operating system upgrade feed. |
| 1802 | "cpeUri": "A String", # Required - The specific operating system this metadata applies to. See |
| 1803 | # https://cpe.mitre.org/specification/. |
| 1804 | "severity": "A String", # The severity as specified by the upstream operating system. |
| 1805 | "cve": [ # The cve that would be resolved by this upgrade. |
| 1806 | "A String", |
| 1807 | ], |
| 1808 | }, |
| 1809 | ], |
| 1810 | }, |
| 1811 | }</pre> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1812 | </div> |
| 1813 | |
| 1814 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1815 | <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1816 | <pre>Sets the access control policy on the specified `Note` or `Occurrence`. |
| 1817 | Requires `containeranalysis.notes.setIamPolicy` or |
| 1818 | `containeranalysis.occurrences.setIamPolicy` permission if the resource is |
| 1819 | a `Note` or an `Occurrence`, respectively. |
| 1820 | Attempting to call this method without these permissions will result in a ` |
| 1821 | `PERMISSION_DENIED` error. |
| 1822 | Attempting to call this method on a non-existent resource will result in a |
| 1823 | `NOT_FOUND` error if the user has `containeranalysis.notes.list` permission |
| 1824 | on a `Note` or `containeranalysis.occurrences.list` on an `Occurrence`, or |
| 1825 | a `PERMISSION_DENIED` error otherwise. The resource takes the following |
| 1826 | formats: `projects/{projectid}/occurrences/{occurrenceid}` for occurrences |
| 1827 | and projects/{projectid}/notes/{noteid} for notes |
| 1828 | |
| 1829 | Args: |
| 1830 | resource: string, REQUIRED: The resource for which the policy is being specified. |
| 1831 | 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] | 1832 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1833 | The object takes the form of: |
| 1834 | |
| 1835 | { # Request message for `SetIamPolicy` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1836 | "policy": { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1837 | # the policy is limited to a few 10s of KB. An empty policy is a |
| 1838 | # valid policy but certain Cloud Platform services (such as Projects) |
| 1839 | # might reject them. |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1840 | # controls for Google Cloud resources. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1841 | # |
| 1842 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1843 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 1844 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 1845 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 1846 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 1847 | # custom role. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1848 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1849 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 1850 | # `condition`, which is a logical expression that allows access to a resource |
| 1851 | # only if the expression evaluates to `true`. A condition can add constraints |
| 1852 | # based on attributes of the request, the resource, or both. To learn which |
| 1853 | # resources support conditions in their IAM policies, see the |
| 1854 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1855 | # |
| 1856 | # **JSON example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1857 | # |
| 1858 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1859 | # "bindings": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1860 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1861 | # "role": "roles/resourcemanager.organizationAdmin", |
| 1862 | # "members": [ |
| 1863 | # "user:mike@example.com", |
| 1864 | # "group:admins@example.com", |
| 1865 | # "domain:google.com", |
| 1866 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1867 | # ] |
| 1868 | # }, |
| 1869 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1870 | # "role": "roles/resourcemanager.organizationViewer", |
| 1871 | # "members": [ |
| 1872 | # "user:eve@example.com" |
| 1873 | # ], |
| 1874 | # "condition": { |
| 1875 | # "title": "expirable access", |
| 1876 | # "description": "Does not grant access after Sep 2020", |
| 1877 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1878 | # } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1879 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1880 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1881 | # "etag": "BwWWja0YfJA=", |
| 1882 | # "version": 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1883 | # } |
| 1884 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1885 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1886 | # |
| 1887 | # bindings: |
| 1888 | # - members: |
| 1889 | # - user:mike@example.com |
| 1890 | # - group:admins@example.com |
| 1891 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1892 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 1893 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1894 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1895 | # - user:eve@example.com |
| 1896 | # role: roles/resourcemanager.organizationViewer |
| 1897 | # condition: |
| 1898 | # title: expirable access |
| 1899 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1900 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1901 | # - etag: BwWWja0YfJA= |
| 1902 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1903 | # |
| 1904 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1905 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1906 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1907 | # `condition` that determines how and when the `bindings` are applied. Each |
| 1908 | # of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1909 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1910 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 1911 | # |
| 1912 | # If the condition evaluates to `true`, then this binding applies to the |
| 1913 | # current request. |
| 1914 | # |
| 1915 | # If the condition evaluates to `false`, then this binding does not apply to |
| 1916 | # the current request. However, a different role binding might grant the same |
| 1917 | # role to one or more of the members in this binding. |
| 1918 | # |
| 1919 | # To learn which resources support conditions in their IAM policies, see the |
| 1920 | # [IAM |
| 1921 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 1922 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 1923 | # are documented at https://github.com/google/cel-spec. |
| 1924 | # |
| 1925 | # Example (Comparison): |
| 1926 | # |
| 1927 | # title: "Summary size limit" |
| 1928 | # description: "Determines if a summary is less than 100 chars" |
| 1929 | # expression: "document.summary.size() < 100" |
| 1930 | # |
| 1931 | # Example (Equality): |
| 1932 | # |
| 1933 | # title: "Requestor is owner" |
| 1934 | # description: "Determines if requestor is the document owner" |
| 1935 | # expression: "document.owner == request.auth.claims.email" |
| 1936 | # |
| 1937 | # Example (Logic): |
| 1938 | # |
| 1939 | # title: "Public documents" |
| 1940 | # description: "Determine whether the document should be publicly visible" |
| 1941 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 1942 | # |
| 1943 | # Example (Data Manipulation): |
| 1944 | # |
| 1945 | # title: "Notification string" |
| 1946 | # description: "Create a notification string with a timestamp." |
| 1947 | # expression: "'New message received at ' + string(document.create_time)" |
| 1948 | # |
| 1949 | # The exact variables and functions that may be referenced within an expression |
| 1950 | # are determined by the service that evaluates it. See the service |
| 1951 | # documentation for additional information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1952 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 1953 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 1954 | # expression. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 1955 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 1956 | # syntax. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 1957 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 1958 | # reporting, e.g. a file name and a position in the file. |
| 1959 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 1960 | # describes the expression, e.g. when hovered over it in a UI. |
| 1961 | }, |
| 1962 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1963 | # `members` can have the following values: |
| 1964 | # |
| 1965 | # * `allUsers`: A special identifier that represents anyone who is |
| 1966 | # on the internet; with or without a Google account. |
| 1967 | # |
| 1968 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 1969 | # who is authenticated with a Google account or a service account. |
| 1970 | # |
| 1971 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1972 | # account. For example, `alice@example.com` . |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 1973 | # |
| 1974 | # |
| 1975 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 1976 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 1977 | # |
| 1978 | # * `group:{emailid}`: An email address that represents a Google group. |
| 1979 | # For example, `admins@example.com`. |
| 1980 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 1981 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 1982 | # identifier) representing a user that has been recently deleted. For |
| 1983 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 1984 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 1985 | # retains the role in the binding. |
| 1986 | # |
| 1987 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 1988 | # unique identifier) representing a service account that has been recently |
| 1989 | # deleted. For example, |
| 1990 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 1991 | # If the service account is undeleted, this value reverts to |
| 1992 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 1993 | # role in the binding. |
| 1994 | # |
| 1995 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 1996 | # identifier) representing a Google group that has been recently |
| 1997 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 1998 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 1999 | # recovered group retains the role in the binding. |
| 2000 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2001 | # |
| 2002 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 2003 | # users of that domain. For example, `google.com` or `example.com`. |
| 2004 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2005 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2006 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2007 | "role": "A String", # Role that is assigned to `members`. |
| 2008 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2009 | }, |
| 2010 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2011 | "version": 42, # Specifies the format of the policy. |
| 2012 | # |
| 2013 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 2014 | # are rejected. |
| 2015 | # |
| 2016 | # Any operation that affects conditional role bindings must specify version |
| 2017 | # `3`. This requirement applies to the following operations: |
| 2018 | # |
| 2019 | # * Getting a policy that includes a conditional role binding |
| 2020 | # * Adding a conditional role binding to a policy |
| 2021 | # * Changing a conditional role binding in a policy |
| 2022 | # * Removing any role binding, with or without a condition, from a policy |
| 2023 | # that includes conditions |
| 2024 | # |
| 2025 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 2026 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 2027 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 2028 | # the conditions in the version `3` policy are lost. |
| 2029 | # |
| 2030 | # If a policy does not include any conditions, operations on that policy may |
| 2031 | # specify any valid version or leave the field unset. |
| 2032 | # |
| 2033 | # To learn which resources support conditions in their IAM policies, see the |
| 2034 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 2035 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 2036 | # prevent simultaneous updates of a policy from overwriting each other. |
| 2037 | # It is strongly suggested that systems make use of the `etag` in the |
| 2038 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 2039 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 2040 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 2041 | # ensure that their change will be applied to the same version of the policy. |
| 2042 | # |
| 2043 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 2044 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 2045 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 2046 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2047 | }, |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2048 | } |
| 2049 | |
| 2050 | x__xgafv: string, V1 error format. |
| 2051 | Allowed values |
| 2052 | 1 - v1 error format |
| 2053 | 2 - v2 error format |
| 2054 | |
| 2055 | Returns: |
| 2056 | An object of the form: |
| 2057 | |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2058 | { # An Identity and Access Management (IAM) policy, which specifies access |
| 2059 | # controls for Google Cloud resources. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2060 | # |
| 2061 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2062 | # A `Policy` is a collection of `bindings`. A `binding` binds one or more |
| 2063 | # `members` to a single `role`. Members can be user accounts, service accounts, |
| 2064 | # Google groups, and domains (such as G Suite). A `role` is a named list of |
| 2065 | # permissions; each `role` can be an IAM predefined role or a user-created |
| 2066 | # custom role. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2067 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2068 | # For some types of Google Cloud resources, a `binding` can also specify a |
| 2069 | # `condition`, which is a logical expression that allows access to a resource |
| 2070 | # only if the expression evaluates to `true`. A condition can add constraints |
| 2071 | # based on attributes of the request, the resource, or both. To learn which |
| 2072 | # resources support conditions in their IAM policies, see the |
| 2073 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2074 | # |
| 2075 | # **JSON example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2076 | # |
| 2077 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2078 | # "bindings": [ |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2079 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2080 | # "role": "roles/resourcemanager.organizationAdmin", |
| 2081 | # "members": [ |
| 2082 | # "user:mike@example.com", |
| 2083 | # "group:admins@example.com", |
| 2084 | # "domain:google.com", |
| 2085 | # "serviceAccount:my-project-id@appspot.gserviceaccount.com" |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2086 | # ] |
| 2087 | # }, |
| 2088 | # { |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2089 | # "role": "roles/resourcemanager.organizationViewer", |
| 2090 | # "members": [ |
| 2091 | # "user:eve@example.com" |
| 2092 | # ], |
| 2093 | # "condition": { |
| 2094 | # "title": "expirable access", |
| 2095 | # "description": "Does not grant access after Sep 2020", |
| 2096 | # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2097 | # } |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2098 | # } |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2099 | # ], |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2100 | # "etag": "BwWWja0YfJA=", |
| 2101 | # "version": 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2102 | # } |
| 2103 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2104 | # **YAML example:** |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2105 | # |
| 2106 | # bindings: |
| 2107 | # - members: |
| 2108 | # - user:mike@example.com |
| 2109 | # - group:admins@example.com |
| 2110 | # - domain:google.com |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2111 | # - serviceAccount:my-project-id@appspot.gserviceaccount.com |
| 2112 | # role: roles/resourcemanager.organizationAdmin |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2113 | # - members: |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2114 | # - user:eve@example.com |
| 2115 | # role: roles/resourcemanager.organizationViewer |
| 2116 | # condition: |
| 2117 | # title: expirable access |
| 2118 | # description: Does not grant access after Sep 2020 |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2119 | # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2120 | # - etag: BwWWja0YfJA= |
| 2121 | # - version: 3 |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2122 | # |
| 2123 | # For a description of IAM and its features, see the |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2124 | # [IAM documentation](https://cloud.google.com/iam/docs/). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2125 | "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2126 | # `condition` that determines how and when the `bindings` are applied. Each |
| 2127 | # of the `bindings` must contain at least one member. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2128 | { # Associates `members` with a `role`. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2129 | "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding. |
| 2130 | # |
| 2131 | # If the condition evaluates to `true`, then this binding applies to the |
| 2132 | # current request. |
| 2133 | # |
| 2134 | # If the condition evaluates to `false`, then this binding does not apply to |
| 2135 | # the current request. However, a different role binding might grant the same |
| 2136 | # role to one or more of the members in this binding. |
| 2137 | # |
| 2138 | # To learn which resources support conditions in their IAM policies, see the |
| 2139 | # [IAM |
| 2140 | # documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 2141 | # syntax. CEL is a C-like expression language. The syntax and semantics of CEL |
| 2142 | # are documented at https://github.com/google/cel-spec. |
| 2143 | # |
| 2144 | # Example (Comparison): |
| 2145 | # |
| 2146 | # title: "Summary size limit" |
| 2147 | # description: "Determines if a summary is less than 100 chars" |
| 2148 | # expression: "document.summary.size() < 100" |
| 2149 | # |
| 2150 | # Example (Equality): |
| 2151 | # |
| 2152 | # title: "Requestor is owner" |
| 2153 | # description: "Determines if requestor is the document owner" |
| 2154 | # expression: "document.owner == request.auth.claims.email" |
| 2155 | # |
| 2156 | # Example (Logic): |
| 2157 | # |
| 2158 | # title: "Public documents" |
| 2159 | # description: "Determine whether the document should be publicly visible" |
| 2160 | # expression: "document.type != 'private' && document.type != 'internal'" |
| 2161 | # |
| 2162 | # Example (Data Manipulation): |
| 2163 | # |
| 2164 | # title: "Notification string" |
| 2165 | # description: "Create a notification string with a timestamp." |
| 2166 | # expression: "'New message received at ' + string(document.create_time)" |
| 2167 | # |
| 2168 | # The exact variables and functions that may be referenced within an expression |
| 2169 | # are determined by the service that evaluates it. See the service |
| 2170 | # documentation for additional information. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2171 | "title": "A String", # Optional. Title for the expression, i.e. a short string describing |
| 2172 | # its purpose. This can be used e.g. in UIs which allow to enter the |
| 2173 | # expression. |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2174 | "expression": "A String", # Textual representation of an expression in Common Expression Language |
| 2175 | # syntax. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2176 | "location": "A String", # Optional. String indicating the location of the expression for error |
| 2177 | # reporting, e.g. a file name and a position in the file. |
| 2178 | "description": "A String", # Optional. Description of the expression. This is a longer text which |
| 2179 | # describes the expression, e.g. when hovered over it in a UI. |
| 2180 | }, |
| 2181 | "members": [ # Specifies the identities requesting access for a Cloud Platform resource. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2182 | # `members` can have the following values: |
| 2183 | # |
| 2184 | # * `allUsers`: A special identifier that represents anyone who is |
| 2185 | # on the internet; with or without a Google account. |
| 2186 | # |
| 2187 | # * `allAuthenticatedUsers`: A special identifier that represents anyone |
| 2188 | # who is authenticated with a Google account or a service account. |
| 2189 | # |
| 2190 | # * `user:{emailid}`: An email address that represents a specific Google |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2191 | # account. For example, `alice@example.com` . |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2192 | # |
| 2193 | # |
| 2194 | # * `serviceAccount:{emailid}`: An email address that represents a service |
| 2195 | # account. For example, `my-other-app@appspot.gserviceaccount.com`. |
| 2196 | # |
| 2197 | # * `group:{emailid}`: An email address that represents a Google group. |
| 2198 | # For example, `admins@example.com`. |
| 2199 | # |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2200 | # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 2201 | # identifier) representing a user that has been recently deleted. For |
| 2202 | # example, `alice@example.com?uid=123456789012345678901`. If the user is |
| 2203 | # recovered, this value reverts to `user:{emailid}` and the recovered user |
| 2204 | # retains the role in the binding. |
| 2205 | # |
| 2206 | # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus |
| 2207 | # unique identifier) representing a service account that has been recently |
| 2208 | # deleted. For example, |
| 2209 | # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. |
| 2210 | # If the service account is undeleted, this value reverts to |
| 2211 | # `serviceAccount:{emailid}` and the undeleted service account retains the |
| 2212 | # role in the binding. |
| 2213 | # |
| 2214 | # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique |
| 2215 | # identifier) representing a Google group that has been recently |
| 2216 | # deleted. For example, `admins@example.com?uid=123456789012345678901`. If |
| 2217 | # the group is recovered, this value reverts to `group:{emailid}` and the |
| 2218 | # recovered group retains the role in the binding. |
| 2219 | # |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2220 | # |
| 2221 | # * `domain:{domain}`: The G Suite domain (primary) that represents all the |
| 2222 | # users of that domain. For example, `google.com` or `example.com`. |
| 2223 | # |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2224 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2225 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2226 | "role": "A String", # Role that is assigned to `members`. |
| 2227 | # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2228 | }, |
| 2229 | ], |
Bu Sun Kim | d059ad8 | 2020-07-22 17:02:09 -0700 | [diff] [blame^] | 2230 | "version": 42, # Specifies the format of the policy. |
| 2231 | # |
| 2232 | # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value |
| 2233 | # are rejected. |
| 2234 | # |
| 2235 | # Any operation that affects conditional role bindings must specify version |
| 2236 | # `3`. This requirement applies to the following operations: |
| 2237 | # |
| 2238 | # * Getting a policy that includes a conditional role binding |
| 2239 | # * Adding a conditional role binding to a policy |
| 2240 | # * Changing a conditional role binding in a policy |
| 2241 | # * Removing any role binding, with or without a condition, from a policy |
| 2242 | # that includes conditions |
| 2243 | # |
| 2244 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 2245 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 2246 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 2247 | # the conditions in the version `3` policy are lost. |
| 2248 | # |
| 2249 | # If a policy does not include any conditions, operations on that policy may |
| 2250 | # specify any valid version or leave the field unset. |
| 2251 | # |
| 2252 | # To learn which resources support conditions in their IAM policies, see the |
| 2253 | # [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies). |
| 2254 | "etag": "A String", # `etag` is used for optimistic concurrency control as a way to help |
| 2255 | # prevent simultaneous updates of a policy from overwriting each other. |
| 2256 | # It is strongly suggested that systems make use of the `etag` in the |
| 2257 | # read-modify-write cycle to perform policy updates in order to avoid race |
| 2258 | # conditions: An `etag` is returned in the response to `getIamPolicy`, and |
| 2259 | # systems are expected to put that etag in the request to `setIamPolicy` to |
| 2260 | # ensure that their change will be applied to the same version of the policy. |
| 2261 | # |
| 2262 | # **Important:** If you use IAM Conditions, you must include the `etag` field |
| 2263 | # whenever you call `setIamPolicy`. If you omit this field, then IAM allows |
| 2264 | # you to overwrite a version `3` policy with a version `1` policy, and all of |
| 2265 | # the conditions in the version `3` policy are lost. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2266 | }</pre> |
| 2267 | </div> |
| 2268 | |
| 2269 | <div class="method"> |
Dan O'Meara | dd49464 | 2020-05-01 07:42:23 -0700 | [diff] [blame] | 2270 | <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code> |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2271 | <pre>Returns the permissions that a caller has on the specified note or |
| 2272 | occurrence resource. Requires list permission on the project (for example, |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2273 | "storage.objects.list" on the containing bucket for testing permission of |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2274 | an object). Attempting to call this method on a non-existent resource will |
| 2275 | result in a `NOT_FOUND` error if the user has list permission on the |
| 2276 | project, or a `PERMISSION_DENIED` error otherwise. The resource takes the |
| 2277 | following formats: `projects/{PROJECT_ID}/occurrences/{OCCURRENCE_ID}` for |
| 2278 | `Occurrences` and `projects/{PROJECT_ID}/notes/{NOTE_ID}` for `Notes` |
| 2279 | |
| 2280 | Args: |
| 2281 | resource: string, REQUIRED: The resource for which the policy detail is being requested. |
| 2282 | 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] | 2283 | body: object, The request body. |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2284 | The object takes the form of: |
| 2285 | |
| 2286 | { # Request message for `TestIamPermissions` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2287 | "permissions": [ # The set of permissions to check for the `resource`. Permissions with |
| 2288 | # wildcards (such as '*' or 'storage.*') are not allowed. For more |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2289 | # information see |
| 2290 | # [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2291 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2292 | ], |
| 2293 | } |
| 2294 | |
| 2295 | x__xgafv: string, V1 error format. |
| 2296 | Allowed values |
| 2297 | 1 - v1 error format |
| 2298 | 2 - v2 error format |
| 2299 | |
| 2300 | Returns: |
| 2301 | An object of the form: |
| 2302 | |
| 2303 | { # Response message for `TestIamPermissions` method. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2304 | "permissions": [ # A subset of `TestPermissionsRequest.permissions` that the caller is |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2305 | # allowed. |
Bu Sun Kim | 6502091 | 2020-05-20 12:08:20 -0700 | [diff] [blame] | 2306 | "A String", |
Bu Sun Kim | 715bd7f | 2019-06-14 16:50:42 -0700 | [diff] [blame] | 2307 | ], |
| 2308 | }</pre> |
| 2309 | </div> |
| 2310 | |
| 2311 | </body></html> |