- release_tracks: [BETA, GA]
  BETA:
    deprecate:
      is_removed: false
      warning: |
        This command has been deprecated.
        Use `gcloud datastream private_connections list` instead.

  help_text:
    brief: List private connections.
    description: List private connections.
    examples: |
      To list all private connections in a project and location 'us-central1', run:

        $ {command} --location=us-central1

  request:
    collection: datastream.projects.locations.privateConnections
    api_version: v1

  response:
    id_field: name

  arguments:
    resource:
      help_text: The location you want to list the private connections for.
      spec: !REF googlecloudsdk.command_lib.datastream.resources:location

  output:
    format: |
      table(
        displayName,
        createTime.date():label=CREATED,
        state
      )
