- release_tracks: [ALPHA, BETA]
  help_text:
    brief: Create a new Beyondcorp application connector.
    description: Create a new Beyondcorp application connector.
    examples: |
      The following command creates a Connector with ID ``my-connector'' in the default user project:

        $ {command} my-connector \
            --location=us-central1 \
            --member=serviceAccount:connector-sa@projectId.iam.gserviceaccount.com

      The following command creates a Connector with ID ``my-connector'' with explicit project value
      for all required and optional parameters:

        $ {command} my-connector \
            --project=projectId \
            --location=us-central1 \
            --member=serviceAccount:connector-sa@projectId.iam.gserviceaccount.com \
            --labels='foo=bar' \
            --display-name=connector-display-name
            --async

  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:PrintMessageInResponse

  async:
    collection: beyondcorp.projects.locations.operations

  arguments:
    resource:
      arg_name: connector
      spec: !REF googlecloudsdk.command_lib.beyondcorp.app.resources:appconnector
      help_text: The Beyondcorp connector you want to create.

    params:
    - _REF_: googlecloudsdk.command_lib.beyondcorp.app.connectors.flags:service_account_v1alpha
      release_tracks: [ALPHA]
    - _REF_: googlecloudsdk.command_lib.beyondcorp.app.connectors.flags:service_account_v1
      release_tracks: [BETA]
    - _REF_: googlecloudsdk.command_lib.beyondcorp.app.connectors.flags:display_name_v1alpha
      release_tracks: [ALPHA]
    - _REF_: googlecloudsdk.command_lib.beyondcorp.app.connectors.flags:display_name_v1
      release_tracks: [BETA]

    labels:
      ALPHA:
        api_field: googleCloudBeyondcorpAppconnectorsV1alphaAppConnector.labels
      BETA:
        api_field: googleCloudBeyondcorpAppconnectorsV1AppConnector.labels
