
                         V   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  \R                  " \R                  R                   \R                  R"                  \R                  R$                  5      \R&                   " S
 S\R(                  5      5       5       rg)z.Command to add IAM policy binding for a model.    )absolute_import)division)unicode_literals)gateways)base)common_flags)resource_args)iam_utilc                   6    \ rS rSrSrSS0r\S 5       rS rSr	g)	RemoveIamPolicyBinding   z)Remove IAM policy binding from a gateway.EXAMPLESaD            To remove an IAM policy binding for the role of 'roles/editor' for the
          user 'test-user@gmail.com' on Gateway 'my-gateway' in us-central1, run:

            $ {command} my-gateway --location='us-central1'
                --member='user:test-user@gmail.com'
                --role='roles/editor'
          c                 z    [         R                  " U SSS9  [        R                  " U [        R
                  5        g )Nz#IAM policy binding will be added toT)
positional)r	   AddGatewayResourceArgr
    AddArgsForRemoveIamPolicyBindingr   GatewayIamRolesCompleter)parsers    =lib/surface/api_gateway/gateways/remove_iam_policy_binding.pyArgsRemoveIamPolicyBinding.Args.   s4    ''(M379 ----/    c                     UR                   R                  R                  5       n[        R                  " 5       R                  X!R                  UR                  5      $ )N)CONCEPTSgatewayParser   GatewayClientr   memberrole)selfargsgateway_refs      r   RunRemoveIamPolicyBinding.Run7   sC    --''--/K!!#::[[$))- -r    N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr   r#   __static_attributes__r%   r   r   r   r      s1     2 
- / /-r   r   N)r*   
__future__r   r   r   "googlecloudsdk.api_lib.api_gatewayr   googlecloudsdk.callioper   &googlecloudsdk.command_lib.api_gatewayr   r	   googlecloudsdk.command_lib.iamr
   ReleaseTracksReleaseTrackALPHABETAGADefaultUniverseOnlyCommandr   r%   r   r   <module>r:      s    5 &  ' 7 ( ? @ 3 D%%++T->->-C-C%%((*-T\\ - *-r   