- release_tracks: [ALPHA, BETA]

  help_text:
    brief: List restore plan bindings.
    description: |
      List Restore Plan Bindings for GKE restore plan bindings.

      ## EXAMPLES

      To list all restore plan bindings in project ``my-project'' in location ``us-central1'' under restore channel ``my-restore-channel'', run:

        $ {command} --restore-channel=my-restore-channel --project=my-project --location=us-central1

      To list all restore plan bindings in project ``my-project'' across all locations under all restore channels, run:

        $ {command} --project=my-project


  request:
    collection: gkebackup.projects.locations.restoreChannels.restorePlanBindings
    api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: |
        Name of the restore channel from which to list restore plan bindings (provided via options or through
        properties), e.g.
        `--project=<project> --location=<location> --restore-channel=<restoreChannel>`.
      spec: !REF googlecloudsdk.command_lib.container.backup_restore.resources:restore_channel

  output:
    format: |
      table(
        name.basename():label=NAME,
        name.segment(3):label=LOCATION,
        name.segment(5):label=RESTORE_CHANNEL,
        createTime.date('%Y-%m-%dT%H:%M:%S %Z', tz=LOCAL),
        restorePlan,
        backupPlan
      )
