
                         2   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  \R                  " \R                  R                  \R                  R                  \R                  R                  5      \R                   " S S\R                  5      5       5       rg	)
z'Gets the IAM policy for the repository.    )absolute_import)division)unicode_literals)
sourcerepo)basec                   .    \ rS rSrSr\S 5       rS rSrg)GetIamPolicy   zGet the IAM policy for the named cloud source repository.

This command gets the IAM policy for the given repository.

## EXAMPLES

To get the IAM policy, issue the following command:

  $ {command} REPOSITORY_NAME

c                 b    U R                  SSS9  [        R                  R                  U 5        g )Nrepository_namezName of the repository.)help)add_argumentr   URI_FLAGRemoveFromParser)parsers    *lib/surface/source/repos/get_iam_policy.pyArgsGetIamPolicy.Args*   s)    
)0IJMM""6*    c                     [         R                  " UR                  5      n[         R                  " 5       nUR	                  U5      $ )a7  Gets the IAM policy for the repository.

Args:
  args: argparse.Namespace, the arguments this command is run with.

Returns:
  (sourcerepo_v1_messages.Policy) The IAM policy.

Raises:
  sourcerepo.RepoResourceError: on resource initialization errors.
  apitools.base.py.exceptions.HttpError: on request errors.
)r   	ParseRepor   Sourcer	   )selfargsressources       r   RunGetIamPolicy.Run/   s9     

t33
4C Fs##r    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r   __static_attributes__r   r   r   r	   r	      s     

 + +$r   r	   N)r$   
__future__r   r   r   googlecloudsdk.api_lib.sourcer   googlecloudsdk.callioper   ReleaseTracksReleaseTrackGAALPHABETADefaultUniverseOnlyListCommandr	   r   r   r   <module>r1      s    . &  ' 4 ( $++1143D3D3I3I !$4## !$ !$r   