Resource: Consent
Represents an end user's consent.
JSON representation | |
---|---|
{ "name": string, "revisionId": string, "revisionCreateTime": string, "userId": string, "policies": [ { object( |
Fields | ||
---|---|---|
name |
Resource name of the Consent, of the form |
|
revisionId |
Output only. The revision ID of the consent. The format is an 8-character hexadecimal string. Refer to a specific revision of a Consent by appending |
|
revisionCreateTime |
Output only. The timestamp that the revision was created. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
|
userId |
Required. User's UUID provided by the client. |
|
policies[] |
Represents an end user's consent in terms of the resources that can be accessed and under what conditions. |
|
consentArtifact |
Required. The resource name of the consent artifact that contains proof of the end user's consent, of the form |
|
state |
Indicates the current state of this consent. |
|
metadata |
User-supplied key-value pairs used to organize consent resources. Metadata keys must:
Metadata values must be: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes No more than 64 metadata entries can be associated with a given consent. An object containing a list of |
|
Union field expiration . Allows setting expiration time for Consents. Expired consents are ignored in access determination methods such as [CheckDataAccess]. This value overrides the expiration duration configured for the consent store. expiration can be only one of the following: |
||
expireTime |
Timestamp in UTC of when this consent is considered expired. A timestamp in RFC3339 UTC "Zulu" format, with nanosecond resolution and up to nine fractional digits. Examples: |
|
ttl |
Input only. The time to live for this consent from when it is created. A duration in seconds with up to nine fractional digits, terminated by ' |
Policy
Represents an end user's consent in terms of the resources that can be accessed and under what conditions.
JSON representation | |
---|---|
{ "resourceAttributes": [ { object( |
Fields | |
---|---|
resourceAttributes[] |
The data resources that this policy applies to. A data resource is a match if it matches all the attributes listed here. |
authorizationRule |
The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have |
State
The state of the consent resource.
Enums | |
---|---|
STATE_UNSPECIFIED |
No state specified. |
ACTIVE |
The consent is active and is considered when evaluating user's consent on resources. |
ARCHIVED |
When a consent is updated, the current version is archived and a new one is created with active state. |
REVOKED |
A revoked consent is not considered when evaluating user's consent on resources. |
DRAFT |
A draft consent is not considered when evaluating user's consent on resources unless explicitly asked. |
REJECTED |
When a draft consent is rejected by end user, it should be stored back with rejected state. A rejected consent is not considered when evaluating user's consent on resources. |
Methods |
|
---|---|
|
Activates the latest revision of the specified Consent by committing a new revision with state updated to ACTIVE . |
|
Creates a new Consent in the parent Consent store . |
|
Deletes the Consent and its revisions. |
|
Deletes the specified revision of a Consent . |
|
Gets the specified revision of a Consent , or the latest revision if revision_id is not specified in the resource name. |
|
Lists the Consent in the given Consent store , returning each consent's latest revision. |
|
Lists the revisions of the given Consent in reverse chronological order. |
|
Updates the latest revision of the specified Consent by committing a new revision with the changes. |
|
Rejects the latest revision of the specified Consent by committing a new revision with state updated to REJECTED . |
|
Revokes the latest revision of the specified Consent by committing a new revision with state updated to REVOKED . |