ó
    €Ï…  ã                   óÌ   • 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r\
R                   " S S\
R                   5      5       rSSS.\l        g
)z4Command for updating organization firewall policies.é    )Úabsolute_import)Údivision)Úunicode_literals)Úbase_classes)Úclient)Úbase)Úfirewall_policies_utils)ÚflagsNc                   ó2   • \ rS rSrSrSr\S 5       rS rSr	g)ÚUpdateé   zÒUpdate a Compute Engine organization firewall policy.

*{command}* is used to update organization firewall policies. An organization
firewall policy is a set of rules that controls access to various resources.
Nc                 ó˜   • [         R                  " SSS9U l        U R                  R                  USS9  [         R                  " U5        g )NTÚupdate)ÚrequiredÚ	operation)Úoperation_type)r
   ÚFirewallPolicyArgumentÚFIREWALL_POLICY_ARGÚAddArgumentÚAddArgsUpdateFirewallPolicy)ÚclsÚparsers     Ú/lib/surface/compute/firewall_policies/update.pyÚArgsÚUpdate.Args'   sA   € ä#×:Ò:Ø ñ+€CÔà×Ñ×'Ñ'¨¸xÐ'ÑHÜ	×%Ò% fÕ-ó    c           	      óZ  • [         R                  " U R                  5       5      nU R                  R	                  XR
                  SS9n[        R                  " UUR                  UR
                  [        R                  " U R                  5       5      R                  5       S9n[        R                  " XCR                  5       UR                  S9nUR                  USS9S   nUR                  R                   R#                  UR$                  UR&                  S9nUR)                  USUS9$ )	NF)Úwith_project)ÚrefÚcompute_clientÚ	resourcesÚversion)Úorganization)Úfp_idÚonly_generate_requestr   )ÚdescriptionÚfingerprint)r$   r%   Úfirewall_policy)r   ÚComputeApiHolderÚReleaseTrackr   ÚResolveAsResourcer!   r   ÚOrgFirewallPolicyÚsixÚ	text_typeÚlowerr	   ÚGetFirewallPolicyIdÚNamer#   ÚDescribeÚmessagesÚFirewallPolicyr&   r'   r   )ÚselfÚargsÚholderr   Úorg_firewall_policyr$   Úexisting_firewall_policyr(   s           r   ÚRunÚ
Update.Run.   s  € Ü×*Ò*¨4×+<Ñ+<Ó+>Ó?€FØ
×
"Ñ
"×
4Ñ
4Ø×Ñ¨Uð 5ð 4€Cä ×2Ò2ØØ—}‘}Ø×"Ñ"Ü—’˜d×/Ñ/Ó1Ó2×8Ñ8Ó:ñ	<Ðô
 $×7Ò7ØŸX™X›Z°d×6GÑ6GñI€Eà2×;Ñ;Ø¨5ð  <ð  2Ø23ñ 5Ðà—m‘m×,Ñ,×;Ñ;Ø×$Ñ$Ø,×8Ñ8ð <ð :€Oð ×%Ñ%ØØ#Ø'ð &ð )ð )r   © )
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__r   Úclassmethodr   r:   Ú__static_attributes__r<   r   r   r   r      s&   † ñð Ðàñ.ó ð.õ)r   r   z¾    To update an organization firewall policy with ID ``123456789" to change the
    description to ``New description", run:

      $ {command} 123456789 --description='New description'
    a      To update a firewall policy, the user must have the following
    permission: *`compute.firewallPolicies.update`.

    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)rA   Ú
__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ÚUpdateCommandr   Údetailed_helpr<   r   r   Ú<module>rM      sa   ðñ ;å &Ý Ý 'å 7Ý CÝ (Ý XÝ FÛ 
ð ×Ñô$)ˆT×Ñó $)ó ð$)ðR	ðñ€Õ r   