
                             d Z ddlmZ ddlmZ ddlmZ ej                  ej                   G d dej                                      Z
y)z-Command to describe universe descriptor data.    )json_format)base)universe_descriptorc                   .    e Zd ZdZddiZed        Zd Zy)Describez4Describe universe descriptor data dict in the cache.EXAMPLESz          To describe an existing universe descriptor with domain `my-universe-domain.com`, run:

            $ {command} my-universe-domain.com
          c                 *    | j                  dd       y)zAdds args for this command.universe_domainz7Universe domain of the universe descriptor to describe.)helpN)add_argument)parsers    3lib/surface/config/universe_descriptors/describe.pyArgszDescribe.Args#   s     F      c                     ~ t        j                         }|j                  |j                  d      }t	        j
                  |d      S )NF)fetch_if_not_cachedT)including_default_value_fields)r   UniverseDescriptorGetr
   r   MessageToDict)selfargsuniverse_descriptor_objdescriptor_jsons       r   RunzDescribe.Run+   sN    1DDF-11% 2 O $$ r   N)__name__
__module____qualname____doc__detailed_helpstaticmethodr   r    r   r   r   r      s1     =  -  r   r   N)r   cloudsdk.google.protobufr   googlecloudsdk.callioper   'googlecloudsdk.core.universe_descriptorr   HiddenUniverseCompatibleCommandr   r"   r   r   <module>r)      sD    4 0 ( G t||   r   