release_tracks: [GA, ALPHA, BETA]

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

  examples: |
    To list all clusters in a given location, such as us-central1, run the following:

      $ {command} --location=us-central1

request:
  collection: managedkafka.projects.locations.operations

arguments:
  resource:
    help_text: |
      Identifies the region which contains all the operations to be listed.
    spec: !REF googlecloudsdk.command_lib.managed_kafka.resources:location

output:
  format: |
    table[box](
      name.segment(5):label=NAME,
      metadata.target.split('/').slice(4:).join('/'):label=RESOURCE,
      metadata.verb:label=VERB,
      done,
      metadata.createTime:label=CREATED:sort=1,
      metadata.endTime:label=ENDED
    )
