
                         >   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
 ddlmZ dd	lmZ dd	lmZ ej"                  ej$                   ej&                  ej(                  j*                         G d
 dej,                                             Zddie_        y)z(Command for describing network policies.    )absolute_import)division)unicode_literals)ClassVar)base_classes)client)base)flagsc                   L    e Zd ZU dZeej                     ed<   ed        Z	d Z
y)DescribezDescribe 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                 v    t        j                  dd      | _        | j                  j                  |d       y )NTdescribe)required	operation)operation_type)r
   NetworkPolicyArgumentr   AddArgument)clsparsers     0lib/surface/compute/network_policies/describe.pyArgszDescribe.Args*   s5    "88C &&vj&I    c                     t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  ||j                        }|j                  d      S )N)compute_clientF)only_generate_request)	r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   NetworkPolicyr   )selfargsholderrefnetwork_policys        r   RunzDescribe.Run1   sc    **4+<+<+>?F

!
!
3
3D&:J:J
KC))#fmmLN"""??r   N)__name__
__module____qualname____doc__r   compute_flagsResourceArgument__annotations__classmethodr   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)r+   
__future__r   r   r   typingr   googlecloudsdk.api_lib.computer   /googlecloudsdk.api_lib.compute.network_policiesr   googlecloudsdk.callioper	   "googlecloudsdk.command_lib.computer
   r,   3googlecloudsdk.command_lib.compute.network_policiesHiddenUniverseCompatibleReleaseTracksr   ALPHADescribeCommandr   detailed_helpr0   r   r   <module>r?      s    / &  '  7 B ( E E D%%++,@t## @ -  @4   r   