ó
    €Ïü	  ã                   óÈ   • 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"                   " S S\R$                  5      5       rg)z<Implementation of buckets remove-iam-policy-binding command.é    )Úabsolute_import)Údivision)Úunicode_literals)Úapi_factory)Úbase)Úiam_util)Úerrors_util)Úiam_command_util)Ústorage_url)Úset_iam_policy_taskc                   ó8   • \ rS rSrSrSSS.r\S 5       rS rSr	g	)
ÚRemoveIamPolicyBindingé   z+Remove an IAM policy binding from a bucket.zù
      Removes a policy binding from the IAM policy of a bucket, given a bucket
      URL and the binding. For more information, see [Cloud
      Identity and Access
      Management](https://cloud.google.com/storage/docs/access-control/iam).
      zô
      To remove an IAM policy binding from the role of
      roles/storage.objectCreator for the user john.doe@example.com on BUCKET:

        $ {command} gs://BUCKET --member=user:john.doe@example.com --role=roles/storage.objectCreator
      )ÚDESCRIPTIONÚEXAMPLESc                 óN   • U R                  SSS9  [        R                  " U SS9  g )NÚurlz0URL of bucket to remove IAM policy binding from.)ÚhelpT)Úadd_condition)Úadd_argumentr   Ú AddArgsForRemoveIamPolicyBinding)Úparsers    Ú8lib/surface/storage/buckets/remove_iam_policy_binding.pyÚArgsÚRemoveIamPolicyBinding.Args3   s,   € à
×ÑØÐFð ñ Hä×-Ò-¨fÀDÓIó    c                 óF  • [         R                  " UR                  5      n[        R                  " UR
                  U5        [        R                  " UR                  5      nUR                  UR                  5      n[        R                  " XU[        R                  5      $ )N)r   Ústorage_url_from_stringr   r	   Úraise_error_if_not_gcs_bucketÚcommand_pathr   Úget_apiÚschemeÚget_bucket_iam_policyÚbucket_namer
   Ú remove_iam_binding_from_resourcer   ÚSetBucketIamPolicyTask)ÚselfÚargsÚ
url_objectÚclientÚpolicys        r   ÚRunÚRemoveIamPolicyBinding.Run9   sy   € Ü×4Ò4°T·X±XÓ>€JÜ×-Ò-¨d×.?Ñ.?ÀÔLÜ× Ò  ×!2Ñ!2Ó3€FØ×)Ñ)¨*×*@Ñ*@ÓA€Fä×<Ò<Ø˜&Ô"5×"LÑ"Lóð r   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Údetailed_helpÚstaticmethodr   r,   Ú__static_attributes__r.   r   r   r   r      s1   † á3ð
ð
ñ€-ð" ñJó ðJõ
r   r   N)r3   Ú
__future__r   r   r   Úgooglecloudsdk.api_lib.storager   Úgooglecloudsdk.callioper   Úgooglecloudsdk.command_lib.iamr   Ú"googlecloudsdk.command_lib.storager	   r
   r   Ú(googlecloudsdk.command_lib.storage.tasksr   ÚUniverseCompatibleÚCommandr   r.   r   r   Ú<module>r?      sN   ðñ Cå &Ý Ý 'å 6Ý (Ý 3Ý :Ý ?Ý :Ý Hð ×Ñô"˜TŸ\™\ó "ó ñ"r   