
    	                         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  G d
 dej                        Zddie_        y)z1Command for describing network firewall policies.    )absolute_import)division)unicode_literals)base_classes)client)region_client)base)flagsc                   *    e Zd ZdZdZed        Zd Zy)DescribezDescribe a Compute Engine network firewall policy.

  *{command}* is used to describe network firewall policies. A
  network firewall policy is a set of rules that controls access to various
  resources.
  Nc                 v    t        j                  dd      | _        | j                  j                  |d       y )NTget)required	operation)operation_type)r
   NetworkFirewallPolicyArgumentNETWORK_FIREWALL_POLICY_ARGAddArgument)clsparsers     9lib/surface/compute/network_firewall_policies/describe.pyArgszDescribe.Args&   s3    &+&I&I'(C###//u/M    c                 T   t        j                  | j                               }| j                  j	                  ||j
                        }t        j                  ||j                        }t        |d      r!t        j                  ||j                        }|j                  d      S )N)compute_clientregionF)only_generate_request)r   ComputeApiHolderReleaseTrackr   ResolveAsResource	resourcesr   NetworkFirewallPolicyhasattrr   RegionNetworkFirewallPolicyr   )selfargsholderrefnetwork_firewall_policys        r   RunzDescribe.Run,   s    **4+<+<+>?F

*
*
<
<f C %::FMM+sH - I I
fmm!- #++%+HHr   )__name__
__module____qualname____doc__r   classmethodr   r*    r   r   r   r      s)     !%N N
Ir   r   EXAMPLESa      To describe a global network firewall policy with name ``my-policy'', run:

      $ {command} my-policy --global

    To describe a regional network firewall policy with name ``my-policy'',
    in region ``my-region'', run:

      $ {command} my-policy --region=my-region
    N)r.   
__future__r   r   r   googlecloudsdk.api_lib.computer   8googlecloudsdk.api_lib.compute.network_firewall_policiesr   r   googlecloudsdk.callioper	   <googlecloudsdk.command_lib.compute.network_firewall_policiesr
   DescribeCommandr   detailed_helpr0   r   r   <module>r9      sJ    8 &  ' 7 K R ( NIt## I> 		 r   