
    	                     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)Delete a Workflow.    )absolute_import)division)unicode_literals)client_util)waiter)base)	run_flags)log)	resourcesc                   .    \ rS rSrSr\S 5       rS rSrg)Delete   r   c                 P    U R                  SSS9  [        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
   AddsRegionResourceArg)parsers    &lib/surface/builds/workflows/delete.pyArgsDelete.Args#   s&     ,EF##F+    c                    [         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                  R                  UR                  SS9n[        R                   " [        R"                  " UR$                  5      US5        [&        R(                  " U5        g)z9This is what gets called when the user runs this command.z/workflows/)namez(cloudbuild.projects.locations.operations)
collectionzDeleting WorkflowN)r   GetClientInstanceGetMessagesModuleCONCEPTSregionParseRelativeNamer   projects_locations_workflowsr   1CloudbuildProjectsLocationsWorkflowsDeleteRequestr   REGISTRYParseRelativeNamer   r   WaitForCloudOperationPollerNoResourcesprojects_locations_operationsr   DeletedResource)	selfargsclientmessages
region_refparentresource_namedelete_operationdelete_operation_refs	            r   Run
Delete.Run.   s    **,F,,.H%%++-J$$&F)/1A1ABM ::AABB 	C 	 ! %--??= @ ? NN..00	23G
 &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   googlecloudsdk.api_lib.utilr   googlecloudsdk.callioper	   %googlecloudsdk.command_lib.cloudbuildr
   googlecloudsdk.corer   r   HiddenReleaseTracksReleaseTrackALPHABETAUniverseCompatibleDeleteCommandr   r6   r   r   <module>rK      s     &  ' < . ( ; # ) D%%++T->->-C-CD%'T %'  E %'r   