
                         J   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                  \
R                  " \
R                  R                   \
R                  R"                  \
R                  R$                  5       " S	 S
\
R&                  5      5       5       rg)zGet IAM cluster policy command.    )absolute_import)division)unicode_literals)dataproc)iam_helpers)base)flagsc                   .    \ rS rSrSr\S 5       rS rSrg)GetIamPolicy   zGet IAM policy for a cluster.

Gets the IAM policy for a cluster, given a cluster name.

## EXAMPLES

The following command prints the IAM policy for a cluster with the name
`example-cluster-name-1`:

  $ {command} example-cluster-name-1
c                     [         R                  " U R                  5       5      n[        R                  " USUR
                  5        [        R                  R                  U5        g )Nzretrieve the policy for)	dpDataprocReleaseTrackr	   AddClusterResourceArgapi_versionr   URI_FLAGRemoveFromParser)clsparserr   s      /lib/surface/dataproc/clusters/get_iam_policy.pyArgsGetIamPolicy.Args-   sG    {{3++-.H	(A ( 4 46MM""6*    c           	         [         R                  " U R                  5       5      nUR                  nUR                  R
                  R                  5       nUR                  UR                  5       UR                  UR                  [        R                  S9S9S9nUR                  R                  R                  U5      $ )N)requestedPolicyVersion)options)resourcegetIamPolicyRequest)r   r   r   messagesCONCEPTSclusterParse2DataprocProjectsRegionsClustersGetIamPolicyRequestRelativeNameGetIamPolicyRequestGetPolicyOptionsr   !MAX_LIBRARY_IAM_SUPPORTED_VERSIONclientprojects_regions_clustersr   )selfargsr   r    cluster_refrequests         r   RunGetIamPolicy.Run4   s    {{4,,./H  H--''--/KII))+$88--'2'T'T .  9 
 J G ??44AA'JJr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r/   __static_attributes__r1   r   r   r   r      s!    

 + +Kr   r   N)r6   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr	   UniverseCompatibleReleaseTracksr   ALPHABETAGAListCommandr   r1   r   r   <module>rC      s     & &  ' : 7 ( 5 T..33T5F5F5I5I"K4## "K "Kr   