Ë
    €ÏÓ  ã                   óÌ   — 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Ze
j                   G d„ de
j                   «      «       Zdddœe_        y
)z4Command for deleting organization firewall policies.é    )Úabsolute_import)Údivision)Úunicode_literals)Úbase_classes)Úclient)Úbase)Úfirewall_policies_utils)ÚflagsNc                   ó*   — e Zd ZdZdZed„ «       Zd„ Zy)ÚDeletezØDelete a Compute Engine organization firewall policy.

  *{command}* is used to delete organization firewall policies. An organization
  firewall policy is a set of rules that controls access to various resources.
  Nc                 óî   — t        j                  dd¬«      | _        | j                  j                  |d¬«       |j	                  dd¬«       |j
                  j                  t         j                  «       y )NTÚdelete)ÚrequiredÚ	operation)Úoperation_typez--organizationzzOrganization in which the organization firewall policy is to be deleted. Must be set if FIREWALL_POLICY is the short name.)Úhelp)r
   ÚFirewallPolicyArgumentÚFIREWALL_POLICY_ARGÚAddArgumentÚadd_argumentÚdisplay_infoÚAddCacheUpdaterÚFirewallPoliciesCompleter)ÚclsÚparsers     ú/lib/surface/compute/firewall_policies/delete.pyÚArgszDelete.Args'   sl   € ä#×:Ñ:Ø ô+€CÔà×Ñ×'Ñ'¨¸xÐ'ÔHØ
×ÑØðLð ô Nð ×Ñ×'Ñ'¬×(GÑ(GÕHó    c           	      óÖ  — t        j                  | j                  «       «      }| j                  j	                  ||j
                  d¬«      }t        j                  ||j                  |j
                  t        j                  | j                  «       «      j                  «       ¬«      }t        j                  ||j                  «       |j                  ¬«      }|j                  |d¬«      S )NF)Úwith_project)ÚrefÚcompute_clientÚ	resourcesÚversion)Úorganization)Úfp_idÚonly_generate_request)r   ÚComputeApiHolderÚReleaseTrackr   ÚResolveAsResourcer#   r   ÚOrgFirewallPolicyÚsixÚ	text_typeÚlowerr	   ÚGetFirewallPolicyIdÚNamer%   r   )ÚselfÚargsÚholderr!   Úorg_firewall_policyr&   s         r   ÚRunz
Delete.Run2   sÁ   € Ü×*Ñ*¨4×+<Ñ+<Ó+>Ó?€FØ
×
"Ñ
"×
4Ñ
4Øˆf×Ñ¨Uð 5ó 4€Cä ×2Ñ2ØØ—}‘}Ø×"Ñ"Ü—‘˜d×/Ñ/Ó1Ó2×8Ñ8Ó:ô	<Ðô
 $×7Ñ7Ø˜SŸX™X›Z°d×6GÑ6GôI€Eà×%Ñ%¨EÈÐ%ÓOÐOr   )Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   Úclassmethodr   r5   © r   r   r   r      s)   „ ñð ÐàñIó ðIóPr   r   zj    To delete an organization firewall policy with ID ``123456789", run:

      $ {command} 123456789
    a      To delete a firewall policy, the user must have the following
    permission: *`compute.firewallPolicies.delete`.

    To find predefined roles that contain those permissions, see the [Compute
    Engine IAM roles](https://cloud.google.com/compute/docs/access/iam).
    )ÚEXAMPLESzIAM PERMISSIONS)r9   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.computer   Ú0googlecloudsdk.api_lib.compute.firewall_policiesr   Úgooglecloudsdk.callioper   Ú4googlecloudsdk.command_lib.compute.firewall_policiesr	   r
   r,   ÚDefaultUniverseOnlyÚDeleteCommandr   Údetailed_helpr;   r   r   Ú<module>rE      sd   ðñ ;å &Ý Ý 'å 7Ý CÝ (Ý XÝ FÛ 
ð ×ÑôPˆT×Ñó Pó ðPðH	ð
ñ€Õ r   