feat: Add new gcloud commands, API clients, and third-party libraries across various services.

This commit is contained in:
2026-01-01 20:26:35 +01:00
parent 5e23cbece0
commit a19e592eb7
25221 changed files with 8324611 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The FHIR stores command group for the Cloud Healthcare API CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA,
base.ReleaseTrack.GA)
class FhirStores(base.Group):
"""Manage Cloud Healthcare API FHIR stores."""

View File

@@ -0,0 +1,31 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Add an IAM policy binding to a Cloud Healthcare API FHIR store.
description: |
Adds an IAM policy binding to a Cloud Healthcare API FHIR store.
examples: |
To add an IAM policy binding for the role of 'roles/editor' for the user 'test-user@gmail.com'
on the fhir store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset --member='user:test-user@gmail.com' --role='roles/editor'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to add an IAM policy binding to.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
iam:
enable_condition: true

View File

@@ -0,0 +1,122 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Create a Cloud Healthcare API FHIR store.
description: |
Creates a Cloud Healthcare API FHIR store.
examples: |
To create a FHIR store called 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset --version=r4
To create a fhir store with the Cloud Pub/Sub topic 'test-pubsub-topic', run:
$ {command} test-fhir-store --dataset=test-dataset --version=r4 --pubsub-topic=projects/my-project/topics/test-pubsub-topic
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to create.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: version
release_tracks: [ALPHA, BETA]
api_field: fhirStore.version
choices:
- arg_value: dstu2
enum_value: DSTU2
help_text: |
Draft Standard for Trial Use, [Release 2](https://www.hl7.org/fhir/DSTU2)
- arg_value: stu3
enum_value: STU3
help_text: |
Standard for Trial Use, [Release 3](https://www.hl7.org/fhir/STU3)
- arg_value: r4
enum_value: R4
help_text: |
[Release 4](https://www.hl7.org/fhir/R4)
help_text: |
The FHIR specification version that this FHIR store supports natively. This field is
immutable after store creation. Requests are rejected if they contain FHIR resources of a
different version. An empty value is treated as STU3.
- arg_name: version
release_tracks: [GA]
required: true
api_field: fhirStore.version
choices:
- arg_value: dstu2
enum_value: DSTU2
help_text: |
Draft Standard for Trial Use, [Release 2](https://www.hl7.org/fhir/DSTU2)
- arg_value: stu3
enum_value: STU3
help_text: |
Standard for Trial Use, [Release 3](https://www.hl7.org/fhir/STU3)
- arg_value: r4
enum_value: R4
help_text: |
[Release 4](https://www.hl7.org/fhir/R4)
help_text: |
The FHIR specification version that this FHIR store supports natively. This field is
immutable after store creation. Requests are rejected if they contain FHIR resources of a
different version. An empty value is treated as STU3.
- arg_name: disable-referential-integrity
api_field: fhirStore.disableReferentialIntegrity
action: store_true
default: false
help_text: |
Whether to disable referential integrity in this FHIR store.
Default value is false, meaning that the API will enforce referential
integrity and fail the requests that will result in inconsistent
state in the FHIR store. When this field is set to true, the API
will skip referential integrity check. This field is immutable after
store creation.
- arg_name: disable-resource-versioning
api_field: fhirStore.disableResourceVersioning
action: store_true
default: false
help_text: |
Whether to disable resource versioning for this FHIR store. If set to false, which
is the default behavior, all write operations will cause historical versions to be
recorded automatically. Historical versions can be fetched through the history APIs,
but cannot be updated. This field is immutable after store creation.
- arg_name: enable-update-create
api_field: fhirStore.enableUpdateCreate
action: store_true
default: false
help_text: |
Whether this FHIR store has the [updateCreate]
(https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate)
capability. Determines if the client can use an Update operation to create
a new resource with a client-specified ID. If false, all IDs are
server-assigned through the Create operation and attempts to Update
a non-existent resource will return errors.
- arg_name: pubsub-topic
api_field: fhirStore.notificationConfig.pubsubTopic
help_text: |
Google Cloud Pub/Sub topic to send updates to.
Note, a topic needs to be created before publishing or subscribing to it. For instructions
on creating topics, refer to: https://cloud.google.com/pubsub/docs/admin#create_a_topic
- arg_name: enable-history-modifications
release_tracks: [ALPHA, BETA]
api_field: fhirStore.enableHistoryModifications
action: store_true
default: false
help_text: |
Whether this FHIR store has history modifications enabled.
Enabling history modifications is required to use FHIR history bundles
with the
[executeBundle](https://cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores.fhir/executeBundle)
and
[importHistory](https://cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores/importHistory)
APIs.

View File

@@ -0,0 +1,37 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: |
De-identify data from the source store and write it to the destination store.
description: |
De-identify data from the source store and write it to the destination store.
examples: |
To generate a de-identified version of the FHIR store 'test-fhir-store', run the command below.
$ {command} test-fhir-store --destination-store=projects/{projectId}/locations/us-central1/datasets/{datasetId}/fhirStores/test-deid-fhir-store
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
method: deidentify
arguments:
resource:
help_text: Source Cloud Healthcare API FHIR store to deidentify.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: destination-store
api_field: deidentifyFhirStoreRequest.destinationStore
required: true
help_text: |
The name of the FHIR store to which the redacted data should be written
(e.g., projects/{projectId}/locations/{locationId}/datasets/{datasetId}/fhirStores/{fhirStoreId}).
The destination FHIR store must already exist, or the request will fail.
async:
collection: healthcare.projects.locations.datasets.operations

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Delete a Cloud Healthcare API FHIR store.
description: Delete a Cloud Healthcare API FHIR store.
examples: |
To delete the FHIR store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to delete.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Describe a Cloud Healthcare API FHIR store.
description: Describe a Cloud Healthcare API FHIR store.
examples: |
To describe the FHIR store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to describe.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The FHIR stores command export group for the Cloud Healthcare API CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA,
base.ReleaseTrack.GA)
class FhirStoreExports(base.Group):
"""Manage Cloud Healthcare API FHIR store exports."""

View File

@@ -0,0 +1,120 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Export Cloud Healthcare API FHIR resources to BigQuery.
description: Export Cloud Healthcare API FHIR resources to BigQuery.
examples: |
To export the fhir-store 'test-fhir-store' to the BigQuery dataset 'bqdataset', run:
$ {command} test-fhir-store --bq-dataset=bq://my-project.bqdataset --dataset=test-dataset
To perform the same export, but with the 'ANALYTICS' schema and the recursive structure depth of 3, run:
$ {command} test-fhir-store --bq-dataset=bq://my-project.bqdataset --dataset=test-dataset --schema-type=analytics --recursive-depth=3
request:
collection: healthcare.projects.locations.datasets.fhirStores
method: export
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to export resources from.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: bq-dataset
api_field: exportResourcesRequest.bigqueryDestination.datasetUri
required: true
help_text: |
BigQuery dataset that houses the BigQuery tables.
- arg_name: schema-type
release_tracks: [ALPHA, BETA]
api_field: exportResourcesRequest.bigqueryDestination.schemaConfig.schemaType
required: true
help_text: |
Specifies the output schema type. If unspecified, the default
is `LOSSLESS`.
type: str
choices:
- arg_value: analytics
enum_value: ANALYTICS
help_text: |
Analytics schema defined by the FHIR community.
See https://github.com/rbrush/sql-on-fhir/blob/master/sql-on-fhir.md.
- arg_value: analytics_v2
enum_value: ANALYTICS_V2
help_text: |
Analytics V2, similar to schema defined by the FHIR community,
with added support for extensions with one or more occurrences
and contained resources in stringified JSON.
- arg_value: lossless
enum_value: LOSSLESS
help_text: |
Schema generated from original FHIR data.
- arg_name: schema-type
release_tracks: [GA]
api_field: exportResourcesRequest.bigqueryDestination.schemaConfig.schemaType
required: true
help_text: |
Specifies the output schema type.
type: str
choices:
- arg_value: analytics
enum_value: ANALYTICS
help_text: |
Analytics schema defined by the FHIR community.
See https://github.com/rbrush/sql-on-fhir/blob/master/sql-on-fhir.md.
- arg_value: analytics_v2
enum_value: ANALYTICS_V2
help_text: |
Analytics V2, similar to Analytics schema type, with added support
for extensions with one or more occurrences and contained resources
to be represented in stringified JSON.
- arg_name: recursive-depth
api_field: exportResourcesRequest.bigqueryDestination.schemaConfig.recursiveStructureDepth
help_text: |
The depth for all recursive structures in the output analytics schema. For example,
concept in the CodeSystem resource is a recursive structure; when the depth
is 2, the CodeSystem table will have a column called concept.concept but not
concept.concept.concept. If not specified or set to 0, the server will use the
default value 2.
- arg_name: write-disposition
api_field: exportResourcesRequest.bigqueryDestination.writeDisposition
help_text: |
Determines whether existing tables in the destination dataset are overwritten or appended
to.
type: str
choices:
- arg_value: write-empty
enum_value: WRITE_EMPTY
help_text: |
Only export data if the destination tables are empty.
- arg_value: write-truncate
enum_value: WRITE_TRUNCATE
help_text: |
Erase all existing data in the tables before writing the instances.
- arg_value: write-append
enum_value: WRITE_APPEND
help_text: |
Append data to the existing tables.
- arg_name: resource-type
api_field: exportResourcesRequest._type
help_text: |
String of comma-delimited FHIR resource types. If provided, only resources of the specified
resource type(s) are exported.
- arg_name: since
api_field: exportResourcesRequest._since
help_text: |
If provided, only resources updated after this time are exported. The time uses the format
YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, `2015-02-07T13:28:17.239+02:00` or
`2017-01-01T00:00:00Z`. The time must be specified to the second and include a time zone.
async:
collection: healthcare.projects.locations.datasets.operations

View File

@@ -0,0 +1,50 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Export Cloud Healthcare API FHIR resources to Google Cloud Storage.
description: Export Cloud Healthcare API FHIR resources to Google Cloud Storage.
examples: |
To export the fhir-store 'test-fhir-store' to the existing bucket 'testGcsBucket' in the folder 'someFolder', run:
$ {command} test-fhir-store --gcs-uri=gs://testGcsBucket/someFolder --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
method: export
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to export resources from.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: gcs-uri
api_field: exportResourcesRequest.gcsDestination.uriPrefix
required: true
help_text: |
The Cloud Storage destination location. Specify a path to a Cloud
Storage bucket or folder rather than a concrete object. The exported outputs
are organized by FHIR resource types. The server will create one object per
resource type. Each object contains newline delimited JSON, and each line
is a FHIR resource.
- arg_name: resource-type
api_field: exportResourcesRequest._type
help_text: |
String of comma-delimited FHIR resource types. If provided, only resources of the specified
resource type(s) are exported.
- arg_name: since
api_field: exportResourcesRequest._since
help_text: |
If provided, only resources updated after this time are exported. The time uses the format
YYYY-MM-DDThh:mm:ss.sss+zz:zz. For example, 2015-02-07T13:28:17.239+02:00 or 2017-01-01T00:00:00Z.
The time must be specified to the second and include a time zone.
async:
collection: healthcare.projects.locations.datasets.operations

View File

@@ -0,0 +1,23 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Retrieve the IAM policy for a Cloud Healthcare API FHIR store.
description: Retrieve the IAM policy for a Cloud Healthcare API FHIR store.
examples: |
To print the IAM policy for the fhir store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store whose IAM policy to fetch.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

View File

@@ -0,0 +1,28 @@
# -*- coding: utf-8 -*- #
# Copyright 2019 Google LLC. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""The FHIR stores command import group for the Cloud Healthcare API CLI."""
from __future__ import absolute_import
from __future__ import division
from __future__ import unicode_literals
from googlecloudsdk.calliope import base
@base.ReleaseTracks(base.ReleaseTrack.ALPHA, base.ReleaseTrack.BETA,
base.ReleaseTrack.GA)
class FhirStoreImports(base.Group):
"""Manage Cloud Healthcare API FHIR store imports."""

View File

@@ -0,0 +1,79 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Import FHIR resources from Google Cloud Storage into a Cloud Healthcare API FHIR store.
description: Import FHIR resources from Google Cloud Storage into a Cloud Healthcare API FHIR store.
examples: |
To import the FHIR resources from the existing bucket 'testGcsBucket' in the folder 'someFolder' into the FHIR store 'test-fhir-store', run:
$ {command} test-fhir-store --gcs-uri=gs://testGcsBucket/someFolder/* --dataset=test-dataset
To perform the same import, but importing resources with the content structure of 'RESOURCE', run:
$ {command} test-fhir-store --gcs-uri=gs://testGcsBucket/someFolder/* --dataset=test-dataset --content-structure=RESOURCE
request:
collection: healthcare.projects.locations.datasets.fhirStores
method: import
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store into which the data is imported.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: gcs-uri
api_field: importResourcesRequest.gcsSource.uri
required: true
help_text: |-
Cloud Storage source data locations. Each Cloud Storage object
should be a text file that contains newline-delimited JSON structures conforming
to the FHIR standard. You can use wildcards to import multiple files from one or more
directories.
- Use * to match 0 or more non-separator characters. For example,
gs://BUCKET/DIRECTORY/Example```*```.ndjson matches Example.ndjson and Example22.ndjson in
DIRECTORY.
- Use ** to match 0 or more characters (including separators). Must be used at the
end of a path and with no other wildcards in the path. Can also be used with a filename
extension (such as .ndjson), which imports all files with the filename extension in the
specified directory and its subdirectories. For example, gs://BUCKET/DIRECTORY/**.ndjson
imports all files with the .ndjson filename extension in DIRECTORY and its subdirectories.
- Use ? to match 1 character. For example, gs://BUCKET/DIRECTORY/Example?.ndjson matches
Example1.ndjson but does not match Example.ndjson or Example01.ndjson.
- arg_name: content-structure
api_field: importResourcesRequest.contentStructure
choices:
- arg_value: bundle
enum_value: BUNDLE
help_text: |
Each unit is a bundle, which contains one or more resources.
- arg_value: resource
enum_value: RESOURCE
help_text: |
Each unit is a single resource.
- arg_value: bundle-pretty
enum_value: BUNDLE_PRETTY
help_text: |
The entire file is one JSON bundle. The JSON can span multiple lines.
- arg_value: resource-pretty
enum_value: RESOURCE_PRETTY
help_text: |
The entire file is one JSON resource. The JSON can span multiple lines.
help_text: |
Content structure in the source location. The default is BUNDLE.
- arg_name: error-gcs-uri
# This argument is deprecated in BETA.
release_tracks: [ALPHA]
api_field: importResourcesRequest.gcsErrorDestination.uriPrefix
help_text: |
The Cloud Storage bucket/folder path to write files that contain
error details.
async:
collection: healthcare.projects.locations.datasets.operations

View File

@@ -0,0 +1,37 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: List Cloud Healthcare API FHIR stores.
description: List Cloud Healthcare API FHIR stores.
examples: |
To list the FHIR stores in 'test-dataset', run:
$ {command} --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
response:
id_field: name
arguments:
resource:
help_text: Parent Cloud Healthcare API dataset to list all contained Cloud Healthcare API FHIR stores.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:dataset
output:
format: |
table(
name.scope("fhirStores"):label=ID,
name.scope("locations").segment(0):label=LOCATION,
disableReferentialIntegrity:label=DISABLE_REF_INT,
disableResourceVersioning:label=DISABLE_RES_VER,
enableUpdateCreate:label=UPDATE_CREATE,
notificationConfig.pubsubTopic:label=TOPIC
)

View File

@@ -0,0 +1,24 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Gets the metrics for a Cloud Healthcare API FHIR store.
description: Gets the metrics for a Cloud Healthcare API FHIR store.
examples: |
To get metrics for the FHIR store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset
request:
collection: healthcare.projects.locations.datasets.fhirStores
method: getFHIRStoreMetrics
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to get metrics for.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

View File

@@ -0,0 +1,31 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Remove an IAM policy binding from a Cloud Healthcare API FHIR store.
description: |
Removes an IAM policy binding from a Cloud Healthcare API FHIR store.
examples: |
To remove an IAM policy binding for the role of 'roles/editor' for the user
'test-user@gmail.com' on the fhir store 'test-fhir-store', run:
$ {command} test-fhir-store --dataset=test-dataset --member='user:test-user@gmail.com' --role='roles/editor'
See https://cloud.google.com/iam/docs/managing-policies for details of
policy role and member types.
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store to remove an IAM policy binding from.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
iam:
enable_condition: true

View File

@@ -0,0 +1,27 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Set the IAM policy for a Cloud Healthcare API FHIR store.
description: Set the IAM policy for a Cloud Healthcare API FHIR store.
examples: |
The following command will read am IAM policy defined in a JSON file
'policy.json' and set it for the fhir store 'test-fhir-store':
$ {command} test-fhir-store policy.json --dataset=test-dataset
See https://cloud.google.com/iam/docs/managing-policies for details of the
policy file format and contents.
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: Cloud Healthcare API FHIR store whose IAM policy to set.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store

View File

@@ -0,0 +1,56 @@
- release_tracks: [ALPHA, BETA, GA]
help_text:
brief: Update a Cloud Healthcare API FHIR store.
description: Update a Cloud Healthcare API FHIR store.
examples: |
To update the Cloud Pub/Sub topic on a FHIR store 'test-fhir-store', run:
$ {command} test-fhir-store --pubsub-topic=projects/my-project/topics/test-pubsub-topic
request:
collection: healthcare.projects.locations.datasets.fhirStores
ALPHA:
api_version: v1alpha2
BETA:
api_version: v1beta1
GA:
api_version: v1
arguments:
resource:
help_text: The Cloud Healthcare API FHIR store you want to update.
spec: !REF googlecloudsdk.command_lib.healthcare.resources:fhir_store
params:
- arg_name: enable-update-create
api_field: fhirStore.enableUpdateCreate
action: store_true
default: false
help_text: |
Whether this FHIR store has the [updateCreate]
(https://www.hl7.org/fhir/capabilitystatement-definitions.html#CapabilityStatement.rest.resource.updateCreate)
capability. Determines if the client can use an Update operation to create
a new resource with a client-specified ID. If false, all IDs are
server-assigned through the Create operation and attempts to Update
a non-existent resource will return errors.
- arg_name: pubsub-topic
api_field: fhirStore.notificationConfig.pubsubTopic
help_text: |
Google Cloud Pub/Sub topic to send updates to.
Note, a topic needs to be created before publishing or subscribing to it. For instructions
on creating topics, refer to: https://cloud.google.com/pubsub/docs/admin#create_a_topic
- arg_name: enable-history-modifications
release_tracks: [ALPHA, BETA]
api_field: fhirStore.enableHistoryModifications
action: store_true
default: false
help_text: |
Whether this FHIR store has history modifications enabled.
Enabling history modifications is required to use FHIR history bundles
with the
[executeBundle](https://cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores.fhir/executeBundle)
and
[importHistory](https://cloud.google.com/healthcare-api/docs/reference/rest/v1beta1/projects.locations.datasets.fhirStores/importHistory)
APIs.