
    
                         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'List github enterprise configs 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)	ListAlpha   z@List all github enterprise configs in a Google Cloud project.
  c                 f    U R                   R                  S5        [        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.
z
          table(
            name,
            createTime.date('%Y-%m-%dT%H:%M:%S%Oz', undefined='-'),
            host_url,
            app_id
          )
        F)hiddenrequiredN)display_info	AddFormatbuild_flagsAddRegionFlag)parsers    3lib/surface/builds/enterprise_config/github/list.pyArgsListAlpha.Args!   s1     !! #  fUUC    c                 8   [         R                  " 5       n[         R                  " 5       n[        R                  R
                  R                  R                  SS9n[        R                  R                  R                  R                  5       nUR                  =(       d    U=(       d    [         R                  n[        R                  R                  SUUS9nUR                  R                  UR!                  UR#                  5       US95      R$                  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   zcloudbuild.projects.locations)
collection
projectsIdlocationsId)parent	projectId)r   GetClientInstanceGetMessagesModuler	   VALUEScoreprojectGetbuildsregionDEFAULT_REGIONr
   REGISTRYCreate*projects_locations_githubEnterpriseConfigsList=CloudbuildProjectsLocationsGithubEnterpriseConfigsListRequestRelativeNameconfigs)	selfargsclientmessagesr   
regionproplocationparent_resourceghe_lists	            r   RunListAlpha.Run4   s     ..0F002H##++///>F""))00446J{{JjJO,J,JH  ((//2 0 O @@EENN"//1 	O 	  'w 
 Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r8   __static_attributes__r:   r   r   r   r      s"     D D$r   r   N)r?   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   !googlecloudsdk.command_lib.buildsr   r   googlecloudsdk.corer	   r
   ReleaseTracksReleaseTrackALPHAListCommandr   r:   r   r   <module>rK      sZ    . &  ' = ( B * ) D%%++,5   5 -5r   