- release_tracks: [ALPHA, GA]

  help_text:
    brief: List Edge Container nodePools.
    description: |
      List Edge Container nodePools.
    examples: |
      To list the nodePools in region us-central1, run:

        $ {command} --location=us-central1 --cluster=<my-cluster>

  request:
    collection: edgecontainer.projects.locations.clusters.nodePools
    ALPHA:
      api_version: v1alpha
    GA:
      api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: Parent Edge Container location to list all contained Edge Container nodePools.
      spec: !REF googlecloudsdk.command_lib.edge_cloud.container.resources:cluster_with_default

  output:
    format: |
      table(
        name.basename():label=NAME,
        name.scope(clusters).segment(0):label=CLUSTER,
        nodeCount:label=NODE_COUNT,
        nodeLocation:label=NODE_LOCATION,
        nodeVersion:label=NODE_VERSION,
        labels:label=LABELS,
        createTime.date():label=CREATED
      )
