
                         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 operation 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 an operation.

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

## EXAMPLES

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

  $ {command} example-operation
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	   AddOperationResourceArgapi_versionr   URI_FLAGRemoveFromParser)clsparserr   s      1lib/surface/dataproc/operations/get_iam_policy.pyArgsGetIamPolicy.Args,   sG    {{3++-.H	!!&*C"*"6"68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	operationParse4DataprocProjectsRegionsOperationsGetIamPolicyRequestRelativeNameGetIamPolicyRequestGetPolicyOptionsr   !MAX_LIBRARY_IAM_SUPPORTED_VERSIONclientprojects_regions_operationsr   )selfargsr   msgsoperation_refrequests         r   RunGetIamPolicy.Run3   s    {{4,,./HDMM++113MGG++- 44))'2'T'T *  5 
 H G ??66CCGLLr    N)	__name__
__module____qualname____firstlineno____doc__classmethodr   r0   __static_attributes__r2   r   r   r   r      s!    

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