Ë
    €Ïü	  ã                   óÈ   — 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 ddlmZ ej"                   G d„ dej$                  «      «       Zy)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                   ó0   — e Zd ZdZdddœZed„ «       Zd„ Zy)ÚRemoveIamPolicyBindingz+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                 óX   — | j                  dd¬«       t        j                  | d¬«       y )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ÚArgszRemoveIamPolicyBinding.Args3   s,   € à
×ÑØÐFð ô Hä×-Ñ-¨fÀDÖIó    c                 ó@  — t        j                  |j                  «      }t        j                  |j
                  |«       t        j                  |j                  «      }|j                  |j                  «      }t        j                  |||t        j                  «      S )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   ÚRunzRemoveIamPolicyBinding.Run9   s{   € Ü×4Ñ4°T·X±XÓ>€JÜ×-Ñ-¨d×.?Ñ.?ÀÔLÜ× Ñ  ×!2Ñ!2Ó3€FØ×)Ñ)¨*×*@Ñ*@ÓA€Fä×<Ñ<Øˆj˜&Ô"5×"LÑ"Lóð r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údetailed_helpÚstaticmethodr   r*   © r   r   r   r      s1   „ á3ð
ð
ñ€-ð" ñJó ðJó
r   r   N)r.   Ú
__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   r1   r   r   Ú<module>r:      sN   ðñ Cå &Ý Ý 'å 6Ý (Ý 3Ý :Ý ?Ý :Ý Hð ×Ñô"˜TŸ\™\ó "ó ñ"r   