- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief:  Import HL7v2 messages from Google Cloud Storage into a Cloud Healthcare API HL7v2 store.
    description: Import HL7v2 messages from Google Cloud Storage into a Cloud Healthcare API HL7v2 store.
    examples: |
      To import the HL7v2 messages from the existing bucket 'testGcsBucket' in the folder 'someFolder' into the HL7v2 store 'test-hl7v2-store', run:

        $ {command} test-hl7v2-store --gcs-uri=gs://testGcsBucket/someFolder --dataset=test-dataset

  request:
    collection: healthcare.projects.locations.datasets.hl7V2Stores
    method: import
    ALPHA:
      api_version: v1alpha2
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: Cloud Healthcare API HL7v2 store into which the data is imported.
      spec: !REF googlecloudsdk.command_lib.healthcare.resources:hl7v2_store

    params:
    - arg_name: gcs-uri
      api_field: importMessagesRequest.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 objects. Each JSON
        object has a data field that contains a base64-encoded HL7v2 message.

  async:
    collection: healthcare.projects.locations.datasets.operations
