- release_tracks: [ALPHA, GA]
  help_text:
    brief: List operations.
    description: List operations.
    examples: |
      To list all operations in a project and region 'us-central1', run:

        $ {command} --region=us-central1

  request:
    collection: datamigration.projects.locations.operations
    GA:
      api_version: v1
    ALPHA:
      api_version: v1alpha2

  response:
    id_field: name

  arguments:
    resource:
      help_text: The location you want to list the operations for.
      spec: !REF googlecloudsdk.command_lib.database_migration.resources:region

  output:
    format: |
      table(
          name.scope("operations"):label=ID,
          metadata.target.scope("locations"):label=TARGET,
          metadata.verb:label=ACTION,
          done:label=DONE,
          error.code:label=ERROR_CODE
      )
