
    
                         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 Bitbucket Server 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 Bitbucket Server configs in a Google Cloud project.c                 f    [         R                  " U 5        U R                  R                  S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.
z
          table(
            name,
            createTime.date('%Y-%m-%dT%H:%M:%S%Oz', undefined='-'),
            host_uri
          )
        N)build_flagsAddRegionFlagdisplay_info	AddFormat)parsers    <lib/surface/builds/enterprise_config/bitbucketserver/list.pyArgsListAlpha.Args    s+     f%
!! #     c                 6   [         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       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)requiredzcloudbuild.projects.locations)
collection
projectsIdlocationsId)parent)r   GetClientInstanceGetMessagesModuler	   VALUEScoreprojectGetbuildsregionDEFAULT_REGIONr
   REGISTRYCreate)projects_locations_bitbucketServerConfigsList<CloudbuildProjectsLocationsBitbucketServerConfigsListRequestRelativeNamebitbucketServerConfigs)	selfargsclientmessagesr   
regionprop
bbs_regionparent_resourcebbs_lists	            r   RunListAlpha.Run1   s     ..0F002H##++///>F""))00446JL
Lo.L.LJ((//2 0  O ??DDMM"//1 	N 	344J4J  Or    N)	__name__
__module____qualname____firstlineno____doc__staticmethodr   r6   __static_attributes__r8   r   r   r   r      s    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   r8   r   r   <module>rI      sZ    - &  ' = ( B * ) D%%++,0   0 -0r   