
    Y                     8   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
S.r\R                  \R                   " \R"                  R$                  \R"                  R&                  5       " S S\R(                  5      5       5       r\\l        g)zQCommand to remove an IAM policy binding from a Colab Enterprise runtime template.    )runtime_templates)util)base)	constants)endpoint_util)flags)iam_utilzT
        Remove an IAM policy binding from a Colab Enterprise runtime template.
    aT  
        To remove an IAM policy binding of `roles/aiplatform.notebookRuntimeUser` for `someone@example.com`, from the runtime template with id `my-runtime-template` in region `us-central1`, run:

        $ {command} my-runtime-template --region=us-central1 --member=user:someone@example.com --role=roles/aiplatform.notebookRuntimeUser
    )DESCRIPTIONEXAMPLESc                   .    \ rS rSrSr\S 5       rS rSrg)RemoveIamPolicyBinding%   zFRemove an IAM policy binding from a Colab Enterprise runtime template.c                 0    [         R                  " U 5        g)z Register flags for this command.N)r   AddRemoveIamPolicyBindingFlags)parsers    @lib/surface/colab/runtime_templates/remove_iam_policy_binding.pyArgsRemoveIamPolicyBinding.Args*   s     
((0    c                    U R                  5       n[        R                  " U R                  5       5      nUR                  R                  R                  5       nUR                  5       S   n[        R                  " [        R                  US9   [        R                  " U5      nUR                  nUR                  [        R                  " X5      5      n[         R"                  " UUR$                  UR&                  5        UR)                  [        R*                  " XU5      5      sSSS5        $ ! , (       d  f       g= f)z9This is what gets called when the user runs this command.locationsId)versionregionN)ReleaseTrackr   GetMessagesCONCEPTSruntime_templateParseAsDictr   AiplatformEndpointOverridesr   BETA_VERSION	GetClient+projects_locations_notebookRuntimeTemplatesGetIamPolicyruntime_templates_util(CreateRuntimeTemplateGetIamPolicyRequestr	   RemoveBindingFromIamPolicymemberroleSetIamPolicy(CreateRuntimeTemplateSetIamPolicyRequest)	selfargsrelease_trackmessagesruntime_template_refr   
api_clientruntime_templates_service
iam_policys	            r   RunRemoveIamPolicyBinding.Run/   s   %%'M 1 1 34H==99??A!((*=9F		2	2&&v
 >>-0j

@
@   -99
 
I
Ij
 ))

++
))
 '33
 
I
I#
 
 
s   BD22
E  N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r4   __static_attributes__r6   r   r   r   r   %   s     O1 1r   r   N)r;   'googlecloudsdk.api_lib.colab_enterpriser   r%   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r   +googlecloudsdk.command_lib.colab_enterpriser   googlecloudsdk.command_lib.iamr	   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GABETACommandr   detailed_helpr6   r   r   <module>rJ      s    X _ 8 ( 3 7 = 3		 D%%(($*;*;*@*@A$T\\ $ B $L (6  $r   