
                         |    d Z ddlZddlmZ ddlmZ ddlmZ ej                   G d dej                               Z
y)z,Command to list cached universe descriptors.    N)base)config)universe_descriptorc                   &    e Zd ZdZed        Zd Zy)Listz!List cached universe descriptors.c                     t         j                  j                  |        t         j                  j                  |        d}| j                  j                  |       y )Nztable(
      universe_domain,
      universe_short_name,
      project_prefix,
      authentication_domain,
      cloud_web_domain,
      version)
    )r   PAGE_SIZE_FLAGRemoveFromParserURI_FLAGdisplay_info	AddFormat)parsertable_formats     /lib/surface/config/universe_descriptors/list.pyArgsz	List.Args   sE    ((0MM""6*L !!,/    c              #      K   t        j                         }t        j                  t         j                        }|D ]  }	 |j                  |        y # t        j                  $ r Y /w xY ww)N)r   GetAllConfigUniverseDomainsr   GetConfigStore'CONFIG_CACHE_DESCRIPTOR_DATA_TABLE_NAMEGetJSONsqlite3Error)selfunused_argsconfig_universe_domainsconfig_storeuniverse_domains        r   RunzList.Run+   sg     1MMO((CCL 3""?33 3 ]] s)   =A/ AA/A,)A/+A,,A/N)__name__
__module____qualname____doc__staticmethodr   r    r   r   r   r      s    )0 0	r   r   )r#   r   googlecloudsdk.callioper   googlecloudsdk.corer   'googlecloudsdk.core.universe_descriptorr   UniverseCompatibleListCommandr   r%   r   r   <module>r+      s=     3  ( & G 4  r   