
    
                         S r SSKJr  SSKJr  SSKJr  SSKrSSKJr  SSKJ	r	  SSK
Jr  SSKJr  SSKJr   " S	 S
\	R"                  5      r\R&                  " S5      SSS.\l        g)z0Command to list NATs on a Compute Engine router.    )absolute_import)division)unicode_literalsN)base_classes)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)List   z*Lists the NATs on a Compute Engine router.c                     [         R                  " 5       U l        U R                  R                  U5        UR                  R                  [        R                  5        [        R                  " USSS9  g )NNATslist)operation_type)
routers_flagsRouterArgumentForNat
ROUTER_ARGAddArgumentdisplay_info	AddFormat
nats_flagsDEFAULT_LIST_FORMATcompute_flagsAddRegionFlag)clsparsers     (lib/surface/compute/routers/nats/list.pyArgs	List.Args    sP    "779CNNNv&
!!*"@"@AvF    c                 z   [         R                  " U R                  5       5      nUR                  R                  nUR                  R
                  R                  nU R                  R                  XR                  5      nUR                  nUR                  U" S0 UR                  5       D65      nUR                  $ )N )r   ComputeApiHolderReleaseTrackclientmessagesapitools_clientroutersr   ResolveAsResource	resourcesComputeRoutersGetRequestGetAsDictnats)selfargsholderr%   service
router_refrequest_typerouters           r   RunList.Run(   s    **4+<+<+>?F}}%%Hmm++33G2249I9IJJ44L[[<
(9(9(;<=F;;r   r!   N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r5   __static_attributes__r!   r   r   r
   r
      s    2G G
r   r
   zN        *{command}* is used to list the NATs on a Compute Engine router.
     z    To list all NATs in router ``r1'' in region ``us-central1'', run:

        $ {command} --router=r1 --region=us-central1.
    a      This command, when specified without alpha or beta, uses the compute/v1/routers API. The full documentation
    for this API can be found at: https://cloud.google.com/compute/docs/reference/rest/v1/routers/

    The beta command uses the compute/beta/routers API. The full documentation
    for this API can be found at: https://cloud.google.com/compute/docs/reference/rest/beta/routers/

    The alpha command uses the compute/alpha/routers API. Full documentation is not available for the alpha API.
    )DESCRIPTIONEXAMPLESzAPI REFERENCE)r;   
__future__r   r   r   textwrapgooglecloudsdk.api_lib.computer   googlecloudsdk.callioper   "googlecloudsdk.command_lib.computer   r   *googlecloudsdk.command_lib.compute.routersr   /googlecloudsdk.command_lib.compute.routers.natsr   DescribeCommandr
   dedentdetailed_helpr!   r   r   <module>rJ      s^    7 &  '  7 ( E M O4 4 	 	 	
 r   