- release_tracks: [BETA, GA]

  help_text:
    brief: |
      List regional endpoints.
    description: |
      Retrieve and display a list of all regional endpoints in the specified project.
    examples: |
      To list all regional endpoints in us-central1, run:

        $ {command}
          --region=us-central1
          [--project=my-project]

  arguments:
    resource:
      spec: !REF googlecloudsdk.command_lib.network_connectivity.resources:region
      help_text: |
        Region of the regional endpoints to display.

  output:
    format: table(
      name.basename(),
      name.segment(3):label=LOCATION,
      network.basename(),
      address,
      targetGoogleApi,
      accessType)

  request: &request
    BETA:
      api_version: v1beta
    GA:
      api_version: v1
    collection: networkconnectivity.projects.locations.regionalEndpoints
