
    	                     ,   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  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 deleting network policy rules.    )absolute_import)division)unicode_literals)ClassVar)base_classes)client)base)flags)rules_utilsc                   T    \ rS rSr% Sr\\R                     \S'   \	S 5       r
S rSrg)Describe   zgDescribes a Compute Engine network policy rule.

*{command}* is used to describe network policy rules.
NETWORK_POLICY_ARGc                     [         R                  " SSS9U l        U R                  R                  USS9  [         R                  " U5        g )NTdescribe)required	operation)operation_type)r
   NetworkPolicyRuleArgumentr   AddArgumentAddArgsDescribeRule)clsparsers     Mlib/surface/compute/network_policies/traffic_classification_rules/describe.pyArgsDescribe.Args)   sC    "<<C &&vj&I	f%    c                 @   [         R                  " U R                  5       5      nU R                  R	                  XR
                  5      n[        R                  " X2R                  S9nUR                  UR                  [        R                  " UR                  5      S9$ )N)refcompute_client)network_policypriority)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   NetworkPolicyRuleDescribeRuler!   r   ConvertPriorityToIntr"   )selfargsholderr   network_policy_rule_clients        r   RunDescribe.Run1   s    **4+<+<+>?F

!
!
3
3D:J:J
KC!'!9!9" &22**11$--@ 3  r    N)__name__
__module____qualname____firstlineno____doc__r   compute_flagsResourceArgument__annotations__classmethodr   r.   __static_attributes__r0   r   r   r   r      s1    
 }==>>& &
r   r   EXAMPLESz    To describe a rule with priority ``10'' in a network policy
    with name ``my-policy'', in region ``region-a'', run:

      $ {command} --priority=10 --network-policy=my-policy         --network-policy-region=region-a
    N)r5   
__future__r   r   r   typingr   googlecloudsdk.api_lib.computer   /googlecloudsdk.api_lib.compute.network_policiesr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.computer
   r6   3googlecloudsdk.command_lib.compute.network_policiesr   UniverseCompatibleReleaseTracksr$   ALPHADescribeCommandr   detailed_helpr0   r   r   <module>rH      s    1 &  '  7 B ( E E K D%%++,t##  - <   r   