- release_tracks: [BETA, GA]

  help_text:
    brief: List Datastream locations.
    description: |
      List Datastream locations.
    examples: |
      To list the locations, run:

        $ {command}

  request:
    collection: datastream.projects.locations
    api_version: v1

  response:
    id_field: name

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

  output:
    format: |
      table(
        name.basename():label=NAME,
        displayName:label=DISPLAYNAME,
        labels:label=LABELS,
        locationId:label=LOCATIONID,
        metadata:label=METADATA
      )
