
    
                        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  SS	KJr  SS
KJr  SSKJr  SSS.r\R&                  \R(                  " \R*                  R,                  5       " S S\R.                  5      5       5       r\R&                  \R(                  " \R*                  R2                  5       " S S\5      5       5       rg)z0Command to describe an existing Audit operation.    )absolute_import)division)unicode_literals)
exceptions)	constants)
operations)base)exception_utils)flagsz(Obtain details about an audit operation.z         To describe an Audit operation in the `us-central1` region,
        belonging to a project with ID `123`, with operation ID `operation-456`, run:

          $ {command} operation-456 --project=123 --location=us-central1
        )DESCRIPTIONEXAMPLESc                   ^    \ rS rSrSr\r\R                  R                  r
\S 5       rS rSrg)Describe)   Describe Audit operation.c                 0    [         R                  " U 5        g )N)r   AddDescribeOperationFlags)parsers    0lib/surface/audit_manager/operations/describe.pyArgsDescribe.Args1   s    	##F+    c                    UR                   R                  R                  5       nUR                  nUR                  R
                  S:H  n[        R                  " U R                  S9n UR                  UR                  5       U5      $ ! [        R                   a6  n[        R                  " U5      n[        R                   " U5         SnAgSnAff = f)zRun the describe command.z/auditmanager.folders.locations.operationDetails)api_versionN)CONCEPTS	operationParseresultconcept_typenamer   OperationsClientr   GetRelativeNameapitools_exceptions	HttpErrorr
   AuditManagerErrorcore_exceptionsreraise)selfargsr   resourceis_folder_parentclienterrorexcs           r   RunDescribe.Run5   s    ]]$$**,F}}H  <	= 
 ((T5E5EFF#ZZ--/1ABB(( #--e4cc""#s   )B	 	C,CC N)__name__
__module____qualname____firstlineno____doc___DETAILED_HELPdetailed_helpr   
ApiVersionV1r   staticmethodr   r0   __static_attributes__r2   r   r   r   r   )   s4     " -$$''+, ,#r   r   c                   D    \ rS rSrSr\R                  R                  rSr	g)DescribeAlphaG   r   r2   N)
r3   r4   r5   r6   r7   r   r:   V1_ALPHAr   r=   r2   r   r   r?   r?   G   s     "$$--+r   r?   N)r7   
__future__r   r   r   apitools.base.pyr   r$   $googlecloudsdk.api_lib.audit_managerr   r   googlecloudsdk.callioper	   (googlecloudsdk.command_lib.audit_managerr
   r   googlecloudsdk.corer'   r8   DefaultUniverseOnlyReleaseTracksReleaseTrackGADescribeCommandr   ALPHAr?   r2   r   r   <module>rN      s    7 &  ' > : ; ( D : = > D%%(()#t## # * #8 D%%++,.H . - .r   