
                             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  \	R                   " S	 S
\	R                  5      5       rg)z%Fetch the IAM policy for an attestor.    )absolute_import)division)unicode_literals)apis)iam)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)GetIamPolicy   zGet the IAM policy for an attestor.

Returns an empty policy if the resource does not have an existing IAM policy
set.

## EXAMPLES

The following command gets the IAM policy for the attestor `my_attestor`:

  $ {command} my_attestor
c                 X    [         R                  " U[         R                  " SSS95        g )NTz.The attestor whose IAM policy will be fetched.)
positional
group_help)r	   AddConceptsGetAttestorPresentationSpec)clsparsers     :lib/surface/container/binauthz/attestors/get_iam_policy.pyArgsGetIamPolicy.Args)   s'    	))G	
    c                     UR                   R                  R                  5       n[        R                  " U R                  5       5      n[        R                  " U5      R                  U5      $ )N)	CONCEPTSattestorParser   GetApiVersionReleaseTrackr   ClientGet)selfargsattestor_refapi_versions       r   RunGetIamPolicy.Run3   sM    ==))//1L$$T%6%6%89K::k"&&|44r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r$   __static_attributes__r&   r   r   r   r      s     
  5r   r   N)r+   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   googlecloudsdk.callioper   -googlecloudsdk.command_lib.container.binauthzr	   DefaultUniverseOnlyListCommandr   r&   r   r   <module>r4      sF    , &  ' : 9 ( ? 54## 5 5r   