
    $	                         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
  ej                  ej                  j                         G d d	ej                               Zy
)z'List GitLab Enterprise configs command.    )absolute_import)division)unicode_literals)cloudbuild_util)base)	run_flagsc                   &    e Zd ZdZed        Zd Zy)	ListAlphaz=List all GitLab Enterprise configs in a Google Cloud project.c                 d    t        j                  |        | j                  j                  d       y)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='-'),
            enterprise_config.host_uri
          )
        N)r   AddsRegionResourceArgdisplay_info	AddFormat)parsers    3lib/surface/builds/enterprise_config/gitlab/list.pyArgszListAlpha.Args   s+     ##F+
!! #     c                 (   t        j                         }t        j                         }|j                  j                  j                         }|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.
    )parent)r   GetClientInstanceGetMessagesModuleCONCEPTSregionParseRelativeName projects_locations_gitLabConfigsList3CloudbuildProjectsLocationsGitLabConfigsListRequestgitlabConfigs)selfargsclientmessages
region_refr   gitlab_config_lists          r   RunzListAlpha.Run0   s     ..0F002H %%++-J$$&F  @@EEDD 	E 	)M  r   N)__name__
__module____qualname____doc__staticmethodr   r%    r   r   r
   r
      s    E "r   r
   N)r)   
__future__r   r   r   !googlecloudsdk.api_lib.cloudbuildr   googlecloudsdk.callioper   %googlecloudsdk.command_lib.cloudbuildr   ReleaseTracksReleaseTrackALPHAListCommandr
   r+   r   r   <module>r4      sV    . &  ' = ( ; D%%++,,   , -,r   