
    g	                         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 ej                   G d
 dej                               Zy)zDescribe build command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)flags)
properties)	resourcesc                   0    e Zd ZdZdddZed        Zd Zy)Describez)Get information about a particular build.zg
            To describe a build `123-456-789`:

                $ {command} '123-456-789'
            )DESCRIPTIONEXAMPLESc                 \    t        j                  |        t        j                  | d       y )NzThe build to describe.)intro)r   AddRegionFlagAddBuildArg)parsers    lib/surface/builds/describe.pyArgszDescribe.Args)   s!    		f$<=    c                     |j                   xsD t        j                  j                  j                   j	                         xs t
        j                  }t        j                         }t        j                  j                  |j                  t        j                  j                  j                  j                  ||j                  dd      }|j                  j	                  |j                   j#                  |j%                                     S )zThis is what gets called when the user runs this command.

    Args:
      args: an argparse namespace. All the arguments that were provided to this
        command invocation.

    Returns:
      Some value that we want to have printed later.
    )
projectsIdlocationsIdbuildsIdz$cloudbuild.projects.locations.builds)params
collection)name)regionr	   VALUESbuildsGetr   DEFAULT_REGIONGetClientInstancer
   REGISTRYParsebuildcoreproject	GetOrFailprojects_locations_buildsMESSAGES_MODULE+CloudbuildProjectsLocationsBuildsGetRequestRelativeName)selfargsbuild_regionclient	build_refs        r   RunzDescribe.Run.   s     	 	*##**..0	*))  ..0F""((

$++0088BB'



 : ) ;I ++//JJ'') 	K 	+, ,r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r3    r   r   r   r      s0    1 A- > >,r   r   N)r7   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.buildsr   googlecloudsdk.corer	   r
   UniverseCompatibleDescribeCommandr   r:   r   r   <module>rB      sI     &  ' = ( 3 * ) -,t## -, -,r   