- release_tracks: [GA, BETA, ALPHA]

  help_text:
    brief: |
      List workstation configurations.
    description: |
      List all workstation configurations under the specified cluster.
    examples: |
      To list workstation configurations, run:

        $ {command}

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.workstations.resources:cluster_with_global_fallthrough
      help_text: |
        The cluster of the configurations to display.

  request:
    GA:
      api_version: v1
    BETA:
      api_version: v1beta
    ALPHA:
      api_version: v1beta
    collection: workstations.projects.locations.workstationClusters.workstationConfigs

  output:
    format: |
      table(
        name.basename():sort=1,
        name.scope(workstationClusters).segment(0):label='CLUSTER',
        name.scope(locations).segment(0):label='REGION',
        createTime.date(),
        host.gceInstance.machine_type:label='MACHINE TYPE',
        container.image:label='IMAGE'
      )
