
    J                         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	KJr   " S
 S\	R$                  5      r\R(                  " S5      SSS.\l        g)z8Command for describing a NAT in a Compute Engine router.    )absolute_import)division)unicode_literalsN)base_classes)base)flags)
nats_utilsc                   2    \ rS rSrSrSr\S 5       rS rSr	g)Describe   z*Describe a NAT in a Compute Engine router.Nc                     [         R                  " 5       U l        U R                  R                  U5        [        R
                  " USSS9  [        R                  " USS9  g )NNATdescribe)operation_type)routers_flagsRouterArgumentForNat
ROUTER_ARGAddArgumentcompute_flagsAddRegionFlag
nats_flagsAddNatNameArg)clsparsers     ,lib/surface/compute/routers/nats/describe.pyArgsDescribe.Args#   sF    "779CNNNv&jIVJ?    c                    [         R                  " U R                  5       5      nUR                  nU R                  R                  XR                  5      nUR                  R                  " S0 UR                  5       D6nUR                  UR                  R                  SU4/5      S   n[        R                  " XaR                  5      $ )NGetr    )r   ComputeApiHolderReleaseTrackclientr   ResolveAsResource	resourcesmessagesComputeRoutersGetRequestAsDictMakeRequestsapitools_clientroutersr	   FindNatOrRaisename)selfargsholderr$   
router_refrequestrouters          r   RunDescribe.Run,   s    **4+<+<+>?F]]F2249I9IJJoo66M9J9J9LMG  6#9#9#A#A5#*#, "- ../1F $$VYY77r   r!   )
__name__
__module____qualname____firstlineno____doc__r   classmethodr   r5   __static_attributes__r!   r   r   r   r      s#    2*@ @
8r   r   zO
        *{command}* is used to describe a NAT in a Compute Engine router.
    zi    To describe NAT 'n1' in router 'r1', run:

      $ {command} n1 --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   r	   DescribeCommandr   dedentdetailed_helpr!   r   r   <module>rJ      sa    ? &  '  7 ( E M O F8t## 8: 	  		 r   