chore: regens API reference docs (#889)
diff --git a/docs/dyn/containeranalysis_v1beta1.projects.occurrences.html b/docs/dyn/containeranalysis_v1beta1.projects.occurrences.html
index d8771f1..8d4ff59 100644
--- a/docs/dyn/containeranalysis_v1beta1.projects.occurrences.html
+++ b/docs/dyn/containeranalysis_v1beta1.projects.occurrences.html
@@ -75,10 +75,10 @@
<h1><a href="containeranalysis_v1beta1.html">Container Analysis API</a> . <a href="containeranalysis_v1beta1.projects.html">projects</a> . <a href="containeranalysis_v1beta1.projects.occurrences.html">occurrences</a></h1>
<h2>Instance Methods</h2>
<p class="toc_element">
- <code><a href="#batchCreate">batchCreate(parent, body, x__xgafv=None)</a></code></p>
+ <code><a href="#batchCreate">batchCreate(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates new occurrences in batch.</p>
<p class="toc_element">
- <code><a href="#create">create(parent, body, x__xgafv=None)</a></code></p>
+ <code><a href="#create">create(parent, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Creates a new occurrence.</p>
<p class="toc_element">
<code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
@@ -102,30 +102,29 @@
<code><a href="#list_next">list_next(previous_request, previous_response)</a></code></p>
<p class="firstline">Retrieves the next page of results.</p>
<p class="toc_element">
- <code><a href="#patch">patch(name, body, updateMask=None, x__xgafv=None)</a></code></p>
+ <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
<p class="firstline">Updates the specified occurrence.</p>
<p class="toc_element">
- <code><a href="#setIamPolicy">setIamPolicy(resource, body, x__xgafv=None)</a></code></p>
+ <code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sets the access control policy on the specified note or occurrence.</p>
<p class="toc_element">
- <code><a href="#testIamPermissions">testIamPermissions(resource, body, x__xgafv=None)</a></code></p>
+ <code><a href="#testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Returns the permissions that a caller has on the specified note or</p>
<h3>Method Details</h3>
<div class="method">
- <code class="details" id="batchCreate">batchCreate(parent, body, x__xgafv=None)</code>
+ <code class="details" id="batchCreate">batchCreate(parent, body=None, x__xgafv=None)</code>
<pre>Creates new occurrences in batch.
Args:
- parent: string, The name of the project in the form of `projects/[PROJECT_ID]`, under which
+ parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which
the occurrences are to be created. (required)
- body: object, The request body. (required)
+ body: object, The request body.
The object takes the form of:
{ # Request to create occurrences in batch.
- "occurrences": [ # The occurrences to create. Max allowed length is 1000.
+ "occurrences": [ # Required. The occurrences to create. Max allowed length is 1000.
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -133,12 +132,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -195,7 +194,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -248,7 +248,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -331,6 +331,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -410,10 +481,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -449,10 +520,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -517,6 +588,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -534,7 +606,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -542,7 +613,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -558,12 +629,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -585,8 +656,7 @@
{ # Response for creating occurrences in batch.
"occurrences": [ # The occurrences that were created.
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -594,12 +664,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -656,7 +726,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -709,7 +780,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -792,6 +863,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -871,10 +1013,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -910,10 +1052,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -978,6 +1120,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -995,7 +1138,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -1003,7 +1145,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -1019,12 +1161,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -1037,18 +1179,17 @@
</div>
<div class="method">
- <code class="details" id="create">create(parent, body, x__xgafv=None)</code>
+ <code class="details" id="create">create(parent, body=None, x__xgafv=None)</code>
<pre>Creates a new occurrence.
Args:
- parent: string, The name of the project in the form of `projects/[PROJECT_ID]`, under which
+ parent: string, Required. The name of the project in the form of `projects/[PROJECT_ID]`, under which
the occurrence is to be created. (required)
- body: object, The request body. (required)
+ body: object, The request body.
The object takes the form of:
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -1056,12 +1197,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -1118,7 +1259,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -1171,7 +1313,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -1254,6 +1396,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -1333,10 +1546,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -1372,10 +1585,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -1440,6 +1653,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -1457,7 +1671,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -1465,7 +1678,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -1481,12 +1694,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -1504,8 +1717,7 @@
An object of the form:
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -1513,12 +1725,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -1575,7 +1787,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -1628,7 +1841,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -1711,6 +1924,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -1790,10 +2074,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -1829,10 +2113,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -1897,6 +2181,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -1914,7 +2199,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -1922,7 +2206,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -1938,12 +2222,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -1960,7 +2244,7 @@
resource.
Args:
- name: string, The name of the occurrence in the form of
+ name: string, Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
x__xgafv: string, V1 error format.
Allowed values
@@ -1987,7 +2271,7 @@
<pre>Gets the specified occurrence.
Args:
- name: string, The name of the occurrence in the form of
+ name: string, Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
x__xgafv: string, V1 error format.
Allowed values
@@ -1998,8 +2282,7 @@
An object of the form:
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -2007,12 +2290,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -2069,7 +2352,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -2122,7 +2406,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -2205,6 +2489,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -2284,10 +2639,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -2323,10 +2678,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -2391,6 +2746,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -2408,7 +2764,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -2416,7 +2771,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -2432,12 +2787,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -2465,6 +2820,17 @@
The object takes the form of:
{ # Request message for `GetIamPolicy` method.
+ "options": { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to
+ # `GetIamPolicy`.
+ "requestedPolicyVersion": 42, # Optional. The policy format version to be returned.
+ #
+ # Valid values are 0, 1, and 3. Requests specifying an invalid value will be
+ # rejected.
+ #
+ # Requests for policies with any conditional bindings must specify version 3.
+ # Policies without any conditional bindings may specify any valid value or
+ # leave the field unset.
+ },
}
x__xgafv: string, V1 error format.
@@ -2475,142 +2841,119 @@
Returns:
An object of the form:
- { # Defines an Identity and Access Management (IAM) policy. It is used to
- # specify access control policies for Cloud Platform resources.
+ { # An Identity and Access Management (IAM) policy, which specifies access
+ # controls for Google Cloud resources.
#
#
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
- # `members` to a `role`, where the members can be user accounts, Google groups,
- # Google domains, and service accounts. A `role` is a named list of permissions
- # defined by IAM.
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
+ # `members` to a single `role`. Members can be user accounts, service accounts,
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
+ # permissions; each `role` can be an IAM predefined role or a user-created
+ # custom role.
#
- # **JSON Example**
+ # Optionally, a `binding` can specify a `condition`, which is a logical
+ # expression that allows access to a resource only if the expression evaluates
+ # to `true`. A condition can add constraints based on attributes of the
+ # request, the resource, or both.
+ #
+ # **JSON example:**
#
# {
# "bindings": [
# {
- # "role": "roles/owner",
+ # "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# },
# {
- # "role": "roles/viewer",
- # "members": ["user:sean@example.com"]
+ # "role": "roles/resourcemanager.organizationViewer",
+ # "members": ["user:eve@example.com"],
+ # "condition": {
+ # "title": "expirable access",
+ # "description": "Does not grant access after Sep 2020",
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
+ # }
# }
- # ]
+ # ],
+ # "etag": "BwWWja0YfJA=",
+ # "version": 3
# }
#
- # **YAML Example**
+ # **YAML example:**
#
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
- # - serviceAccount:my-other-app@appspot.gserviceaccount.com
- # role: roles/owner
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
+ # role: roles/resourcemanager.organizationAdmin
# - members:
- # - user:sean@example.com
- # role: roles/viewer
- #
+ # - user:eve@example.com
+ # role: roles/resourcemanager.organizationViewer
+ # condition:
+ # title: expirable access
+ # description: Does not grant access after Sep 2020
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
+ # - etag: BwWWja0YfJA=
+ # - version: 3
#
# For a description of IAM and its features, see the
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
- "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
- { # Specifies the audit configuration for a service.
- # The configuration determines which permission types are logged, and what
- # identities, if any, are exempted from logging.
- # An AuditConfig must have one or more AuditLogConfigs.
- #
- # If there are AuditConfigs for both `allServices` and a specific service,
- # the union of the two AuditConfigs is used for that service: the log_types
- # specified in each AuditConfig are enabled, and the exempted_members in each
- # AuditLogConfig are exempted.
- #
- # Example Policy with multiple AuditConfigs:
- #
- # {
- # "audit_configs": [
- # {
- # "service": "allServices"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # },
- # {
- # "log_type": "ADMIN_READ",
- # }
- # ]
- # },
- # {
- # "service": "fooservice.googleapis.com"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # },
- # {
- # "log_type": "DATA_WRITE",
- # "exempted_members": [
- # "user:bar@gmail.com"
- # ]
- # }
- # ]
- # }
- # ]
- # }
- #
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
- # bar@gmail.com from DATA_WRITE logging.
- "auditLogConfigs": [ # The configuration for logging of each type of permission.
- { # Provides the configuration for logging a type of permissions.
- # Example:
- #
- # {
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # }
- # ]
- # }
- #
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
- # foo@gmail.com from DATA_READ logging.
- "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of
- # permission.
- # Follows the same format of Binding.members.
- "A String",
- ],
- "logType": "A String", # The log type that this config enables.
- },
- ],
- "service": "A String", # Specifies a service that will be enabled for audit logging.
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
- # `allServices` is a special value that covers all services.
- },
- ],
- "version": 42, # Deprecated.
- "bindings": [ # Associates a list of `members` to a `role`.
- # `bindings` with no members will result in an error.
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
+ "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
+ # `condition` that determines how and when the `bindings` are applied. Each
+ # of the `bindings` must contain at least one member.
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ # NOTE: An unsatisfied condition will not allow user access via current
+ # binding. Different bindings, including their conditions, are examined
+ # independently.
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
+ "expression": "A String", # Textual representation of an expression in Common Expression Language
+ # syntax.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "title": "A String", # Optional. Title for the expression, i.e. a short string describing
+ # its purpose. This can be used e.g. in UIs which allow to enter the
+ # expression.
+ },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -2621,7 +2964,7 @@
# who is authenticated with a Google account or a service account.
#
# * `user:{emailid}`: An email address that represents a specific Google
- # account. For example, `alice@gmail.com` .
+ # account. For example, `alice@example.com` .
#
#
# * `serviceAccount:{emailid}`: An email address that represents a service
@@ -2630,33 +2973,32 @@
# * `group:{emailid}`: An email address that represents a Google group.
# For example, `admins@example.com`.
#
+ # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a user that has been recently deleted. For
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
+ # recovered, this value reverts to `user:{emailid}` and the recovered user
+ # retains the role in the binding.
+ #
+ # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+ # unique identifier) representing a service account that has been recently
+ # deleted. For example,
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+ # If the service account is undeleted, this value reverts to
+ # `serviceAccount:{emailid}` and the undeleted service account retains the
+ # role in the binding.
+ #
+ # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a Google group that has been recently
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+ # the group is recovered, this value reverts to `group:{emailid}` and the
+ # recovered group retains the role in the binding.
+ #
#
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
#
"A String",
],
- "condition": { # Represents an expression text. Example: # The condition that is associated with this binding.
- # NOTE: An unsatisfied condition will not allow user access via current
- # binding. Different bindings, including their conditions, are examined
- # independently.
- #
- # title: "User account presence"
- # description: "Determines whether the request has a user account"
- # expression: "size(request.user) > 0"
- "location": "A String", # An optional string indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "expression": "A String", # Textual representation of an expression in
- # Common Expression Language syntax.
- #
- # The application context of the containing message determines which
- # well-known feature set of CEL is supported.
- "description": "A String", # An optional description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
- "title": "A String", # An optional title for the expression, i.e. a short string describing
- # its purpose. This can be used e.g. in UIs which allow to enter the
- # expression.
- },
},
],
"etag": "A String", # `etag` is used for optimistic concurrency control as a way to help
@@ -2667,8 +3009,31 @@
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
#
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
- # policy is overwritten blindly.
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ "version": 42, # Specifies the format of the policy.
+ #
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+ # are rejected.
+ #
+ # Any operation that affects conditional role bindings must specify version
+ # `3`. This requirement applies to the following operations:
+ #
+ # * Getting a policy that includes a conditional role binding
+ # * Adding a conditional role binding to a policy
+ # * Changing a conditional role binding in a policy
+ # * Removing any role binding, with or without a condition, from a policy
+ # that includes conditions
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ #
+ # If a policy does not include any conditions, operations on that policy may
+ # specify any valid version or leave the field unset.
}</pre>
</div>
@@ -2678,7 +3043,7 @@
use this method to get a note that belongs to a provider project.
Args:
- name: string, The name of the occurrence in the form of
+ name: string, Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
x__xgafv: string, V1 error format.
Allowed values
@@ -2751,15 +3116,15 @@
"attackVector": "A String", # Base Metrics
# Represents the intrinsic characteristics of a vulnerability that are
# constant over time and across user environments.
- "availabilityImpact": "A String",
+ "privilegesRequired": "A String",
"userInteraction": "A String",
"baseScore": 3.14, # The base score is a function of the base metric scores.
- "privilegesRequired": "A String",
+ "availabilityImpact": "A String",
"impactScore": 3.14,
"exploitabilityScore": 3.14,
- "confidentialityImpact": "A String",
- "integrityImpact": "A String",
"scope": "A String",
+ "integrityImpact": "A String",
+ "confidentialityImpact": "A String",
},
"cvssScore": 3.14, # The CVSS score for this vulnerability.
"severity": "A String", # Note provider assigned impact of the vulnerability.
@@ -2784,13 +3149,14 @@
"revision": "A String", # The iteration of the package build from the above version.
},
"package": "A String", # Required. The name of the package where the vulnerability was found.
- "packageType": "A String", # The type of package; whether native or non native(ruby gems, node.js
- # packages etc).
"isObsolete": True or False, # Whether this detail is obsolete. Occurrences are expected not to point to
# obsolete details.
- "maxAffectedVersion": { # Version contains structured information about the version of a package. # Deprecated, do not use. Use fixed_location instead.
- #
- # The max version of the package in which the vulnerability exists.
+ "packageType": "A String", # The type of package; whether native or non native(ruby gems, node.js
+ # packages etc).
+ "sourceUpdateTime": "A String", # The time this information was last changed at the source. This is an
+ # upstream timestamp from the underlying information source - e.g. Ubuntu
+ # security tracker.
+ "maxAffectedVersion": { # Version contains structured information about the version of a package. # The max version of the package in which the vulnerability exists.
"epoch": 42, # Used to correct mistakes in the version numbering scheme.
"kind": "A String", # Required. Distinguishes between sentinel MIN/MAX versions and normal
# versions.
@@ -2813,6 +3179,9 @@
},
},
],
+ "sourceUpdateTime": "A String", # The time this information was last changed at the source. This is an
+ # upstream timestamp from the underlying information source - e.g. Ubuntu
+ # security tracker.
},
"kind": "A String", # Output only. The type of analysis. This field can be used as a filter in
# list requests.
@@ -2842,6 +3211,52 @@
# example "qa".
},
},
+ "intoto": { # This contains the fields corresponding to the definition of a software supply # A note describing an in-toto link.
+ # chain step in an in-toto layout. This information goes into a Grafeas note.
+ "stepName": "A String", # This field identifies the name of the step in the supply chain.
+ "expectedCommand": [ # This field contains the expected command used to perform the step.
+ "A String",
+ ],
+ "threshold": "A String", # This field contains a value that indicates the minimum number of keys that
+ # need to be used to sign the step's in-toto link.
+ "expectedMaterials": [ # The following fields contain in-toto artifact rules identifying the
+ # artifacts that enter this supply chain step, and exit the supply chain
+ # step, i.e. materials and products of the step.
+ { # Defines an object to declare an in-toto artifact rule
+ "artifactRule": [
+ "A String",
+ ],
+ },
+ ],
+ "expectedProducts": [
+ { # Defines an object to declare an in-toto artifact rule
+ "artifactRule": [
+ "A String",
+ ],
+ },
+ ],
+ "signingKeys": [ # This field contains the public keys that can be used to verify the
+ # signatures on the step metadata.
+ { # This defines the format used to record keys used in the software supply
+ # chain. An in-toto link is attested using one or more keys defined in the
+ # in-toto layout. An example of this is:
+ # {
+ # "key_id": "776a00e29f3559e0141b3b096f696abc6cfb0c657ab40f441132b345b0...",
+ # "key_type": "rsa",
+ # "public_key_value": "-----BEGIN PUBLIC KEY-----\nMIIBojANBgkqhkiG9w0B...",
+ # "key_scheme": "rsassa-pss-sha256"
+ # }
+ # The format for in-toto's key definition can be found in section 4.2 of the
+ # in-toto specification.
+ "keyType": "A String", # This field identifies the specific signing method. Eg: "rsa", "ed25519",
+ # and "ecdsa".
+ "keyId": "A String", # key_id is an identifier for the signing key.
+ "publicKeyValue": "A String", # This field contains the actual public key.
+ "keyScheme": "A String", # This field contains the corresponding signature scheme.
+ # Eg: "rsassa-pss-sha256".
+ },
+ ],
+ },
"build": { # Note holding the version of the provider's builder and the signature of the # A note describing build provenance for a verifiable build.
# provenance message in the build details occurrence.
"builderVersion": "A String", # Required. Immutable. Version of the builder which produced this build.
@@ -2873,19 +3288,19 @@
"baseImage": { # Basis describes the base image portion (Note) of the DockerImage # A note describing a base image.
# relationship. Linked occurrences are derived from this or an
# equivalent image via:
- # FROM <Basis.resource_url>
+ # FROM <Basis.resource_url>
# Or an equivalent reference, e.g. a tag of the resource_url.
"resourceUrl": "A String", # Required. Immutable. The resource_url for the resource representing the
# basis of associated occurrence images.
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. Immutable. The fingerprint of the base image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
"expirationTime": "A String", # Time of expiration for this note. Empty if note does not expire.
@@ -2911,7 +3326,7 @@
<pre>Gets a summary of the number and severity of occurrences.
Args:
- parent: string, The name of the project to get a vulnerability summary for in the form of
+ parent: string, Required. The name of the project to get a vulnerability summary for in the form of
`projects/[PROJECT_ID]`. (required)
x__xgafv: string, V1 error format.
Allowed values
@@ -2934,12 +3349,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"severity": "A String", # The severity for this count. SEVERITY_UNSPECIFIED indicates total across
# all severities.
@@ -2954,7 +3369,7 @@
<pre>Lists occurrences for the specified project.
Args:
- parent: string, The name of the project to list occurrences for in the form of
+ parent: string, Required. The name of the project to list occurrences for in the form of
`projects/[PROJECT_ID]`. (required)
pageSize: integer, Number of occurrences to return in the list. Must be positive. Max allowed
page size is 1000. If not specified, page size defaults to 20.
@@ -2974,8 +3389,7 @@
# results.
"occurrences": [ # The occurrences requested.
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -2983,12 +3397,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -3045,7 +3459,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -3098,7 +3513,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -3181,6 +3596,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -3260,10 +3746,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -3299,10 +3785,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -3367,6 +3853,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -3384,7 +3871,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -3392,7 +3878,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -3408,12 +3894,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -3440,18 +3926,17 @@
</div>
<div class="method">
- <code class="details" id="patch">patch(name, body, updateMask=None, x__xgafv=None)</code>
+ <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
<pre>Updates the specified occurrence.
Args:
- name: string, The name of the occurrence in the form of
+ name: string, Required. The name of the occurrence in the form of
`projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. (required)
- body: object, The request body. (required)
+ body: object, The request body.
The object takes the form of:
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -3459,12 +3944,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -3521,7 +4006,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -3574,7 +4060,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -3657,6 +4143,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -3736,10 +4293,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -3775,10 +4332,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -3843,6 +4400,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -3860,7 +4418,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -3868,7 +4425,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -3884,12 +4441,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -3908,8 +4465,7 @@
An object of the form:
{ # An instance of an analysis type that has been found on a resource.
- "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
- # specified. This field can be used as a filter in list requests.
+ "updateTime": "A String", # Output only. The time this occurrence was last updated.
"resource": { # An entity that can have metadata. For example, a Docker image. # Required. Immutable. The resource for which the occurrence applies.
"contentHash": { # Container message for hash values. # Deprecated, do not use. Use uri instead.
#
@@ -3917,12 +4473,12 @@
"type": "A String", # Required. The type of hash that was performed.
"value": "A String", # Required. The hash value.
},
- "uri": "A String", # Required. The unique URI of the resource. For example,
- # `https://gcr.io/project/image@sha256:foo` for a Docker image.
"name": "A String", # Deprecated, do not use. Use uri instead.
#
# The name of the resource. For example, the name of a Docker image -
# "Debian".
+ "uri": "A String", # Required. The unique URI of the resource. For example,
+ # `https://gcr.io/project/image@sha256:foo` for a Docker image.
},
"name": "A String", # Output only. The name of the occurrence in the form of
# `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`.
@@ -3979,7 +4535,8 @@
"longDescription": "A String", # Output only. A detailed description of this vulnerability.
"shortDescription": "A String", # Output only. A one sentence description of this vulnerability.
},
- "updateTime": "A String", # Output only. The time this occurrence was last updated.
+ "kind": "A String", # Output only. This explicitly denotes which of the occurrence details are
+ # specified. This field can be used as a filter in list requests.
"discovered": { # Details of a discovery occurrence. # Describes when a resource was discovered.
"discovered": { # Provides information about the analysis status of a discovered resource. # Required. Analysis status for the discovered resource.
"lastAnalysisTime": "A String", # The last time continuous analysis was done for this resource.
@@ -4032,7 +4589,7 @@
# gpg --with-colons --with-fingerprint --force-v4-certs \
# --list-keys attester@example.com
# tru::1:1513631572:0:3:1:5
- # pub:...<SNIP>...
+ # pub:...<SNIP>...
# fpr:::::::::24FF6481B76AC91E66A00AC657A93A81EF3AE6FB:
# ```
# Above, the fingerprint is `24FF6481B76AC91E66A00AC657A93A81EF3AE6FB`.
@@ -4115,6 +4672,77 @@
},
},
},
+ "intoto": { # This corresponds to a signed in-toto link - it is made up of one or more # Describes a specific in-toto link.
+ # signatures and the in-toto link itself. This is used for occurrences of a
+ # Grafeas in-toto note.
+ "signatures": [
+ { # A signature object consists of the KeyID used and the signature itself.
+ "keyid": "A String",
+ "sig": "A String",
+ },
+ ],
+ "signed": { # This corresponds to an in-toto link.
+ "environment": { # Defines an object for the environment field in in-toto links. The suggested # This is a field that can be used to capture information about the
+ # environment. It is suggested for this field to contain information that
+ # details environment variables, filesystem information, and the present
+ # working directory. The recommended structure of this field is:
+ # "environment": {
+ # "custom_values": {
+ # "variables": "<ENV>",
+ # "filesystem": "<FS>",
+ # "workdir": "<CWD>",
+ # "<ANY OTHER RELEVANT FIELDS>": "..."
+ # }
+ # }
+ # fields are "variables", "filesystem", and "workdir".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ "command": [ # This field contains the full command executed for the step. This can also
+ # be empty if links are generated for operations that aren't directly mapped
+ # to a specific command. Each term in the command is an independent string
+ # in the list. An example of a command in the in-toto metadata field is:
+ # "command": ["git", "clone", "https://github.com/in-toto/demo-project.git"]
+ "A String",
+ ],
+ "materials": [ # Materials are the supply chain artifacts that go into the step and are used
+ # for the operation performed. The key of the map is the path of the artifact
+ # and the structure contains the recorded hash information. An example is:
+ # "materials": [
+ # {
+ # "resource_uri": "foo/bar",
+ # "hashes": {
+ # "sha256": "ebebf...",
+ # <OTHER HASH ALGORITHMS>: <HASH VALUE>
+ # }
+ # }
+ # ]
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "products": [ # Products are the supply chain artifacts generated as a result of the step.
+ # The structure is identical to that of materials.
+ {
+ "resourceUri": "A String",
+ "hashes": { # Defines a hash object for use in Materials and Products.
+ "sha256": "A String",
+ },
+ },
+ ],
+ "byproducts": { # Defines an object for the byproducts field in in-toto links. The suggested # ByProducts are data generated as part of a software supply chain step, but
+ # are not the actual result of the step.
+ # fields are "stderr", "stdout", and "return-value".
+ "customValues": {
+ "a_key": "A String",
+ },
+ },
+ },
+ },
"build": { # Details of a build occurrence. # Describes a verifiable build.
"provenance": { # Provenance of a build. Contains all information needed to verify the full # Required. The actual provenance for the build.
# details about the build from source to completion.
@@ -4194,10 +4822,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
],
@@ -4233,10 +4861,10 @@
"name": "A String", # The alias name.
},
"revisionId": "A String", # A revision (commit) ID.
- "hostUri": "A String", # The URI of a running Gerrit instance.
"gerritProject": "A String", # The full project name within the host. Projects may be nested, so
# "project/subproject" is a valid project name. The "repo name" is the
# hostURI/project.
+ "hostUri": "A String", # The URI of a running Gerrit instance.
},
},
},
@@ -4301,6 +4929,7 @@
"installation": { # Details of a package occurrence. # Describes the installation of a package on the linked resource.
"installation": { # This represents how a particular software package may be installed on a # Required. Where the package was installed.
# system.
+ "name": "A String", # Output only. The name of the installed package.
"location": [ # Required. All of the places within the filesystem versions of this package
# have been found.
{ # An occurrence of a particular package installation found within a system's
@@ -4318,7 +4947,6 @@
},
},
],
- "name": "A String", # Output only. The name of the installed package.
},
},
"createTime": "A String", # Output only. The time this occurrence was created.
@@ -4326,7 +4954,7 @@
# note.
"derivedImage": { # Derived describes the derived image portion (Occurrence) of the DockerImage # Required. Immutable. The child image derived from the base image.
# relationship. This image would be produced from a Dockerfile with FROM
- # <DockerImage.Basis in attached Note>.
+ # <DockerImage.Basis in attached Note>.
"distance": 42, # Output only. The number of layers by which this image differs from the
# associated image basis.
"baseResourceUrl": "A String", # Output only. This contains the base image URL for the derived image
@@ -4342,12 +4970,12 @@
"fingerprint": { # A set of properties that uniquely identify a given Docker image. # Required. The fingerprint of the derived image.
"v1Name": "A String", # Required. The layer ID of the final layer in the Docker image's v1
# representation.
- "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
- # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
- # Only the name of the final blob is kept.
"v2Blob": [ # Required. The ordered list of v2 blobs that represent a given image.
"A String",
],
+ "v2Name": "A String", # Output only. The name of the image's v2 blobs computed via:
+ # [bottom] := v2_blobbottom := sha256(v2_blob[N] + " " + v2_name[N+1])
+ # Only the name of the final blob is kept.
},
},
},
@@ -4358,7 +4986,7 @@
</div>
<div class="method">
- <code class="details" id="setIamPolicy">setIamPolicy(resource, body, x__xgafv=None)</code>
+ <code class="details" id="setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</code>
<pre>Sets the access control policy on the specified note or occurrence.
Requires `containeranalysis.notes.setIamPolicy` or
`containeranalysis.occurrences.setIamPolicy` permission if the resource is
@@ -4371,149 +4999,126 @@
Args:
resource: string, REQUIRED: The resource for which the policy is being specified.
See the operation documentation for the appropriate value for this field. (required)
- body: object, The request body. (required)
+ body: object, The request body.
The object takes the form of:
{ # Request message for `SetIamPolicy` method.
- "policy": { # Defines an Identity and Access Management (IAM) policy. It is used to # REQUIRED: The complete policy to be applied to the `resource`. The size of
+ "policy": { # An Identity and Access Management (IAM) policy, which specifies access # REQUIRED: The complete policy to be applied to the `resource`. The size of
# the policy is limited to a few 10s of KB. An empty policy is a
# valid policy but certain Cloud Platform services (such as Projects)
# might reject them.
- # specify access control policies for Cloud Platform resources.
+ # controls for Google Cloud resources.
#
#
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
- # `members` to a `role`, where the members can be user accounts, Google groups,
- # Google domains, and service accounts. A `role` is a named list of permissions
- # defined by IAM.
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
+ # `members` to a single `role`. Members can be user accounts, service accounts,
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
+ # permissions; each `role` can be an IAM predefined role or a user-created
+ # custom role.
#
- # **JSON Example**
+ # Optionally, a `binding` can specify a `condition`, which is a logical
+ # expression that allows access to a resource only if the expression evaluates
+ # to `true`. A condition can add constraints based on attributes of the
+ # request, the resource, or both.
+ #
+ # **JSON example:**
#
# {
# "bindings": [
# {
- # "role": "roles/owner",
+ # "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# },
# {
- # "role": "roles/viewer",
- # "members": ["user:sean@example.com"]
+ # "role": "roles/resourcemanager.organizationViewer",
+ # "members": ["user:eve@example.com"],
+ # "condition": {
+ # "title": "expirable access",
+ # "description": "Does not grant access after Sep 2020",
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
+ # }
# }
- # ]
+ # ],
+ # "etag": "BwWWja0YfJA=",
+ # "version": 3
# }
#
- # **YAML Example**
+ # **YAML example:**
#
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
- # - serviceAccount:my-other-app@appspot.gserviceaccount.com
- # role: roles/owner
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
+ # role: roles/resourcemanager.organizationAdmin
# - members:
- # - user:sean@example.com
- # role: roles/viewer
- #
+ # - user:eve@example.com
+ # role: roles/resourcemanager.organizationViewer
+ # condition:
+ # title: expirable access
+ # description: Does not grant access after Sep 2020
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
+ # - etag: BwWWja0YfJA=
+ # - version: 3
#
# For a description of IAM and its features, see the
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
- "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
- { # Specifies the audit configuration for a service.
- # The configuration determines which permission types are logged, and what
- # identities, if any, are exempted from logging.
- # An AuditConfig must have one or more AuditLogConfigs.
- #
- # If there are AuditConfigs for both `allServices` and a specific service,
- # the union of the two AuditConfigs is used for that service: the log_types
- # specified in each AuditConfig are enabled, and the exempted_members in each
- # AuditLogConfig are exempted.
- #
- # Example Policy with multiple AuditConfigs:
- #
- # {
- # "audit_configs": [
- # {
- # "service": "allServices"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # },
- # {
- # "log_type": "ADMIN_READ",
- # }
- # ]
- # },
- # {
- # "service": "fooservice.googleapis.com"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # },
- # {
- # "log_type": "DATA_WRITE",
- # "exempted_members": [
- # "user:bar@gmail.com"
- # ]
- # }
- # ]
- # }
- # ]
- # }
- #
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
- # bar@gmail.com from DATA_WRITE logging.
- "auditLogConfigs": [ # The configuration for logging of each type of permission.
- { # Provides the configuration for logging a type of permissions.
- # Example:
- #
- # {
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # }
- # ]
- # }
- #
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
- # foo@gmail.com from DATA_READ logging.
- "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of
- # permission.
- # Follows the same format of Binding.members.
- "A String",
- ],
- "logType": "A String", # The log type that this config enables.
- },
- ],
- "service": "A String", # Specifies a service that will be enabled for audit logging.
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
- # `allServices` is a special value that covers all services.
- },
- ],
- "version": 42, # Deprecated.
- "bindings": [ # Associates a list of `members` to a `role`.
- # `bindings` with no members will result in an error.
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
+ "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
+ # `condition` that determines how and when the `bindings` are applied. Each
+ # of the `bindings` must contain at least one member.
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ # NOTE: An unsatisfied condition will not allow user access via current
+ # binding. Different bindings, including their conditions, are examined
+ # independently.
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
+ "expression": "A String", # Textual representation of an expression in Common Expression Language
+ # syntax.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "title": "A String", # Optional. Title for the expression, i.e. a short string describing
+ # its purpose. This can be used e.g. in UIs which allow to enter the
+ # expression.
+ },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -4524,7 +5129,7 @@
# who is authenticated with a Google account or a service account.
#
# * `user:{emailid}`: An email address that represents a specific Google
- # account. For example, `alice@gmail.com` .
+ # account. For example, `alice@example.com` .
#
#
# * `serviceAccount:{emailid}`: An email address that represents a service
@@ -4533,33 +5138,32 @@
# * `group:{emailid}`: An email address that represents a Google group.
# For example, `admins@example.com`.
#
+ # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a user that has been recently deleted. For
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
+ # recovered, this value reverts to `user:{emailid}` and the recovered user
+ # retains the role in the binding.
+ #
+ # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+ # unique identifier) representing a service account that has been recently
+ # deleted. For example,
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+ # If the service account is undeleted, this value reverts to
+ # `serviceAccount:{emailid}` and the undeleted service account retains the
+ # role in the binding.
+ #
+ # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a Google group that has been recently
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+ # the group is recovered, this value reverts to `group:{emailid}` and the
+ # recovered group retains the role in the binding.
+ #
#
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
#
"A String",
],
- "condition": { # Represents an expression text. Example: # The condition that is associated with this binding.
- # NOTE: An unsatisfied condition will not allow user access via current
- # binding. Different bindings, including their conditions, are examined
- # independently.
- #
- # title: "User account presence"
- # description: "Determines whether the request has a user account"
- # expression: "size(request.user) > 0"
- "location": "A String", # An optional string indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "expression": "A String", # Textual representation of an expression in
- # Common Expression Language syntax.
- #
- # The application context of the containing message determines which
- # well-known feature set of CEL is supported.
- "description": "A String", # An optional description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
- "title": "A String", # An optional title for the expression, i.e. a short string describing
- # its purpose. This can be used e.g. in UIs which allow to enter the
- # expression.
- },
},
],
"etag": "A String", # `etag` is used for optimistic concurrency control as a way to help
@@ -4570,14 +5174,32 @@
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
#
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
- # policy is overwritten blindly.
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ "version": 42, # Specifies the format of the policy.
+ #
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+ # are rejected.
+ #
+ # Any operation that affects conditional role bindings must specify version
+ # `3`. This requirement applies to the following operations:
+ #
+ # * Getting a policy that includes a conditional role binding
+ # * Adding a conditional role binding to a policy
+ # * Changing a conditional role binding in a policy
+ # * Removing any role binding, with or without a condition, from a policy
+ # that includes conditions
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ #
+ # If a policy does not include any conditions, operations on that policy may
+ # specify any valid version or leave the field unset.
},
- "updateMask": "A String", # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
- # the fields in the mask will be modified. If no mask is provided, the
- # following default mask is used:
- # paths: "bindings, etag"
- # This field is only used by Cloud IAM.
}
x__xgafv: string, V1 error format.
@@ -4588,142 +5210,119 @@
Returns:
An object of the form:
- { # Defines an Identity and Access Management (IAM) policy. It is used to
- # specify access control policies for Cloud Platform resources.
+ { # An Identity and Access Management (IAM) policy, which specifies access
+ # controls for Google Cloud resources.
#
#
- # A `Policy` consists of a list of `bindings`. A `binding` binds a list of
- # `members` to a `role`, where the members can be user accounts, Google groups,
- # Google domains, and service accounts. A `role` is a named list of permissions
- # defined by IAM.
+ # A `Policy` is a collection of `bindings`. A `binding` binds one or more
+ # `members` to a single `role`. Members can be user accounts, service accounts,
+ # Google groups, and domains (such as G Suite). A `role` is a named list of
+ # permissions; each `role` can be an IAM predefined role or a user-created
+ # custom role.
#
- # **JSON Example**
+ # Optionally, a `binding` can specify a `condition`, which is a logical
+ # expression that allows access to a resource only if the expression evaluates
+ # to `true`. A condition can add constraints based on attributes of the
+ # request, the resource, or both.
+ #
+ # **JSON example:**
#
# {
# "bindings": [
# {
- # "role": "roles/owner",
+ # "role": "roles/resourcemanager.organizationAdmin",
# "members": [
# "user:mike@example.com",
# "group:admins@example.com",
# "domain:google.com",
- # "serviceAccount:my-other-app@appspot.gserviceaccount.com"
+ # "serviceAccount:my-project-id@appspot.gserviceaccount.com"
# ]
# },
# {
- # "role": "roles/viewer",
- # "members": ["user:sean@example.com"]
+ # "role": "roles/resourcemanager.organizationViewer",
+ # "members": ["user:eve@example.com"],
+ # "condition": {
+ # "title": "expirable access",
+ # "description": "Does not grant access after Sep 2020",
+ # "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')",
+ # }
# }
- # ]
+ # ],
+ # "etag": "BwWWja0YfJA=",
+ # "version": 3
# }
#
- # **YAML Example**
+ # **YAML example:**
#
# bindings:
# - members:
# - user:mike@example.com
# - group:admins@example.com
# - domain:google.com
- # - serviceAccount:my-other-app@appspot.gserviceaccount.com
- # role: roles/owner
+ # - serviceAccount:my-project-id@appspot.gserviceaccount.com
+ # role: roles/resourcemanager.organizationAdmin
# - members:
- # - user:sean@example.com
- # role: roles/viewer
- #
+ # - user:eve@example.com
+ # role: roles/resourcemanager.organizationViewer
+ # condition:
+ # title: expirable access
+ # description: Does not grant access after Sep 2020
+ # expression: request.time < timestamp('2020-10-01T00:00:00.000Z')
+ # - etag: BwWWja0YfJA=
+ # - version: 3
#
# For a description of IAM and its features, see the
- # [IAM developer's guide](https://cloud.google.com/iam/docs).
- "auditConfigs": [ # Specifies cloud audit logging configuration for this policy.
- { # Specifies the audit configuration for a service.
- # The configuration determines which permission types are logged, and what
- # identities, if any, are exempted from logging.
- # An AuditConfig must have one or more AuditLogConfigs.
- #
- # If there are AuditConfigs for both `allServices` and a specific service,
- # the union of the two AuditConfigs is used for that service: the log_types
- # specified in each AuditConfig are enabled, and the exempted_members in each
- # AuditLogConfig are exempted.
- #
- # Example Policy with multiple AuditConfigs:
- #
- # {
- # "audit_configs": [
- # {
- # "service": "allServices"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # },
- # {
- # "log_type": "ADMIN_READ",
- # }
- # ]
- # },
- # {
- # "service": "fooservice.googleapis.com"
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # },
- # {
- # "log_type": "DATA_WRITE",
- # "exempted_members": [
- # "user:bar@gmail.com"
- # ]
- # }
- # ]
- # }
- # ]
- # }
- #
- # For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
- # logging. It also exempts foo@gmail.com from DATA_READ logging, and
- # bar@gmail.com from DATA_WRITE logging.
- "auditLogConfigs": [ # The configuration for logging of each type of permission.
- { # Provides the configuration for logging a type of permissions.
- # Example:
- #
- # {
- # "audit_log_configs": [
- # {
- # "log_type": "DATA_READ",
- # "exempted_members": [
- # "user:foo@gmail.com"
- # ]
- # },
- # {
- # "log_type": "DATA_WRITE",
- # }
- # ]
- # }
- #
- # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
- # foo@gmail.com from DATA_READ logging.
- "exemptedMembers": [ # Specifies the identities that do not cause logging for this type of
- # permission.
- # Follows the same format of Binding.members.
- "A String",
- ],
- "logType": "A String", # The log type that this config enables.
- },
- ],
- "service": "A String", # Specifies a service that will be enabled for audit logging.
- # For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
- # `allServices` is a special value that covers all services.
- },
- ],
- "version": 42, # Deprecated.
- "bindings": [ # Associates a list of `members` to a `role`.
- # `bindings` with no members will result in an error.
+ # [IAM documentation](https://cloud.google.com/iam/docs/).
+ "bindings": [ # Associates a list of `members` to a `role`. Optionally, may specify a
+ # `condition` that determines how and when the `bindings` are applied. Each
+ # of the `bindings` must contain at least one member.
{ # Associates `members` with a `role`.
"role": "A String", # Role that is assigned to `members`.
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
+ "condition": { # Represents a textual expression in the Common Expression Language (CEL) # The condition that is associated with this binding.
+ # NOTE: An unsatisfied condition will not allow user access via current
+ # binding. Different bindings, including their conditions, are examined
+ # independently.
+ # syntax. CEL is a C-like expression language. The syntax and semantics of CEL
+ # are documented at https://github.com/google/cel-spec.
+ #
+ # Example (Comparison):
+ #
+ # title: "Summary size limit"
+ # description: "Determines if a summary is less than 100 chars"
+ # expression: "document.summary.size() < 100"
+ #
+ # Example (Equality):
+ #
+ # title: "Requestor is owner"
+ # description: "Determines if requestor is the document owner"
+ # expression: "document.owner == request.auth.claims.email"
+ #
+ # Example (Logic):
+ #
+ # title: "Public documents"
+ # description: "Determine whether the document should be publicly visible"
+ # expression: "document.type != 'private' && document.type != 'internal'"
+ #
+ # Example (Data Manipulation):
+ #
+ # title: "Notification string"
+ # description: "Create a notification string with a timestamp."
+ # expression: "'New message received at ' + string(document.create_time)"
+ #
+ # The exact variables and functions that may be referenced within an expression
+ # are determined by the service that evaluates it. See the service
+ # documentation for additional information.
+ "description": "A String", # Optional. Description of the expression. This is a longer text which
+ # describes the expression, e.g. when hovered over it in a UI.
+ "expression": "A String", # Textual representation of an expression in Common Expression Language
+ # syntax.
+ "location": "A String", # Optional. String indicating the location of the expression for error
+ # reporting, e.g. a file name and a position in the file.
+ "title": "A String", # Optional. Title for the expression, i.e. a short string describing
+ # its purpose. This can be used e.g. in UIs which allow to enter the
+ # expression.
+ },
"members": [ # Specifies the identities requesting access for a Cloud Platform resource.
# `members` can have the following values:
#
@@ -4734,7 +5333,7 @@
# who is authenticated with a Google account or a service account.
#
# * `user:{emailid}`: An email address that represents a specific Google
- # account. For example, `alice@gmail.com` .
+ # account. For example, `alice@example.com` .
#
#
# * `serviceAccount:{emailid}`: An email address that represents a service
@@ -4743,33 +5342,32 @@
# * `group:{emailid}`: An email address that represents a Google group.
# For example, `admins@example.com`.
#
+ # * `deleted:user:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a user that has been recently deleted. For
+ # example, `alice@example.com?uid=123456789012345678901`. If the user is
+ # recovered, this value reverts to `user:{emailid}` and the recovered user
+ # retains the role in the binding.
+ #
+ # * `deleted:serviceAccount:{emailid}?uid={uniqueid}`: An email address (plus
+ # unique identifier) representing a service account that has been recently
+ # deleted. For example,
+ # `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
+ # If the service account is undeleted, this value reverts to
+ # `serviceAccount:{emailid}` and the undeleted service account retains the
+ # role in the binding.
+ #
+ # * `deleted:group:{emailid}?uid={uniqueid}`: An email address (plus unique
+ # identifier) representing a Google group that has been recently
+ # deleted. For example, `admins@example.com?uid=123456789012345678901`. If
+ # the group is recovered, this value reverts to `group:{emailid}` and the
+ # recovered group retains the role in the binding.
+ #
#
# * `domain:{domain}`: The G Suite domain (primary) that represents all the
# users of that domain. For example, `google.com` or `example.com`.
#
"A String",
],
- "condition": { # Represents an expression text. Example: # The condition that is associated with this binding.
- # NOTE: An unsatisfied condition will not allow user access via current
- # binding. Different bindings, including their conditions, are examined
- # independently.
- #
- # title: "User account presence"
- # description: "Determines whether the request has a user account"
- # expression: "size(request.user) > 0"
- "location": "A String", # An optional string indicating the location of the expression for error
- # reporting, e.g. a file name and a position in the file.
- "expression": "A String", # Textual representation of an expression in
- # Common Expression Language syntax.
- #
- # The application context of the containing message determines which
- # well-known feature set of CEL is supported.
- "description": "A String", # An optional description of the expression. This is a longer text which
- # describes the expression, e.g. when hovered over it in a UI.
- "title": "A String", # An optional title for the expression, i.e. a short string describing
- # its purpose. This can be used e.g. in UIs which allow to enter the
- # expression.
- },
},
],
"etag": "A String", # `etag` is used for optimistic concurrency control as a way to help
@@ -4780,13 +5378,36 @@
# systems are expected to put that etag in the request to `setIamPolicy` to
# ensure that their change will be applied to the same version of the policy.
#
- # If no `etag` is provided in the call to `setIamPolicy`, then the existing
- # policy is overwritten blindly.
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ "version": 42, # Specifies the format of the policy.
+ #
+ # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value
+ # are rejected.
+ #
+ # Any operation that affects conditional role bindings must specify version
+ # `3`. This requirement applies to the following operations:
+ #
+ # * Getting a policy that includes a conditional role binding
+ # * Adding a conditional role binding to a policy
+ # * Changing a conditional role binding in a policy
+ # * Removing any role binding, with or without a condition, from a policy
+ # that includes conditions
+ #
+ # **Important:** If you use IAM Conditions, you must include the `etag` field
+ # whenever you call `setIamPolicy`. If you omit this field, then IAM allows
+ # you to overwrite a version `3` policy with a version `1` policy, and all of
+ # the conditions in the version `3` policy are lost.
+ #
+ # If a policy does not include any conditions, operations on that policy may
+ # specify any valid version or leave the field unset.
}</pre>
</div>
<div class="method">
- <code class="details" id="testIamPermissions">testIamPermissions(resource, body, x__xgafv=None)</code>
+ <code class="details" id="testIamPermissions">testIamPermissions(resource, body=None, x__xgafv=None)</code>
<pre>Returns the permissions that a caller has on the specified note or
occurrence. Requires list permission on the project (for example,
`containeranalysis.notes.list`).
@@ -4798,7 +5419,7 @@
Args:
resource: string, REQUIRED: The resource for which the policy detail is being requested.
See the operation documentation for the appropriate value for this field. (required)
- body: object, The request body. (required)
+ body: object, The request body.
The object takes the form of:
{ # Request message for `TestIamPermissions` method.