
    	                     V   d Z ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ ddlm	Z	 ddl
mZ dd	lmZ dd
lmZ e	j                   e	j                   e	j"                  j$                  e	j"                  j&                        e	j(                   G d de	j*                                             Zy)Get a Workflow.    )absolute_import)division)unicode_literals)client_util)workflow_output_util)base)	run_flags)resource_printer)resource_projectorc                   &    e Zd ZdZed        Zd Zy)Describer   c                    | j                  dd       t        j                  t        j                  t        j
                  d       | j                  j                  t        j                         t        j                  |        y)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.)helpT)hiddenN)
add_argumentr   RegisterFormatterr   PRINTER_FORMATWorkflowPrinterdisplay_info	AddFormatr
   AddsRegionResourceArg)parsers    (lib/surface/builds/workflows/describe.pyArgszDescribe.Args#   sf     ,EF&&++,,
 !!"6"E"EF##F+    c                 `   t        j                         }t        j                         }|j                  j                  j                         }|j                         }|d|j                  }|j                  j                  |j                  |            }t        j                  |      }|S )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   RunzDescribe.Run4   s    **,F,,.H%%++-J$$&F)/1A1ABM2266?? 	@ 	 !H %55h?Kr   N)__name__
__module____qualname____doc__staticmethodr   r3    r   r   r   r      s     , , r   r   N)r7   
__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   r9   r   r   <module>rF      s     &  ' < E ( ; 9 ; D%%++T->->-C-CD!t## !  E !r   