
                             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)z7Fetch the IAM policy for a Binary Authorization policy.    )absolute_import)division)unicode_literals)apis)iam)util)basec                       e Zd ZdZd Zy)GetIamPolicya  Get the IAM policy for a Binary Authorization policy.

  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 current project's Binary
  Authorization policy:

    $ {command}
  c                     t        j                  | j                               }t        j                  |      j                  t        j                               S )N)r   GetApiVersionReleaseTrackr   ClientGetr   GetPolicyRef)selfargsapi_versions      7lib/surface/container/binauthz/policy/get_iam_policy.pyRunzGetIamPolicy.Run*   s>    $$T%6%6%89K::k"&&t'8'8':;;    N)__name__
__module____qualname____doc__r    r   r   r   r      s    <r   r   N)r   
__future__r   r   r   )googlecloudsdk.api_lib.container.binauthzr   r   r   googlecloudsdk.callioper	   DefaultUniverseOnlyListCommandr   r   r   r   <module>r"      sF    > &  ' : 9 : ( <4## < <r   