
                             d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ e	j                   G d	 d
e	j                               Zy)z%Fetch the IAM policy for an attestor.    )absolute_import)division)unicode_literals)apis)iam)base)flagsc                   &    e Zd ZdZed        Zd Zy)GetIamPolicyzGet 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                 Z    t        j                  |t        j                  dd             y )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ArgszGetIamPolicy.Args)   s'    	))G	
    c                     |j                   j                  j                         }t        j                  | j                               }t        j                  |      j                  |      S )N)	CONCEPTSattestorParser   GetApiVersionReleaseTrackr   ClientGet)selfargsattestor_refapi_versions       r   RunzGetIamPolicy.Run3   sM    ==))//1L$$T%6%6%89K::k"&&|44r   N)__name__
__module____qualname____doc__classmethodr   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>r/      sF    , &  ' : 9 ( ? 54## 5 5r   