
    >                         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  \R                  " \R                   R"                  5       " S
 S\R$                  5      5       rg)z*Describe github enterprise config command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)flags)
properties)	resourcesc                   .    \ rS rSrSr\S 5       rS rSrg)DescribeAlpha   z;Describe a github enterprise config used by Cloud Build.
  c                 P    U R                  SSS9  [        R                  " U SSS9  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.
CONFIGz&The id of the GitHub Enterprise Config)helpF)hiddenrequiredN)add_argumentbuild_flagsAddRegionFlag)parsers    7lib/surface/builds/enterprise_config/github/describe.pyArgsDescribeAlpha.Args!   s/     E  GfUUC    c           	      H   [         R                  " 5       n[         R                  " 5       n[        R                  R
                  R                  R                  SS9nUR                  n[        R                  R                  R                  R                  5       nUR                  =(       d    U=(       d    [         R                  n[        R                  R                  SSSUUUS.S9nUR                  R                  UR!                  UR#                  5       UUS95      n	U	$ )	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.
T)r   Nz5cloudbuild.projects.locations.githubEnterpriseConfigsv1)
projectsIdgithubEnterpriseConfigsIdlocationsId)
collectionapi_versionparams)nameconfigId	projectId)r   GetClientInstanceGetMessagesModuler	   VALUEScoreprojectGetr   buildsregionDEFAULT_REGIONr
   REGISTRYParse*projects_locations_githubEnterpriseConfigs<CloudbuildProjectsLocationsGithubEnterpriseConfigsGetRequestRelativeName)
selfargsclientmessagesparent	config_id
regionproplocationghe_resourceghes
             r   RunDescribeAlpha.Run-   s     ..0F002H##++///>FI""))00446J{{JjJO,J,JH %%++J )2#
	 , L 
;
;
?
?MM**, 	N 	C Jr    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r>   __static_attributes__r@   r   r   r   r      s"     	D 	D&r   r   N)rE   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.buildsr   r   googlecloudsdk.corer	   r
   ReleaseTracksReleaseTrackALPHADescribeCommandr   r@   r   r   <module>rQ      sZ    1 &  ' = ( B * ) D%%++,6D(( 6 -6r   