
     	                         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 autoscaling policy 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   a"  Get IAM policy for an autoscaling policy.

Gets the IAM policy for an autoscaling policy, given an autoscaling policy ID.

## EXAMPLES

The following command prints the IAM policy for an autoscaling policy with the
ID `example-autoscaling-policy`:

  $ {command} example-autoscaling-policy
c                     [         R                  " U R                  5       5      n[        R                  " USUR
                  S9  g )Nzretrieve the IAM policy for)api_version)dpDataprocReleaseTrackr	   AddAutoscalingPolicyResourceArgr   )clsparserr   s      ;lib/surface/dataproc/autoscaling_policies/get_iam_policy.pyArgsGetIamPolicy.Args)   s6    {{3++-.H	))-8;O;OQ    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autoscaling_policyParse=DataprocProjectsRegionsAutoscalingPoliciesGetIamPolicyRequestRelativeNameGetIamPolicyRequestGetPolicyOptionsr   !MAX_LIBRARY_IAM_SUPPORTED_VERSIONclient$projects_regions_autoscalingPoliciesr   )selfargsr   r   
policy_refrequests         r   RunGetIamPolicy.Run/   s    {{4,,./H  H11779J 	NN,,. ( < < 11+6+X+X 2  != ! 	O 	
  ????LL r    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r-   __static_attributes__r/   r   r   r   r      s"    
 Q Q
r   r   N)r4   
__future__r   r   r   googlecloudsdk.api_lib.dataprocr   r   r   googlecloudsdk.callioper   #googlecloudsdk.command_lib.dataprocr	   DefaultUniverseOnlyCommandr   r/   r   r   <module>r=      sD    1 &  ' : 7 ( 5 &4<< & &r   