File: //snap/google-cloud-cli/current/lib/surface/beyondcorp/app/connectors/describe.yaml
- release_tracks: [ALPHA, BETA]
  help_text:
    brief: Describe a single Connector
    description: Describe a single Connector.
    examples: |
      To describe a connector ``my-connector'' run:
      $ {command} my-connector --project={project} --location={location}
      To describe a connector in a project for location us-central1 in table form, run:
        $ {command} --project=projectId \
            --location=us-central1 \
            --format=table(displayName, name, state, principalInfo.serviceAccount.email,createTime,updateTime,labels)
  async:
    collection: beyondcorp.projects.locations.operations
  request:
    collection: beyondcorp.projects.locations.appConnectors
    ALPHA:
      api_version: v1alpha
    BETA:
      api_version: v1
  response:
    modify_response_hooks:
    - googlecloudsdk.command_lib.beyondcorp.app.connectors.hooks:HideDetailsBeforeDescribing
    - googlecloudsdk.command_lib.beyondcorp.app.connectors.hooks:PrintMessageInResponse
  arguments:
    resource:
      arg_name: connector
      spec: !REF googlecloudsdk.command_lib.beyondcorp.app.resources:appconnector
      help_text: The Beyondcorp connector you want to get details about.
    params:
    - arg_name: details
      type: bool
      help_text: |
        Includes details.
  output:
    format: json