
                         :    S r SSKJr  SSKJr  SSKJr  SSKrS rg)z8Utilities for the parsing output for cloud build v2 API.    )absolute_import)division)unicode_literalsNc                     US:X  a0  [         R                  " SU 5      nU(       a  UR                  S5      $ gUS:X  a0  [         R                  " SU 5      nU(       a  UR                  S5      $ gg)zParses the name of a pipelineRun/taskRun.

Args:
  pattern:
    "projects/{project}/locations/{location}/pipelineRuns/{pipeline_run}"
    "projects/{project}/locations/{location}/taskRuns/{task_run}"
  primitive_type: string

Returns:
  name: string
pipelinerunz7projects/([^/]+)/locations/([^/]+)/pipelineRuns/([^/]+)   taskrunz3projects/([^/]+)/locations/([^/]+)/taskRuns/([^/]+)N)rematchgroup)patternprimitive_typer   s      7lib/googlecloudsdk/api_lib/cloudbuild/v2/output_util.py	ParseNamer      so     }$HHBGE [[^ "HH>E [[^ 	 #    )__doc__
__future__r   r   r   r
   r    r   r   <module>r      s    ? &  ' 	r   