
                         >   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddl	m
Z  ej                  ej                  j                  ej                  j                  ej                  j                         ej"                   G d d	ej$                                      Zy
)z=Implements a command to forward TCP traffic to a workstation.    )absolute_import)division)unicode_literals)workstations)base)flagsc                   &    e Zd ZdZed        Zd Zy)StartTcpTunnela  Start a tunnel through which a local process can forward TCP traffic to the workstation.

  Start a tunnel through which a local process can forward TCP traffic to the
  workstation.

  Note that arguments for the `NO_PROXY` environment variable must be FQDNs.

  ## EXAMPLES

    To start a tunnel to port 22 on a workstation, run:

    $ {command} --project=my-project --region=us-central1 --cluster=my-cluster
    --config=my-config my-workstation 22
  c                     t        j                  |        t        j                  |        t        j                  |        y N)workstations_flagsAddWorkstationResourceArgAddWorkstationPortFieldAddLocalHostPortField)parsers    ,lib/surface/workstations/start_tcp_tunnel.pyArgszStartTcpTunnel.Args.   s,    008..v6,,V4    c                 l    t        j                  | j                               }|j                  |       y r   )r   WorkstationsReleaseTrackr
   )selfargsclients      r   RunzStartTcpTunnel.Run4   s)    &&t'8'8':;F
$r   N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r
   r
      s     
 5 5
 r   r
   N)r   
__future__r   r   r   #googlecloudsdk.api_lib.workstationsr   googlecloudsdk.callioper   'googlecloudsdk.command_lib.workstationsr   r   ReleaseTracksr   GABETAALPHADefaultUniverseOnlyCommandr
   r!   r   r   <module>r,      s    D &  ' < ( O $++00$2C2C2I2I  T\\    r   