- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief:  Create a Cloud Healthcare API dataset.
    description: |
      Create a new Cloud Healthcare API dataset
    examples: |
      To create a dataset called 'test-dataset' in us-central1, run:

        $ {command} test-dataset

      To create a dataset in a different region (ex: asia-northeast1), run:

        $ {command} test-dataset --location=asia-northeast1
  request:
    collection: healthcare.projects.locations.datasets
    ALPHA:
      api_version: v1alpha2
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: Cloud Healthcare API dataset to create.
      spec: !REF googlecloudsdk.command_lib.healthcare.resources:dataset

    params:
    - arg_name: time-zone
      api_field: dataset.timeZone
      help_text: |
        Default timezone used by this dataset.

    - arg_name: encryption-key
      api_field: dataset.encryptionSpec.kmsKeyName
      help_text: |
        KMS encryption key that is used to secure this dataset and its sub-resources.
        The key used for encryption and the dataset must be in the same location.
        If empty, the default Google encryption key will be used to secure this dataset.
        The format is projects/{projectId}/locations/{locationId}/keyRings/{keyRingId}/cryptoKeys/{keyId}.

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