Class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.QueryAccessibleDataRequest
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"
Inheritance
Inherited Members
Namespace: Google.Apis.CloudHealthcare.v1beta1
Assembly: Google.Apis.CloudHealthcare.v1beta1.dll
Syntax
public class ProjectsResource.LocationsResource.DatasetsResource.ConsentStoresResource.QueryAccessibleDataRequest : CloudHealthcareBaseServiceRequest<Operation>, IClientServiceRequest<Operation>, IClientServiceRequest
Constructors
QueryAccessibleDataRequest(IClientService, QueryAccessibleDataRequest, string)
Constructs a new QueryAccessibleData request.
Declaration
public QueryAccessibleDataRequest(IClientService service, QueryAccessibleDataRequest body, string consentStore)
Parameters
Type | Name | Description |
---|---|---|
IClientService | service | |
QueryAccessibleDataRequest | body | |
string | consentStore |
Properties
ConsentStore
Required. Name of the consent store to retrieve User data mappings from.
Declaration
[RequestParameter("consentStore", RequestParameterType.Path)]
public virtual string ConsentStore { get; }
Property Value
Type | Description |
---|---|
string |
HttpMethod
Gets the HTTP method.
Declaration
public override string HttpMethod { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
MethodName
Gets the method name.
Declaration
public override string MethodName { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
RestPath
Gets the REST path.
Declaration
public override string RestPath { get; }
Property Value
Type | Description |
---|---|
string |
Overrides
Methods
GetBody()
Returns the body of the request.
Declaration
protected override object GetBody()
Returns
Type | Description |
---|---|
object |
Overrides
InitParameters()
Initializes QueryAccessibleData parameter list.
Declaration
protected override void InitParameters()