in healthcare/api-client/v1/fhir/fhir_stores.py [0:0]
def run_command(args):
"""Calls the program using the specified command."""
if args.project_id is None:
print(
"You must specify a project ID or set the "
'"GOOGLE_CLOUD_PROJECT" environment variable.'
)
return
elif args.command == "create-fhir-store":
create_fhir_store(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
)
elif args.command == "delete-fhir-store":
delete_fhir_store(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
)
elif args.command == "get-fhir-store":
get_fhir_store(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
)
elif args.command == "get-fhir-store-metadata":
get_fhir_store_metadata(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
)
elif args.command == "list-fhir-stores":
list_fhir_stores(
args.project_id,
args.location,
args.dataset_id,
)
elif args.command == "patch-fhir-store":
patch_fhir_store(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
args.pubsub_topic,
)
elif args.command == "export-fhir-store-gcs":
export_fhir_store_gcs(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
args.gcs_uri,
)
elif args.command == "import-fhir-resources":
import_fhir_resources(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
args.gcs_uri,
)
elif args.command == "get_iam_policy":
get_fhir_store_iam_policy(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
)
elif args.command == "set_iam_policy":
set_fhir_store_iam_policy(
args.project_id,
args.location,
args.dataset_id,
args.fhir_store_id,
args.member,
args.role,
)