- release_tracks: [BETA]
  help_text:
    brief: Create a new BeyondCorp client connector service (Deprecated).
    description: Create a new BeyondCorp client connector service.
    examples: |
      The following command creates a client connector service with ID ``my-service-resource'' using ingress/egress config provided:

        $ {command} my-service-resource --location=us-central1 --project=consumer-project-id \
        --ingress-config='{"transportProtocol":"TCP", "destinationRoutes":[{"address":"196.0.0.1", "netmask":"255.255.255.0"}]}' \
        --egress-peered-vpc='{"networkVpc":"projects/consumer-project-id/global/networks/my-vpc-network"}'

      The following command creates a client connector service with ID ``my-service-resource'' with configuration from file:

        $ {command} my-service-resource \
        --project=consumer-project-id --location=us-central1 \
        --config-from-file=/path/to/file/configJson.txt

  request:
    collection: beyondcorp.projects.locations.clientConnectorServices
    modify_request_hooks:
    - googlecloudsdk.command_lib.beyondcorp.client_connector.services.hooks:ParseConfig
    BETA:
      api_version: v1

  async:
    collection: beyondcorp.projects.locations.operations

  arguments:
    resource:
      help_text: The BeyondCorp client connector service you want to create.
      spec: !REF googlecloudsdk.command_lib.beyondcorp.client_connector.resources:client_connector_service
    params:
    - group:
        help_text: Client connector service configuration.
        required: true
        mutex: true
        params:
        - _REF_: googlecloudsdk.command_lib.beyondcorp.client_connector.services.flags:config_from_file
        - group:
            params:
            - _REF_: googlecloudsdk.command_lib.beyondcorp.client_connector.services.flags:ingress_config
              required: true
            - _REF_: googlecloudsdk.command_lib.beyondcorp.client_connector.services.flags:egress_peered_vpc
              required: true
            - _REF_: googlecloudsdk.command_lib.beyondcorp.client_connector.services.flags:display_name
