
    |	                     V   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  \	R                  \	R                   " \	R"                  R$                  \	R"                  R&                  5      \	R(                   " S S\	R*                  5      5       5       5       rg)Get a Workflow.    )absolute_import)division)unicode_literals)client_util)workflow_output_util)base)	run_flags)resource_printer)resource_projectorc                   .    \ rS rSrSr\S 5       rS rSrg)Describe   r   c                    U R                  SSS9  [        R                  " [        R                  [        R
                  5        U R                  R                  [        R                  5        [        R                  " U 5        g)zRegister flags for this command.

Args:
  parser: An argparse.ArgumentParser-like object. It is mocked out in order
    to capture some information, but behaves like an ArgumentParser.
WORKFLOW_IDzThe ID of the Workflow.)helpN)
add_argumentr   RegisterFormatterr   PRINTER_FORMATWorkflowPrinterdisplay_info	AddFormatr
   AddsRegionResourceArg)parsers    (lib/surface/builds/workflows/describe.pyArgsDescribe.Args#   sc     ,EF&&++,, !!"6"E"EF##F+    c                 d   [         R                  " 5       n[         R                  " 5       nUR                  R                  R                  5       nUR                  5       nU< SUR                  < 3nUR                  R                  UR                  US95      n[        R                  " U5      nU$ )z9This is what gets called when the user runs this command.z/workflows/)name)r   GetClientInstanceGetMessagesModuleCONCEPTSregionParseRelativeNamer   projects_locations_workflowsGet.CloudbuildProjectsLocationsWorkflowsGetRequestr   MakeSerializable)	selfargsclientmessages
region_refparentworkflow_nameworkflowsynthesizeds	            r   RunDescribe.Run3   s    **,F,,.H%%++-J$$&F)/1A1ABM2266?? 	@ 	 !H %55h?Kr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r4   __static_attributes__r6   r   r   r   r      s     , ,r   r   N)r;   
__future__r   r   r   $googlecloudsdk.api_lib.cloudbuild.v2r   r   googlecloudsdk.callioper	   %googlecloudsdk.command_lib.cloudbuildr
   googlecloudsdk.core.resourcer   r   HiddenReleaseTracksReleaseTrackALPHABETAUniverseCompatibleDescribeCommandr   r6   r   r   <module>rJ      s     &  ' < E ( ; 9 ; D%%++T->->-C-CD t##    E  r   