Skip to content

Commit

Permalink
feat(healthcare): update the api
Browse files Browse the repository at this point in the history
#### healthcare:v1

The following keys were added:
- schemas.QueryAccessibleDataResponse.properties.gcsUris (Total Keys: 2)

#### healthcare:v1beta1

The following keys were added:
- resources.projects.resources.locations.resources.datasets.resources.fhirStores.methods.configureSearch (Total Keys: 12)
- schemas.ConfigureSearchRequest (Total Keys: 3)
- schemas.FhirStore.properties.searchConfig.$ref (Total Keys: 1)
- schemas.QueryAccessibleDataResponse.properties.gcsUris (Total Keys: 2)
- schemas.SearchConfig (Total Keys: 4)
- schemas.SearchParameter (Total Keys: 3)
  • Loading branch information
yoshi-automation committed Jun 29, 2021
1 parent b054ae6 commit 45ee6b2
Show file tree
Hide file tree
Showing 6 changed files with 205 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h2>Instance Methods</h2>
<p class="firstline">Updates the specified consent store.</p>
<p class="toc_element">
<code><a href="#queryAccessibleData">queryAccessibleData(consentStore, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">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. Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/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" ```</p>
<p class="firstline">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](https://cloud.google.com/healthcare/docs/how-tos/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" ```</p>
<p class="toc_element">
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
Expand Down Expand Up @@ -459,7 +459,7 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="queryAccessibleData">queryAccessibleData(consentStore, body=None, x__xgafv=None)</code>
<pre>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. Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/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: &quot;type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry&quot; error: { code: 9 message: &quot;failed to evaluate consent policy&quot; } resourceName: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}&quot; } logName: &quot;projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data&quot; operation: { id: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}&quot; producer: &quot;healthcare.googleapis.com/QueryAccessibleData&quot; } receiveTimestamp: &quot;TIMESTAMP&quot; resource: { labels: { consent_store_id: &quot;{consent_store_id}&quot; dataset_id: &quot;{dataset_id}&quot; location: &quot;{location_id}&quot; project_id: &quot;{project_id}&quot; } type: &quot;healthcare_consent_store&quot; } severity: &quot;ERROR&quot; timestamp: &quot;TIMESTAMP&quot; ```
<pre>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](https://cloud.google.com/healthcare/docs/how-tos/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: &quot;type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry&quot; error: { code: 9 message: &quot;failed to evaluate consent policy&quot; } resourceName: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}&quot; } logName: &quot;projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data&quot; operation: { id: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}&quot; producer: &quot;healthcare.googleapis.com/QueryAccessibleData&quot; } receiveTimestamp: &quot;TIMESTAMP&quot; resource: { labels: { consent_store_id: &quot;{consent_store_id}&quot; dataset_id: &quot;{dataset_id}&quot; location: &quot;{location_id}&quot; project_id: &quot;{project_id}&quot; } type: &quot;healthcare_consent_store&quot; } severity: &quot;ERROR&quot; timestamp: &quot;TIMESTAMP&quot; ```

Args:
consentStore: string, Required. Name of the consent store to retrieve User data mappings from. (required)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ <h3>Method Details</h3>
The object takes the form of:

{ # Request to export resources.
&quot;bigqueryDestination&quot;: { # The configuration for exporting to BigQuery. # The BigQuery output destination. The Cloud Healthcare Service Agent requires two IAM roles on the BigQuery location: `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. The output is one BigQuery table per resource type.
&quot;bigqueryDestination&quot;: { # The configuration for exporting to BigQuery. # The BigQuery output destination. The Cloud Healthcare Service Agent requires two IAM roles on the BigQuery location: `roles/bigquery.dataEditor` and `roles/bigquery.jobUser`. The output is one BigQuery table per resource type. Note that unlike in FhirStore.StreamConfig.BigQueryDestination, BigQuery views will not be created by ExportResources.
&quot;datasetUri&quot;: &quot;A String&quot;, # BigQuery URI to an existing dataset, up to 2000 characters long, in the format `bq://projectId.bqDatasetId`.
&quot;force&quot;: True or False, # If this flag is `TRUE`, all tables are deleted from the dataset before the new exported tables are written. If the flag is not set and the destination dataset contains tables, the export call returns an error. If `write_disposition` is specified, this parameter is ignored. force=false is equivalent to write_disposition=WRITE_EMPTY and force=true is equivalent to write_disposition=WRITE_TRUNCATE.
&quot;schemaConfig&quot;: { # Configuration for the FHIR BigQuery schema. Determines how the server generates the schema. # The configuration for the exported BigQuery schema.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ <h2>Instance Methods</h2>
<p class="firstline">Updates the specified consent store.</p>
<p class="toc_element">
<code><a href="#queryAccessibleData">queryAccessibleData(consentStore, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">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. Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/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" ```</p>
<p class="firstline">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](https://cloud.google.com/healthcare/docs/how-tos/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" ```</p>
<p class="toc_element">
<code><a href="#setIamPolicy">setIamPolicy(resource, body=None, x__xgafv=None)</a></code></p>
<p class="firstline">Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors.</p>
Expand Down Expand Up @@ -459,7 +459,7 @@ <h3>Method Details</h3>

<div class="method">
<code class="details" id="queryAccessibleData">queryAccessibleData(consentStore, body=None, x__xgafv=None)</code>
<pre>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. Errors are logged to Cloud Logging (see [Viewing error logs in Cloud Logging](https://cloud.google.com/healthcare/docs/how-tos/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: &quot;type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry&quot; error: { code: 9 message: &quot;failed to evaluate consent policy&quot; } resourceName: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}&quot; } logName: &quot;projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data&quot; operation: { id: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}&quot; producer: &quot;healthcare.googleapis.com/QueryAccessibleData&quot; } receiveTimestamp: &quot;TIMESTAMP&quot; resource: { labels: { consent_store_id: &quot;{consent_store_id}&quot; dataset_id: &quot;{dataset_id}&quot; location: &quot;{location_id}&quot; project_id: &quot;{project_id}&quot; } type: &quot;healthcare_consent_store&quot; } severity: &quot;ERROR&quot; timestamp: &quot;TIMESTAMP&quot; ```
<pre>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](https://cloud.google.com/healthcare/docs/how-tos/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: &quot;type.googleapis.com/google.cloud.healthcare.logging.QueryAccessibleDataLogEntry&quot; error: { code: 9 message: &quot;failed to evaluate consent policy&quot; } resourceName: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/consentStores/{consent_store_id}/consents/{consent_id}&quot; } logName: &quot;projects/{project_id}/logs/healthcare.googleapis.com%2Fquery_accessible_data&quot; operation: { id: &quot;projects/{project_id}/locations/{location_id}/datasets/{dataset_id}/operations/{operation_id}&quot; producer: &quot;healthcare.googleapis.com/QueryAccessibleData&quot; } receiveTimestamp: &quot;TIMESTAMP&quot; resource: { labels: { consent_store_id: &quot;{consent_store_id}&quot; dataset_id: &quot;{dataset_id}&quot; location: &quot;{location_id}&quot; project_id: &quot;{project_id}&quot; } type: &quot;healthcare_consent_store&quot; } severity: &quot;ERROR&quot; timestamp: &quot;TIMESTAMP&quot; ```

Args:
consentStore: string, Required. Name of the consent store to retrieve User data mappings from. (required)
Expand Down
Loading

0 comments on commit 45ee6b2

Please sign in to comment.