
    A                         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)Get IAM workflow template 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 workflow template.

Gets the IAM policy for a workflow template, given a template ID.

## EXAMPLES

The following command prints the IAM policy for a workflow template with the
ID `example-workflow`:

  $ {command} example-workflow
c                     [         R                  " U R                  5       5      n[        R                  " USUR
                  S9  g )Nzretrieve the policy for)api_version)dpDataprocReleaseTrackr	   AddTemplateResourceArgr   )clsparserr   s      9lib/surface/dataproc/workflow_templates/get_iam_policy.pyArgsGetIamPolicy.Args*   s6    {{3++-.H	  )x7K7KM    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templateParse;DataprocProjectsRegionsWorkflowTemplatesGetIamPolicyRequestRelativeNameGetIamPolicyRequestGetPolicyOptionsr   !MAX_LIBRARY_IAM_SUPPORTED_VERSIONclient"projects_regions_workflowTemplatesr   )selfargsr   msgstemplate_refrequests         r   RunGetIamPolicy.Run0   s    {{4,,./HD==))//1LNN**, 44))'2'T'T *  5 
 O G ??==JJ r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r.   __static_attributes__r0   r   r   r   r      s"    
 M M
r   r   N)r5   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr	   DefaultUniverseOnlyCommandr   r0   r   r   <module>r>      sD     0 &  ' : 7 ( 5 "4<< " "r   