- release_tracks: [ALPHA, BETA]

  help_text:
    brief: |
      List Beyondcorp Appconnector operations.
    description: |
      List all Beyondcorp Appconnector operations in the specified project.

      You can specify the maximum number of operations to list using the
      `--limit` flag.
    examples: |
      The following command lists a maximum of five operations:

          $ {command} --location=us-central1 --limit=5

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.beyondcorp.app.resources:location
      help_text: |
        Region of the operations to display.

  request:
    collection: beyondcorp.projects.locations.operations
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1

  output:
    format: |
       table(
          name.basename():label=OPERATION_NAME,
          metadata.verb:label=TYPE,
          metadata.target.basename(),
          done,
          metadata.createTime.date():sort=1,
          duration(start=metadata.createTime,end=metadata.endTime,precision=0,calendar=false).slice(2:).join("").yesno(no="<1S"):label=DURATION
        )
