- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: |
      List Dataproc Metastore locations.
    description: |
      List all Metastore locations.
    examples: |
      To list all the locations where you can create Dataproc Metastore
      services, run:

        $ {command}

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.metastore.resources:project
      help_text: |
        The parent project of the locations you want to list.

  request:
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: metastore.projects.locations

  response:
    id_field: name

  output:
    format: |
     table(
        name.basename():label=LOCATION_NAME,
        name.segment(1):label=PROJECT
      )
