consents_revisions
Creates, updates, deletes, gets or lists a consents_revisions
resource.
Overview
Name | consents_revisions |
Type | Resource |
Id | google.healthcare.consents_revisions |
Fields
Name | Datatype | Description |
---|---|---|
name | string | Identifier. Resource name of the Consent, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id} . Cannot be changed after creation. |
consentArtifact | string | Required. The resource name of the Consent artifact that contains proof of the end user's consent, of the form projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consentArtifacts/{consent_artifact_id} . |
expireTime | string | Timestamp in UTC of when this Consent is considered expired. |
metadata | object | Optional. User-supplied key-value pairs used to organize Consent resources. Metadata keys must: - be between 1 and 63 characters long - have a UTF-8 encoding of maximum 128 bytes - begin with a letter - consist of up to 63 characters including lowercase letters, numeric characters, underscores, and dashes 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. |
policies | array | Optional. Represents a user's consent in terms of the resources that can be accessed and under what conditions. |
revisionCreateTime | string | Output only. The timestamp that the revision was created. |
revisionId | string | 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 @{revision_id} to the Consent's resource name. |
state | string | Required. Indicates the current state of this Consent. |
ttl | string | Input only. The time to live for this Consent from when it is created. |
userId | string | Required. User's UUID provided by the client. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
list_revisions | SELECT | consentStoresId, consentsId, datasetsId, locationsId, projectsId | Lists the revisions of the specified Consent in reverse chronological order. |
SELECT
examples
Lists the revisions of the specified Consent in reverse chronological order.
SELECT
name,
consentArtifact,
expireTime,
metadata,
policies,
revisionCreateTime,
revisionId,
state,
ttl,
userId
FROM google.healthcare.consents_revisions
WHERE consentStoresId = '{{ consentStoresId }}'
AND consentsId = '{{ consentsId }}'
AND datasetsId = '{{ datasetsId }}'
AND locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}';