
    (                     V   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  ej                  ej                  j                   ej                  j"                  ej                  j$                        ej&                   G d
 dej(                                      Zy)z.Command to add IAM policy binding for a model.    )absolute_import)division)unicode_literals)apis)base)common_flags)resource_args)iam_utilc                   .    e Zd ZdZddiZed        Zd Zy)RemoveIamPolicyBindingz'Remove IAM policy binding to a gateway.EXAMPLESa             To remove an IAM policy binding for the role of 'roles/editor' for the
          user 'test-user@gmail.com' on API 'my-api', run:

            $ {command} my-api --member='user:test-user@gmail.com'
                --role='roles/editor'
          c                 |    t        j                  | dd       t        j                  | t        j
                         y )Nz#IAM policy binding will be added toT)
positional)r	   AddApiResourceArgr
    AddArgsForRemoveIamPolicyBindingr   GatewayIamRolesCompleter)parsers    9lib/surface/api_gateway/apis/remove_iam_policy_binding.pyArgszRemoveIamPolicyBinding.Args-   s4    ##F$I/35 ----/    c                     |j                   j                  j                         }t        j                         j                  ||j                  |j                        S )N)CONCEPTSapiParser   	ApiClientr   memberrole)selfargsapi_refs      r   RunzRemoveIamPolicyBinding.Run6   sC    mm%%'G>>22dii) )r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r!    r   r   r   r      s1     0 	- / /)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>r5      s    5 &  ' 3 ( ? @ 3 D%%++T->->-C-C%%((*)T\\ ) *)r   