Ë
    €ÏÒ	  ã                   ó¤   — 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 ej                   G d	„ d
ej                  «      «       Zy)z>Command to remove an IAM policy binding from an investigation.é    )Úabsolute_import)Údivision)Úunicode_literals)Úargs)Úutil)Úbase)Úiam_utilc                   ó.   — e Zd ZdZddiZed„ «       Zd„ Zy)ÚRemoveIamPolicyBindingz4Removes an IAM policy binding from an investigation.ÚEXAMPLESaD            To remove an IAM policy binding for the role of 'roles/geminicloudassist.investigationUser'
          for the user 'test-user@gmail.com' from the investigation
          'project/my-project/locations/my-location/investigations/my-investigation', run:

            $ {command} project/my-project/locations/my-location/investigations/my-investigation --member='user:test-user@gmail.com' --role='roles/geminicloudassist.investigations.user'

          See https://cloud.google.com/iam/docs/managing-policies for details of
          policy role and member types.
          c                 óZ   — t        j                  | d«       t        j                  | «       y)zTRegisters flags for this command.

    Args:
      parser: The argparse parser.
    z!to remove IAM policy binding fromN)Úgeminicloudassist_argsÚAddInvestigationResourceArgr	   ÚAddArgsForAddIamPolicyBinding)Úparsers    úKlib/surface/gemini/cloud_assist/investigations/remove_iam_policy_binding.pyÚArgszRemoveIamPolicyBinding.Args-   s(   € ô ×6Ñ6ØÐ3ôô ×*Ñ*¨6Õ2ó    c                 ól   — t        j                  |j                  |j                  |j                  «      S )zÜRemoves an IAM policy binding from an investigation.

    Args:
      args: An argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      The updated IAM policy.
    )Úgeminicloudassist_utilÚ#RemoveInvestigationIamPolicyBindingÚinvestigationÚmemberÚrole)Úselfr   s     r   ÚRunzRemoveIamPolicyBinding.Run9   s,   € ô "×EÑEØ×Ñ˜DŸK™K¨¯©óð r   N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Údetailed_helpÚstaticmethodr   r   © r   r   r   r      s/   „ á<ð ð 	ð€-ð ñ	3ó ð	3ór   r   N)r    Ú
__future__r   r   r   Ú*googlecloudsdk.api_lib.gemini_cloud_assistr   r   r   r   Úgooglecloudsdk.callioper   Úgooglecloudsdk.command_lib.iamr	   ÚUniverseCompatibleÚCommandr   r#   r   r   Ú<module>r*      sE   ðñ  Eå &Ý Ý 'å UÝ UÝ (Ý 3ð ×Ñô(˜TŸ\™\ó (ó ñ(r   