- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: List all operations.
    description: List all Backup and DR operations.
    examples: |
      To list all operations in a location ``my-location'', run:

      $ {command} --location=my-location

      To list all operations in all locations, run:

      $ {command} --location=-

  request:
    collection: backupdr.projects.locations.operations

  arguments:
    resource:
      help_text: Location for which operations should be listed.
      spec: !REF googlecloudsdk.command_lib.backupdr.resources:location

  response:
    id_field: name

  output:
    format: |
      table(
        name.scope("operations"):label=ID,
            name.scope("locations").segment(0):label=LOCATION,
            metadata.target:label=TARGET,
            metadata.verb:label=TYPE,
            done:label=DONE
      )
