- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List releases.
    description: |
      List the releases for a specified delivery pipeline.
    examples: |
      To list the releases for delivery pipeline 'test-pipeline', in region 'us-central1', run:

        $ {command} --delivery-pipeline=test-pipeline --region=us-central1

  request:
    collection: clouddeploy.projects.locations.deliveryPipelines.releases
    api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: The delivery pipeline for which you want to list the releases.
      spec: !REF googlecloudsdk.command_lib.deploy.resources:delivery_pipeline
      is_positional: false
