get | SELECT | consentStoresId, datasetsId, locationsId, projectsId | Gets the specified consent store. |
list | SELECT | datasetsId, locationsId, projectsId | Lists the consent stores in the specified dataset. |
create | INSERT | datasetsId, locationsId, projectsId | Creates a new consent store in the parent dataset. Attempting to create a consent store with the same ID as an existing store fails with an ALREADY_EXISTS error. |
delete | DELETE | consentStoresId, datasetsId, locationsId, projectsId | Deletes the specified consent store and removes all the consent store's data. |
_list | EXEC | datasetsId, locationsId, projectsId | Lists the consent stores in the specified dataset. |
check_data_access | EXEC | consentStoresId, datasetsId, locationsId, projectsId | Checks if a particular data_id of a User data mapping in the specified consent store is consented for the specified use. |
evaluate_user_consents | EXEC | consentStoresId, datasetsId, locationsId, projectsId | Evaluates the user's Consents for all matching User data mappings. Note: User data mappings are indexed asynchronously, which can cause a slight delay between the time mappings are created or updated and when they are included in EvaluateUserConsents results. |
patch | EXEC | consentStoresId, datasetsId, locationsId, projectsId | Updates the specified consent store. |
query_accessible_data | EXEC | consentStoresId, datasetsId, locationsId, projectsId | Queries all data_ids that are consented for a specified use in the given consent store and writes them to a specified destination. The returned Operation includes a progress counter for the number of User data mappings processed. If the request is successful, a detailed response is returned of type QueryAccessibleDataResponse, contained in the response field when the operation finishes. The metadata field type is OperationMetadata. Errors are logged to Cloud Logging (see Viewing error logs in Cloud Logging). For example, the following sample log entry shows a failed to evaluate consent policy error that occurred during a QueryAccessibleData call to consent store projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id} . json jsonPayload: { @type: "type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry" error: { code: 9 message: "failed to evaluate consent policy" } resourceName: "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}" } logName: "projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data" operation: { id: "projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}" producer: "healthcare.googleapis.com/QueryAccessibleData" } receiveTimestamp: "TIMESTAMP" resource: { labels: { consent_store_id: "{consent_store_id}" dataset_id: "{dataset_id}" location: "{location_id}" project_id: "{project_id}" } type: "healthcare_consent_store" } severity: "ERROR" timestamp: "TIMESTAMP" |