
                             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r " S
 S\R                  5      rg	)z$Command to list named configuration.    )absolute_import)division)unicode_literals)base)
properties)named_configs)properties_fileNc                   8    \ rS rSrSrSSS.r\S 5       rS rSr	g	)
List   z$Lists existing named configurations.z          {description}

          Run `$ gcloud topic configurations` for an overview of named
          configurations.
          zX          To list all available configurations, run:

            $ {command}
          )DESCRIPTIONEXAMPLESc                 h   [         R                  R                  U 5        [         R                  R                  U 5        [        R
                  R                  5       nSn[        [        R                  " U5      5       H  u  p4[        R                  R                  SS[        R                  " UR                  /5      S9nUS   R!                  S5      nU(       d  M`  U[        R                  R"                  R$                  R&                  :w  d  M  Sn  O   U R(                  R+                  U5        g )Nztable(
        name,
        is_active,
        properties.core.account,
        properties.core.project,
        properties.compute.zone:label=COMPUTE_DEFAULT_ZONE,
        properties.compute.region:label=COMPUTE_DEFAULT_REGION)
    T)
list_unsetinclude_hiddenr	   coreuniverse_domaina#  table(
          name,
          is_active,
          properties.core.account,
          properties.core.project,
          properties.core.universe_domain,
          properties.compute.zone:label=COMPUTE_DEFAULT_ZONE,
          properties.compute.region:label=COMPUTE_DEFAULT_REGION)
      )r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGr   ConfigurationStore
AllConfigssortedsix	iteritemsr   VALUES	AllValuesr	   PropertiesFile	file_pathgetr   r   defaultdisplay_info	AddFormat)parserconfigstable_format_configpropsconfig_universes          )lib/surface/config/configurations/list.pyArgs	List.Args/   s    ((0MM""6*..99;GL CMM'23	)))88&:J:J9KL * e
 f))*;<o
/!2!2!7!7!G!G!O!OO
 	) 4* !!,/    c              #   L  #    [         R                  R                  5       n[        [        R
                  " U5      5       H_  u  p4[        R                  R                  S[        R                  " UR                  /5      SS9nUR                  UR                  US.v   Ma     g 7f)NT)r   r	   only_file_contents)name	is_activer   )r   r   r   r   r   r   r   r   r   r	   r   r   r1   r2   )selfargsr%   r'   r(   r)   s         r+   RunList.RunS   s     ..99;GCMM'23	)))88&:J:J9KL! * #e
 ++''  4s   B"B$ N)
__name__
__module____qualname____firstlineno____doc__detailed_helpstaticmethodr,   r5   __static_attributes__r7   r.   r+   r   r      s0    ,- !0 !0Fr.   r   )r<   
__future__r   r   r   googlecloudsdk.callioper   googlecloudsdk.corer   "googlecloudsdk.core.configurationsr   r	   r   ListCommandr   r7   r.   r+   <module>rE      s6     + &  ' ( * < > 
@4 @r.   