- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List Cloud Healthcare API consent stores.
    description: List Cloud Healthcare API consent stores.
    examples: |
      To list the consent stores in 'test-dataset' with a filter 'key1=value1' on labels, run:

        $ {command} --filter="labels.key1=value1" --dataset=test-dataset

  request:
    collection: healthcare.projects.locations.datasets.consentStores
    ALPHA:
      api_version: v1alpha2
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: The dataset to list the consent stores for.
      spec: !REF googlecloudsdk.command_lib.healthcare.resources:dataset

  output:
    format: |
      table(
          name.scope("consentStores"):label=ID,
          labels,
          name.scope("locations").segment(0):label=LOCATION
      )
