release_tracks: [GA, ALPHA, BETA]

help_text:
  brief: |
   List all Managed Service for Apache Kafka consumer groups in a given cluster and location.

  description: |
    List all Managed Service for Apache Kafka consumer groups in a given cluster and location.
    To specify the maximum number of consumer groups to list, use the --limit flag.

  examples: |
    To list all consumer groups in a cluster named mycluster located in us-central1,
    run the following:

      $ {command} mycluster
          --location=us-central1

request:
  collection: managedkafka.projects.locations.clusters.consumerGroups

arguments:
  resource:
    is_positional: true
    help_text: Identifies the cluster which contains all the consumer groups to be listed.
    spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:cluster
