
    O                        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S.r\R                  " \R                   R"                  5      \R$                   " S S\R&                  5      5       5       r\R                  " \R                   R*                  5      \R$                   " S S\R&                  5      5       5       rg)z!Fetch the IAM policy for a space.    )absolute_import)division)unicode_literals)spaces)utils)base)flagsz         Get the IAM policy for a Design Center space.

        Returns an empty policy if the space does not have
        an existing IAM policy set.
        z         To get the space IAM policy for the Space `my-space` in
        project `my-project` in location `us-central1`, run:

          $ {command} my-space --location=us-central1 --project=my-project
        z         This command uses the designcenter/v1alpha API. The full documentation for
        this API can be found at:
        http://cloud.google.com/application-design-center/docs
        )DESCRIPTIONEXAMPLESzAPI REFERENCEc                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)GetIamPolicyGA0   ~Get the IAM policy for a Design Center space.

Returns an empty policy if the space does not have
an existing IAM policy set.
c                 n    [         R                  " U 5        [        R                  R	                  U 5        g Nr	   AddGetIamPolicyFlagsr   URI_FLAGRemoveFromParserparsers    2lib/surface/design_center/spaces/get_iam_policy.pyArgsGetIamPolicyGA.Args:   "    	v&MM""6*    c                     [         R                  " [        R                  R                  S9n[
        R                  " U5      nUR                  UR                  5       S9$ N)release_track)space_id)	apisSpacesClientr   ReleaseTrackGAapi_lib_utilsGetSpaceRefGetIamPolicyRelativeNameselfargsclient	space_refs       r   RunGetIamPolicyGA.Run?   sK    T->->-A-ABF))$/I	(>(>(@AAr    N__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpstaticmethodr   r.   __static_attributes__r0   r   r   r   r   0   &    
 !-+ +Br   r   c                   2    \ rS rSrSr\r\S 5       rS r	Sr
g)r'   E   r   c                 n    [         R                  " U 5        [        R                  R	                  U 5        g r   r   r   s    r   r   GetIamPolicy.ArgsO   r   r   c                     [         R                  " [        R                  R                  S9n[
        R                  " U5      nUR                  UR                  5       S9$ r   )	r!   r"   r   r#   ALPHAr%   r&   r'   r(   r)   s       r   r.   GetIamPolicy.RunT   sK    T->->-D-DEF))$/I	(>(>(@AAr   r0   Nr1   r0   r   r   r'   r'   E   r;   r   r'   N)r6   
__future__r   r   r   $googlecloudsdk.api_lib.design_centerr   r!   r   r%   googlecloudsdk.callioper   (googlecloudsdk.command_lib.design_centerr	   r7   ReleaseTracksr#   r$   UniverseCompatibleListCommandr   rA   r'   r0   r   r   <module>rJ      s    ( &  ' ? G ( :* D%%(()BT%% B  *B& D%%++,B4## B  -Br   