
    
                     ,   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	S
.r\R                  \R                  " \R                  R                   \R                  R"                  5       " S S\R$                  5      5       5       r\\l        g)zFCommand to get the IAM policy for a Colab Enterprise runtime template.    )runtime_templates)util)base)	constants)endpoint_util)flagszI
        Get the IAM policy for a Colab Enterprise runtime template.
    a  
        To get the IAM policy for a runtime template with id `my-runtime-template` in region `us-central1`, run:

        $ {command} my-runtime-template --location=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)GetIamPolicy&   z7Get IAM policy for a Colab Enterprise runtime template.c                 n    [         R                  " U 5        [        R                  R	                  U 5        g)z Register flags for this command.N)r   AddGetIamPolicyFlagsr   URI_FLAGRemoveFromParser)parsers    5lib/surface/colab/runtime_templates/get_iam_policy.pyArgsGetIamPolicy.Args+   s&     
v& 	MM""6*    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      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_notebookRuntimeTemplatesr   runtime_templates_util(CreateRuntimeTemplateGetIamPolicyRequest)selfargsrelease_trackmessagesruntime_template_refr   
api_clientruntime_templates_services           r   RunGetIamPolicy.Run3   s    %%'M 1 1 34H==99??A!((*=9F		2	2&&v
 >>-0j

@
@   '33
 
I
I
 
 
s   AC  
C. N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r.   __static_attributes__r0   r   r   r   r   &   s     @+ +r   r   N)r5   'googlecloudsdk.api_lib.colab_enterpriser   r%   r   googlecloudsdk.callioper   googlecloudsdk.command_lib.air   r   +googlecloudsdk.command_lib.colab_enterpriser   _DETAILED_HELPDefaultUniverseOnlyReleaseTracksr   GABETAListCommandr   detailed_helpr0   r   r   <module>rC      s    M _ 8 ( 3 7 =	
 D%%(($*;*;*@*@A4##  B > , r   