REST Resource: projects.locations.datasets.consentStores.consents

Policy

Represents an end user's consent in terms of the resources that can be accessed and under what conditions.

JSON representation
{
  "resourceAttributes": [
    {
      object(Attribute)
    }
  ],
  "authorizationRule": {
    object(Expr)
  }
}
Fields
resourceAttributes[]

object(Attribute)

The data resources that this policy applies to. A data resource is a match if it matches all the attributes listed here.

authorizationRule

object(Expr)

The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have IN operator as well as at most 10 logical operators that are limited to AND(&&), OR(||).

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

activate

Activates the latest revision of the specified Consent by committing a new revision with state updated to ACTIVE.

create

Creates a new Consent in the parent Consent store.

delete

Deletes the Consent and its revisions.

deleteRevision

Deletes the specified revision of a Consent.

get

Gets the specified revision of a Consent, or the latest revision if revision_id is not specified in the resource name.

list

Lists the Consent in the given Consent store, returning each consent's latest revision.

listRevisions

Lists the revisions of the given Consent in reverse chronological order.

patch

Updates the latest revision of the specified Consent by committing a new revision with the changes.

reject

Rejects the latest revision of the specified Consent by committing a new revision with state updated to REJECTED.

revoke

Revokes the latest revision of the specified Consent by committing a new revision with state updated to REVOKED.