- release_tracks: [ALPHA, GA]
  help_text:
    brief: |
      List job runs of a Dataplex datascan resource.
    description: |
      List Jobs runs of a Datascan under a specific project, location and task.

    examples: |
      To list all the Dataplex job runs for a datascan `test-datascan` in location
      `us-central1`, run:

        {command} --location=us-central1 --datascan=test-datascan

  request:
    ALPHA:
      api_version: v1
    collection: dataplex.projects.locations.dataScans.jobs
  arguments:
    resource:
      help_text: |
        Arguments and flags that define the Dataplex Datascan to list the Jobs running the Datascan.
      spec: !REF googlecloudsdk.command_lib.dataplex.resources:datascan

  response:
    id_field: name
  output:
    format: |
      table(
        name.basename():label=JOB_ID,
        state:label=JOB_STATUS,
        startTime:label=START_TIME,
        endTime:label=END_TIME
      )
