ó
    €ÏÒ	  ã                   ó¤   • 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  \R                   " S	 S
\R                  5      5       rg)z>Command to remove an IAM policy binding from an investigation.é    )Úabsolute_import)Údivision)Úunicode_literals)Úargs)Úutil)Úbase)Úiam_utilc                   ó6   • \ rS rSrSrSS0r\S 5       rS rSr	g)	ÚRemoveIamPolicyBindingé   z4Removes 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                 ó^   • [         R                  " U S5        [        R                  " U 5        g)zHRegisters 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ÚArgsÚRemoveIamPolicyBinding.Args-   s(   € ô ×6Ò6ØÐ3ôô ×*Ò*¨6Õ2ó    c                 ón   • [         R                  " UR                  UR                  UR                  5      $ )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   ÚRunÚRemoveIamPolicyBinding.Run9   s,   € ô "×EÒEØ×Ñ˜DŸK™K¨¯©óð r   © N)
Ú__name__Ú
__module__Ú__qualname__Ú__firstlineno__Ú__doc__Údetailed_helpÚstaticmethodr   r   Ú__static_attributes__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   