- release_tracks: [ALPHA, BETA, GA]
  help_text:
    brief: List all `WasmPluginVersion` resources for a `WasmPlugin`.
    description: |
      List `WasmPluginVersion` resources.
    examples: |
      To list existing `WasmPluginVersion` resources, run:

        $ {command} --wasm-plugin=WASM_PLUGIN

  request:
    collection: networkservices.projects.locations.wasmPlugins.versions
    ALPHA:
      api_version: v1alpha1
    BETA:
      api_version: v1beta1
    GA:
      api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: The parent `WasmPlugin`.
      spec: !REF googlecloudsdk.command_lib.service_extensions.resources:wasmPlugin
      is_positional: false

  output:
    format: |
      table(
        name.basename():label=NAME,
        image_uri:label=WASM_IMAGE,
        image_digest.trailoff(15):label=WASM_IMAGE_DIGEST,
        plugin_config_data.len().size(zero="-"):label=CONFIG_SIZE,
        plugin_config_uri:label=CONFIG_IMAGE,
        plugin_config_digest.yesno(no='').trailoff(15):label=CONFIG_IMAGE_DIGEST,
        updateTime.date():label=UPDATE_TIME:sort=1
      )
