- release_tracks: [ALPHA, BETA, GA]

  help_text:
    brief: List policy-based routes.
    description: Retrieve and display a list of all policy-based routes in the specified project.
    examples: |
      To display details about a policy-based route named ``my-pbr'', run:

        $ {command} my-pbr

  request: &request
    ALPHA:
      api_version: v1beta
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: networkconnectivity.projects.locations.global.policyBasedRoutes
    modify_request_hooks:
    - googlecloudsdk.command_lib.network_connectivity.util:AppendLocationsGlobalToParent

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:project
      help_text: Project of the policy-based routes to display.

  output:
    format: table(name.basename(), description)
