- release_tracks: [GA, ALPHA]

  help_text:
    brief: List the revisions of an OS policy assignment
    description: |
      List the revisions of an OS policy assignment
      ## EXAMPLES

      To list the revisions of an OS policy `my-assignment` in location `us-central1-a`:

        $ {command} my-assignment --location=us-central1-a

  command_type: LIST
  request:
    collection: osconfig.projects.locations.osPolicyAssignments
    disable_pagination: true
    method: listRevisions
    ALPHA:
      api_version: v1alpha
    GA:
      api_version: v1

  arguments:
    resource:
      help_text: OS policies assignment data to describe.
      spec: !REF googlecloudsdk.command_lib.compute.os_config.resources:os_policy_assignment

  response:
    id_field: name
    result_attribute: osPolicyAssignments

  output:
    format: |
      table(
         name.basename():label=ASSIGNMENT_ID,
         rollout_state,
         revision_create_time.date("%Y-%m-%dT%H:%M:%SZ"),
         revision_id
       )
