
                             S 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KJr  SS	KJr  SS	KJr  \R"                  \R$                  " \R&                  R(                  5       " S
 S\R*                  5      5       5       rSS0\l        g)z(Command for describing network policies.    )absolute_import)division)unicode_literals)ClassVar)base_classes)client)base)flagsc                   T    \ rS rSr% Sr\\R                     \S'   \	S 5       r
S rSrg)Describe   zDescribe a Compute Engine network policy.

*{command}* is used to describe network policies. A network
policy is a set of rules that classifies network traffic.
NETWORK_POLICY_ARGc                 l    [         R                  " SSS9U l        U R                  R                  USS9  g )NTdescribe)required	operation)operation_type)r
   NetworkPolicyArgumentr   AddArgument)clsparsers     0lib/surface/compute/network_policies/describe.pyArgsDescribe.Args)   s5    "88C &&vj&I    c                     [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  " X2R                  S9nUR                  SS9$ )N)compute_clientF)only_generate_request)	r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   NetworkPolicyr   )selfargsholderrefnetwork_policys        r   RunDescribe.Run0   s_    **4+<+<+>?F

!
!
3
3D:J:J
KC))#mmLN"""??r    N)__name__
__module____qualname____firstlineno____doc__r   compute_flagsResourceArgument__annotations__classmethodr   r)   __static_attributes__r+   r   r   r   r      s4     }==>>J J@r   r   EXAMPLESz    To describe a network policy with name ``my-policy'',
    in region ``my-region'', run:

      $ {command} my-policy --region=my-region
    N)r0   
__future__r   r   r   typingr   googlecloudsdk.api_lib.computer   /googlecloudsdk.api_lib.compute.network_policiesr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.computer
   r1   3googlecloudsdk.command_lib.compute.network_policiesUniverseCompatibleReleaseTracksr    ALPHADescribeCommandr   detailed_helpr+   r   r   <module>rC      s    / &  '  7 B ( E E D%%++,@t## @ - @4   r   